Changeset 2325 for trunk/MagicSoft/Mars
- Timestamp:
- 09/07/03 17:37:19 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2324 r2325 12 12 reason for the discrepancies in the gamma/hadron separation 13 13 results we were observing lately. The meaning of Size was 14 different among the different people working on the matter, and14 different among the different people working on the subject, and 15 15 hence, when we compared samples with a given Size cut we were 16 16 actually comparing different energy ranges. 17 18 - Turned fSumQuadWeights to its original meaning, the quadratic 19 sum (square root of the sum of the squares) of the values in the 20 fWeight array. Why was this changed?? (sqrt removed) Only because 21 of the name of the variable?? 22 23 - Changed the calculation of the mean pedestal to fit the meaning 24 of fSumQuadWeights. 25 26 - Moved the call to ScalePedestals() to the end of the ReInit 27 function. Formerly it was called before the setting of the 28 variable fEnableFix, and then the mean pedestal in each FADC 29 slice was wrong by 0.5 units... once more: please Thomas B, 30 be careful with these kind of changes. 17 31 18 32 -
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.