Changeset 7365 for trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.cc
- Timestamp:
- 09/26/05 19:17:18 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.cc
r7176 r7365 89 89 fCenterX = 0; 90 90 fCenterY = 0; 91 fTime = 0; 91 92 } 92 93 … … 150 151 151 152 Int_t p=0; 153 Int_t q=0; 154 155 Float_t fTime2=0; 156 152 157 for (int i=0; i<n; i++) 153 158 { 154 159 const MSignalPix &pix = evt[i]; 160 155 161 if (pix.IsPixelUsed()) 156 162 { … … 160 166 fY[p] = geom[i].GetY(); 161 167 p++; 168 169 //timing 170 if(pix.IsPixelCore()) 171 { 172 fTime += pix.GetArrivalTime(); 173 fTime2 += pix.GetArrivalTime()*pix.GetArrivalTime(); 174 q++; 175 } 162 176 } 163 177 } 178 fTime = fTime/q; 179 fTime2 = fTime2/q; 180 fTimeRms = TMath::Sqrt(fTime2-(fTime*fTime)); 181 164 182 fSignal.Set(p); 165 183
Note:
See TracChangeset
for help on using the changeset viewer.