Changeset 7367
- Timestamp:
- 09/27/05 14:40:03 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mmuon
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc
r7366 r7367 240 240 241 241 // Double_t err; 242 Double_t mean, meanerr, dummy; 242 Double_t sig, mean, dummy; 243 gMinuit->GetParameter(1, mean, dummy); // get the mean value 243 244 gMinuit->GetParameter(2, sig, dummy); // get the sigma value 244 gMinuit->GetParameter(1, mean, dummy); // get the sigma value245 245 246 246 for (Int_t i=0; i<entries; i++) -
trunk/MagicSoft/Mars/mmuon/MHSingleMuon.h
r7365 r7367 24 24 Double_t fMargin; //! 25 25 26 TProfile fHistPhi; // Histogram of photon distribution along the arc.27 TProfile fHistWidth; // Histogram of radial photon distribution of the arc.26 TProfile fHistPhi; // Histogram of photon distribution along the arc. 27 TProfile fHistWidth; // Histogram of radial photon distribution of the arc. 28 28 TH1F fHistTime; // Histogram of arrival time distribution along the arc. 29 29 … … 50 50 51 51 #endif 52 53 -
trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.cc
r7365 r7367 38 38 // infomation stored in 39 39 // 40 // MMuonCalibPar.40 // MMuonCalibPar. 41 41 // 42 42 // The information will be available by using the task of 43 43 // 44 // MMuonCalibParCalc. 45 // 44 // MMuonCalibParCalc. 45 // 46 // Version 2: 47 // ---------- 48 // + Float_t fTime; // Mean arrival time of core pixels 49 // + Float_t fTimeRms; // Rms of arrival time of core pixels 46 50 // 47 51 // Input Containers: … … 90 94 fCenterY = 0; 91 95 fTime = 0; 96 fTimeRms = -1; 92 97 } 93 98 … … 144 149 { 145 150 // ------- Make a temporaray copy of the signal --------- 151 // ------- and calculate arrival time parameters -------- 146 152 const Int_t n = geom.GetNumPixels(); 147 153 … … 153 159 Int_t q=0; 154 160 155 Float_t fTime2=0; 161 Float_t mean=0; 162 Float_t sq =0; 156 163 157 164 for (int i=0; i<n; i++) … … 168 175 169 176 //timing 170 if (pix.IsPixelCore())171 {172 fTime += pix.GetArrivalTime(); 173 fTime2 += pix.GetArrivalTime()*pix.GetArrivalTime();174 q++;175 }177 if (!pix.IsPixelCore()) 178 continue; 179 180 mean += pix.GetArrivalTime(); 181 sq += pix.GetArrivalTime()*pix.GetArrivalTime(); 182 q++; 176 183 } 177 184 } 178 fTime = fTime/q; 179 fTime2 = fTime2/q; 180 fTimeRms = TMath::Sqrt(fTime2-(fTime*fTime)); 185 186 mean /= q; 187 sq /= q; 188 189 fTime = mean; 190 fTimeRms = TMath::Sqrt(sq-mean*mean); 181 191 182 192 fSignal.Set(p); -
trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.h
r7365 r7367 21 21 Float_t fCenterX; // An estimated center position in X of the muon ring [mm] 22 22 Float_t fCenterY; // An estimated center position in Y of the muon ring [mm] 23 Float_t fTime; 24 Float_t fTimeRms; 23 Float_t fTime; // Mean arrival time of core pixels 24 Float_t fTimeRms; // Rms of arrival time of core pixels 25 25 26 26 MArrayF fSignal; //! Temporary storage for signal … … 57 57 void Print(const MGeomCam &geom, Option_t *opt=NULL) const; 58 58 59 ClassDef(MMuonSearchPar, 1) // Container to hold muon search parameters59 ClassDef(MMuonSearchPar, 2) // Container to hold muon search parameters 60 60 }; 61 61
Note:
See TracChangeset
for help on using the changeset viewer.