Changeset 1180 for trunk/MagicSoft/Mars/manalysis/MMcPedestalNSBAdd.cc
- Timestamp:
- 01/15/02 11:48:08 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MMcPedestalNSBAdd.cc
r1174 r1180 38 38 // slice: // 39 39 // // 40 // Y=sqrt(X*FADC_time/Number_of_slice*pixel_size)*Amp_single_phe_response // 40 // Y = sqrt(X * FADC_time / Number_of_slices * pixel_size) // 41 // * Amp_single_phe_response // 41 42 // // 42 43 // Input Containers: // … … 81 82 // RunHeader tree the auto scheme is disabled by default 82 83 // 83 AddToBranchList(" fPedesMean");84 AddToBranchList(" fElecNoise");84 AddToBranchList("MMcFadcHeader.fPedesMean"); 85 AddToBranchList("MMcFadcHeader.fElecNoise"); 85 86 } 86 87 … … 105 106 // -------------------------------------------------------------------------- 106 107 // 107 // The PreProcess does nothing since the process does not exist and 108 // therefore it does not need any pointer or files already initialysed 109 108 // - check whether we have a monte carlo file. if not skip this task 109 // - try to get MMcFadcHeader, MGeomCam and MPedestalCam from the parameter 110 // list 111 // - try to find a MMcRunHeader, too 112 // 110 113 Bool_t MMcPedestalNSBAdd::PreProcess(MParList *pList) 111 114 { 112 113 // FIX ME , ReInit should be called automatically. When it is114 // implemented then this line should be removed.115 116 115 if (!CheckRunType(pList)) 117 116 { … … 149 148 } 150 149 150 // -------------------------------------------------------------------------- 151 // 152 // If a MMcRunHeader is available the DNSB MMcRunHeader::GetNumPheFromDNSB 153 // is returned. Otherwise the user given number is used. 154 // 151 155 Float_t MMcPedestalNSBAdd::GetDnsb(MParList *pList) const 152 156 { … … 206 210 for (int i=0; i<num; i++) 207 211 { 208 MPedestalPix &pix = (*fPedCam)[i];209 MGeomPix&pixgeom = (*fGeom)[i];210 211 const Float_t pedrms 212 const Float_t size 213 214 const Float_t ampl 212 MPedestalPix &pix = (*fPedCam)[i]; 213 const MGeomPix &pixgeom = (*fGeom)[i]; 214 215 const Float_t pedrms = pix.GetSigma(); 216 const Float_t size = pixgeom.GetR()*pixgeom.GetR()/size0; 217 218 const Float_t ampl = fFadc->GetAmplitud(); 215 219 216 220 pix.SetSigma(sqrt(pedrms*pedrms + dnsbpix*ampl*ampl*size));
Note:
See TracChangeset
for help on using the changeset viewer.