Changeset 2325 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 09/07/03 17:37:19 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc
r2324 r2325 151 151 return kTRUE; 152 152 153 ScalePedestals();154 155 153 MMcRunHeader *mcrunheader = (MMcRunHeader*)pList->FindObject("MMcRunHeader"); 156 154 if (!mcrunheader) … … 161 159 162 160 fEnableFix = kFALSE; 161 163 162 if (mcrunheader->GetCamVersion() <= 40) 164 163 fEnableFix = kTRUE; 165 164 165 ScalePedestals(); 166 166 167 return kTRUE; 167 168 } … … 175 176 MPedestalPix &ped = (*fPedestals)[idx]; 176 177 178 // This converts the pedestal info contained in ped from the pedestal 179 // of each FADC slice to the pedesal of the pixel signal (depends on 180 // how many FADC slices are added up). 181 177 182 const Double_t offset = fEnableFix ? ped.GetPedestal()-0.5 : ped.GetPedestal(); 178 ped.Set(offset, ped.GetPedestalRms()*sqrt(fSumQuadWeights)); 183 184 ped.Set(offset*fSumQuadWeights*fSumQuadWeights, 185 ped.GetPedestalRms()*fSumQuadWeights); 179 186 } 180 187
Note:
See TracChangeset
for help on using the changeset viewer.