Changeset 3689 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 04/08/04 20:52:59 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.cc
r3638 r3689 55 55 #include "MCalibrationChargePix.h" 56 56 #include "MCalibrationChargeCam.h" 57 58 #include "MCalibrationQEPix.h" 59 #include "MCalibrationQECam.h" 60 57 61 #include "MExtractedSignalCam.h" 58 62 #include "MExtractedSignalPix.h" … … 121 125 *fLog << inf << AddSerialNumber("MCalibrationChargeCam") << " already exists... " << endl; 122 126 } 127 128 fQECam = (MCalibrationQECam*) pList->FindObject(AddSerialNumber("MCalibrationQECam")); 129 if (!fQECam) 130 { 131 fQECam = (MCalibrationQECam*) pList->FindCreateObj(AddSerialNumber("MCalibrationQECam")); 132 if (!fQECam) 133 return kFALSE; 134 } 135 else 136 { 137 fFillQECam = kFALSE; 138 *fLog << inf << AddSerialNumber("MCalibrationQECam") << " already exists... " << endl; 139 } 140 123 141 124 142 fPedPhotCam = (MPedPhotCam*) pList->FindCreateObj(AddSerialNumber("MPedPhotCam")); … … 235 253 const int num = fCalCam->GetSize(); 236 254 237 fCalCam->SetBlindPixelMethodValid(kTRUE); 238 255 fCalCam->SetFFactorMethodValid ( kTRUE ); 256 fQECam->SetFFactorMethodValid ( kTRUE ); 257 fQECam->SetBlindPixelMethodValid ( kTRUE ); 258 fQECam->SetCombinedMethodValid ( kTRUE ); 259 fQECam->SetPINDiodeMethodValid ( kTRUE ); 260 239 261 for (int i=0; i<num; i++) 240 262 { 241 263 MCalibrationChargePix &calpix = (MCalibrationChargePix&)(*fCalCam)[i]; 242 264 243 calpix.Set BlindPixelMethodValid();265 calpix.SetFFactorMethodValid(); 244 266 245 267 calpix.SetConversionHiLo(fConversionHiLo); … … 247 269 248 270 // 249 // Write conversion factor ADC to photo ns (different for inner271 // Write conversion factor ADC to photo-electrons (different for inner 250 272 // and outer pixels). 251 273 // 252 253 274 Float_t adc2phot = (fGeom->GetPixRatio(i) < fGeom->GetPixRatio(0))? 254 275 fADC2PhOuter : fADC2PhInner; 255 276 256 calpix.SetConversionBlindPixelMethod(adc2phot, 0., 0.); 277 // 278 // FIXME: This has now to be split into a adc2phe part and a phe2phot (==QE) part 279 // 280 const Float_t qe = MCalibrationQEPix::gkDefaultAverageQE; 281 calpix.SetMeanConvFADC2Phe(adc2phot*qe); // here, the FADC to phe part should go. 282 calpix.SetMeanConvFADC2PheVar(0.); 283 calpix.SetMeanFFactorFADC2Phot(0.); 284 257 285 } 258 286 … … 306 334 307 335 MCalibrationChargePix &calpix = (MCalibrationChargePix&)(*fCalCam)[i]; 308 Float_t adc2phot = calpix.GetMeanConversionBlindPixelMethod(); 336 // MCalibrationQEPix &qepix = (MCalibrationQEPix&) (*fQECam) [i]; 337 338 Float_t qe = MCalibrationQEPix::gkDefaultAverageQE; 339 Float_t adc2phot = calpix.GetMeanConvFADC2Phe() / qe; 309 340 Float_t hi2lo = calpix.GetConversionHiLo(); 310 341 -
trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.h
r3345 r3689 7 7 8 8 class MCalibrationChargeCam; 9 class MCalibrationQECam; 9 10 class MPedPhotCam; 10 11 class MGeomCam; … … 21 22 22 23 MCalibrationChargeCam *fCalCam; 24 MCalibrationQECam *fQECam; 23 25 MPedPhotCam *fPedPhotCam; 24 26 MGeomCam *fGeom; … … 26 28 MExtractedSignalCam *fSignalCam; 27 29 28 Float_t fADC2PhInner; // Conversion factor from ADC counts to photo ns30 Float_t fADC2PhInner; // Conversion factor from ADC counts to photo-electrons 29 31 Float_t fADC2PhOuter; // for inner and outer pixels. 30 32 31 33 Bool_t fFillCalibrationCam; 34 Bool_t fFillQECam; 32 35 Bool_t fOuterPixelsGainScaling; 33 36
Note:
See TracChangeset
for help on using the changeset viewer.