Changeset 3554 for trunk/MagicSoft
- Timestamp:
- 03/19/04 18:57:35 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3553 r3554 43 43 * mcalib/MCalibrationQEPix.[h,cc] 44 44 - replace DefinePixId by SetPixId 45 46 * mcalib/MCalibrationChargeCalc.[h,cc] 47 - added MCalibrationQECam 48 49 45 50 2004/03/18: Raquel de los Reyes 46 51 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r3511 r3554 44 44 // MHCalibrationChargeCam 45 45 // 46 // P stProcess: Fit results from MHCalibrationChargeCam are retrieved46 // PostProcess: Fit results from MHCalibrationChargeCam are retrieved 47 47 // and used for the calculation of the reduced sigma, 48 48 // the F-Factor method, the blind pixel method (photon flux … … 62 62 // Output Containers: 63 63 // MCalibrationCam 64 // MCalibrationQECam 64 65 // MBadPixelsCam 65 66 // … … 202 203 #include "MBadPixelsPix.h" 203 204 205 #include "MCalibrationQECam.h" 206 #include "MCalibrationQEPix.h" 207 204 208 205 209 ClassImp(MCalibrationChargeCalc); … … 212 216 // 213 217 MCalibrationChargeCalc::MCalibrationChargeCalc(const char *name, const char *title) 214 : fPedestals(NULL), fCam(NULL), 218 : fPedestals(NULL), fCam(NULL), fQECam(NULL), 215 219 fRawEvt(NULL), fRunHeader(NULL), fGeom(NULL), 216 220 fBadPixels(NULL), fEvtTime(NULL), … … 237 241 fNumHiGainSamples = 0.; 238 242 fNumLoGainSamples = 0.; 243 fSqrtHiGainSamples = 0.; 244 fSqrtLoGainSamples = 0.; 239 245 fConversionHiLo = 0; 246 SkipQualityChecks ( kFALSE ); 247 SkipHiLoGainCalibration( kFALSE ); 240 248 241 249 } … … 252 260 // 253 261 // - MCalibrationCam 262 // - MCalibrationQECam 254 263 // 255 264 // The following output containers are only searched, but not created … … 259 268 Int_t MCalibrationChargeCalc::PreProcess(MParList *pList) 260 269 { 261 262 263 270 271 fRawEvt = (MRawEvtData*)pList->FindObject("MRawEvtData"); 272 if (!fRawEvt) 264 273 { 265 274 *fLog << err << "MRawEvtData not found... aborting." << endl; 266 275 return kFALSE; 267 276 } 268 269 fCam = (MCalibrationChargeCam*)pList->FindCreateObj("MCalibrationChargeCam"); 270 if (!fCam) 271 return kFALSE; 272 273 fPINDiode = (MCalibrationChargePINDiode*)pList->FindCreateObj("MCalibrationChargePINDiode"); 274 if (!fPINDiode) 275 return kFALSE; 276 277 fBlindPixel = (MCalibrationChargeBlindPix*)pList->FindCreateObj("MCalibrationChargeBlindPix"); 278 if (!fBlindPixel) 279 return kFALSE; 280 281 fEvtTime = (MTime*)pList->FindObject("MTime"); 282 283 fPedestals = (MPedestalCam*)pList->FindObject("MPedestalCam"); 284 if (!fPedestals) 285 { 286 *fLog << err << "MPedestalCam not found... aborting" << endl; 287 return kFALSE; 288 } 289 290 fSignals = (MExtractedSignalCam*)pList->FindObject("MExtractedSignalCam"); 291 if (!fSignals) 292 { 293 *fLog << err << "MExtractedSignalCam not found... aborting" << endl; 294 return kFALSE; 295 } 296 297 return kTRUE; 277 278 fCam = (MCalibrationChargeCam*)pList->FindCreateObj("MCalibrationChargeCam"); 279 if (!fCam) 280 return kFALSE; 281 282 fQECam = (MCalibrationQECam*)pList->FindCreateObj("MCalibrationQECam"); 283 if (!fQECam) 284 return kFALSE; 285 286 fPINDiode = (MCalibrationChargePINDiode*)pList->FindCreateObj("MCalibrationChargePINDiode"); 287 if (!fPINDiode) 288 return kFALSE; 289 290 fBlindPixel = (MCalibrationChargeBlindPix*)pList->FindCreateObj("MCalibrationChargeBlindPix"); 291 if (!fBlindPixel) 292 return kFALSE; 293 294 fEvtTime = (MTime*)pList->FindObject("MTime"); 295 296 fPedestals = (MPedestalCam*)pList->FindObject("MPedestalCam"); 297 if (!fPedestals) 298 { 299 *fLog << err << "MPedestalCam not found... aborting" << endl; 300 return kFALSE; 301 } 302 303 fSignals = (MExtractedSignalCam*)pList->FindObject("MExtractedSignalCam"); 304 if (!fSignals) 305 { 306 *fLog << err << "MExtractedSignalCam not found... aborting" << endl; 307 return kFALSE; 308 } 309 310 return kTRUE; 298 311 } 299 312 … … 303 316 // The ReInit searches for the following input containers: 304 317 // - MRawRunHeader 318 // - MGeomCam 319 // - MBadPixelsCam 320 // 321 // It retrieves the following variables from MExtractedSignalCam: 322 // 323 // fNumHiGainSamples 324 // fNumLoGainSamples 325 // 326 // fFirstUsedSliceHiGain 327 // fLastUsedSliceHiGain 328 // fFirstUsedSliceLoGain 329 // fLastUsedSliceLoGain 330 // 331 // It defines the PixId of every pixel in MCalibrationChargeCam and MCalibrationQECam 332 // It sets all pixels excluded which have the flag fBadBixelsPix::IsBad() set. 305 333 // 306 334 Bool_t MCalibrationChargeCalc::ReInit(MParList *pList ) … … 337 365 for (UInt_t i=0; i<npixels; i++) 338 366 { 339 MCalibrationChargePix &pix = (*fCam)[i]; 367 MCalibrationChargePix &pix = (*fCam) [i]; 368 MCalibrationQEPix &pqe = (*fQECam) [i]; 340 369 MBadPixelsPix &bad = (*fBadPixels)[i]; 341 370 342 pix.DefinePixId(i); 371 pix.SetPixId(i); 372 pqe.SetPixId(i); 343 373 344 374 if (bad.IsBad()) 345 375 { 346 376 pix.SetExcluded(); 377 pqe.SetExcluded(); 347 378 continue; 348 379 } -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h
r3447 r3554 21 21 class MCalibrationChargeBlindPix; 22 22 class MCalibrationChargeCam; 23 class MCalibrationQECam; 23 24 class MGeomCam; 24 25 class MExtractedSignalCam; … … 29 30 private: 30 31 31 MPedestalCam *fPedestals; //! Pedestals of all pixels in the camera 32 MCalibrationChargeCam *fCam; // Calibration events of all pixels in the camera 33 MRawEvtData *fRawEvt; //! raw event data (time slices) 34 MRawRunHeader *fRunHeader; //! RunHeader information 35 MGeomCam *fGeom; //! Geometry information 36 MBadPixelsCam *fBadPixels; //! Bad Pixels information 32 MPedestalCam *fPedestals; //! Pedestals of all pixels in the camera 33 MCalibrationChargeCam *fCam; // Calibration events of all pixels in the camera 34 MCalibrationQECam *fQECam; // Derived Quantum efficiency of all pixels in the camera 35 MRawEvtData *fRawEvt; //! raw event data (time slices) 36 MRawRunHeader *fRunHeader; //! RunHeader information 37 MGeomCam *fGeom; //! Geometry information 38 MBadPixelsCam *fBadPixels; //! Bad Pixels information 37 39 38 MTime *fEvtTime; 40 MTime *fEvtTime; //! Time of the event 39 41 40 MExtractedSignalCam *fSignals; 41 MCalibrationChargePINDiode *fPINDiode; 42 MCalibrationChargeBlindPix *fBlindPixel; 42 MExtractedSignalCam *fSignals; // Extracted signal of all pixels in the camera 43 MCalibrationChargePINDiode *fPINDiode; // Calibration results of the PIN Diode 44 MCalibrationChargeBlindPix *fBlindPixel; // Calibration results of the Blind Pixel 43 45 44 46 Float_t fNumHiGainSamples; … … 48 50 49 51 Float_t fConversionHiLo; 50 Int_t fFlags; 52 Int_t fFlags; // Flag for the fits used 51 53 52 54 enum { kUseQualityChecks, -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc
r3551 r3554 217 217 fTotalFFactorCombinedMethod = -1.; 218 218 219 }220 221 222 void MCalibrationChargePix::DefinePixId(Int_t i)223 {224 fPixId = i;225 219 } 226 220 -
trunk/MagicSoft/Mars/mcalib/MCalibrationQEPix.h
r3321 r3554 48 48 Bool_t IsQEValid() const; 49 49 50 void 50 void SetPixId(const Int_t i) { fPixId = i; } 51 51 52 52 // Miscellaneous
Note:
See TracChangeset
for help on using the changeset viewer.