Changeset 1404 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 07/15/02 20:35:15 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCerPhotCalc2.cc
r1399 r1404 33 33 // // 34 34 // Input Containers: // 35 // MRawEvtData, MPedes dtalCam //35 // MRawEvtData, MPedestalCam // 36 36 // // 37 37 // Output Containers: // … … 58 58 ClassImp(MCerPhotCalc2); 59 59 60 const Float_t fWeight[15] ={0, 0.0809835, 0.289593, 0.366926, 0.211665, 0.0508328, 0., 0., 0., 0., 0., 0., 0., 0., 0.};61 62 Float_t SumQuadWeights, SumWeights;63 64 65 60 // -------------------------------------------------------------------------- 66 61 // … … 77 72 AddToBranchList("MRawEvtData.fLoGainFadcSamples"); 78 73 79 SumQuadWeights =SumWeights = 0.;74 fSumQuadWeights = fSumWeights = 0.; 80 75 for (Int_t i = 0; i < 15; i++) 81 76 { 82 SumQuadWeights += pow(fWeight[i],2.);83 SumWeights += fWeight[i];77 fSumQuadWeights += fWeight[i]*fWeight[i]; 78 fSumWeights += fWeight[i]; 84 79 } 85 SumQuadWeights = sqrt(SumQuadWeights);80 fSumQuadWeights = sqrt(fSumQuadWeights); 86 81 87 82 } … … 204 199 // 205 200 if (nphot!=0) 206 nphot -= mean* SumWeights;207 208 Float_t nphoterr = ped.GetSigma()* SumQuadWeights;201 nphot -= mean*fSumWeights; 202 203 Float_t nphoterr = ped.GetSigma()* fSumQuadWeights; 209 204 210 205 fCerPhotEvt->AddPixel(pixid, nphot, nphoterr); … … 217 212 return kTRUE; 218 213 } 214 215 Float_t MCerPhotCalc2::fWeight[15] = {0, 0.0809835, 0.289593, 0.366926, 0.211665, 0.0508328, 0., 0., 0., 0., 0., 0., 0., 0., 0.}; -
trunk/MagicSoft/Mars/manalysis/MCerPhotCalc2.h
r1399 r1404 22 22 class MCerPhotCalc2 : public MTask 23 23 { 24 MPedestalCam *fPedestals; // Pedestals of all pixels in the camera25 MRawEvtData *fRawEvt; // raw event data (time slices)26 MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation27 MRawRunHeader *fRunHeader; // RunHeader information24 MPedestalCam *fPedestals; // Pedestals of all pixels in the camera 25 MRawEvtData *fRawEvt; // raw event data (time slices) 26 MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation 27 MRawRunHeader *fRunHeader; // RunHeader information 28 28 29 Bool_t fEnableFix; // fix for a bug in files from older camera versions (<=40)29 Bool_t fEnableFix; // fix for a bug in files from older camera versions (<=40) 30 30 31 Float_t fSumQuadWeights, fSumWeights; 32 static Float_t fWeight[15]; 31 33 32 34 public: … … 41 43 }; 42 44 45 43 46 #endif
Note:
See TracChangeset
for help on using the changeset viewer.