Changeset 4967 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 09/13/04 10:23:06 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationCam.cc
r4905 r4967 115 115 // 116 116 // delete fPixels should delete all Objects stored inside 117 // 117 // 118 118 if (fPixels) 119 119 delete fPixels; -
trunk/MagicSoft/Mars/mcalib/MCalibrationCam.h
r4905 r4967 44 44 PulserColor_t fPulserColor; // Colour of the pulsed LEDs 45 45 46 TClonesArray *fPixels; // ->Array of MCalibrationPix, one per pixel47 TClonesArray *fAverageAreas; // ->Array of MCalibrationPix, one per pixel area48 TClonesArray *fAverageSectors; // ->Array of MCalibrationPix, one per camera sector46 TClonesArray *fPixels; // Array of MCalibrationPix, one per pixel 47 TClonesArray *fAverageAreas; // Array of MCalibrationPix, one per pixel area 48 TClonesArray *fAverageSectors; // Array of MCalibrationPix, one per camera sector 49 49 TClonesArray *fAverageBadAreas; //-> Array of MBadPixelsPix, one per pixel area 50 50 TClonesArray *fAverageBadSectors; //-> Array of MBadPixelsPix, one per camera sector -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeBlindCam.cc
r4882 r4967 81 81 } 82 82 83 84 83 // -------------------------------------- 85 84 // -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeBlindPix.cc
r4882 r4967 140 140 141 141 } 142 143 142 144 143 // ------------------------------------------------------------------------ -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r4948 r4967 551 551 // The pattern has changed, we have to initialize everything new!!! 552 552 // 553 *fLog << inf << "New pulser pattern: " ;553 *fLog << inf << GetDescriptor() << "- New pulser pattern: " ; 554 554 for (Int_t i=16; i>= 0; i--) 555 555 *fLog << (pattern >> i & 1); … … 562 562 fPulserColor = MCalibrationCam::kNONE; 563 563 564 if (fPulserPattern & kAnyGreen ) 565 fPulserColor = MCalibrationCam::kGREEN; 566 567 if (fPulserPattern & kAnyBlue ) 568 if (fPulserColor != MCalibrationCam::kNONE) 569 { 570 *fLog << err << GetDescriptor() 571 << "Multiple colours used simultaneously in calibration file. Will skip this part!" << endl; 572 return kCONTINUE; 573 } 574 else 575 fPulserColor = MCalibrationCam::kBLUE; 576 577 if (fPulserPattern & kAnyUV ) 578 if (fPulserColor != MCalibrationCam::kNONE) 579 { 580 *fLog << err << GetDescriptor() 581 << "Multiple colours used simultaneously in calibration file. Will skip this part!" << endl; 582 return kCONTINUE; 583 } 584 else 585 fPulserColor = MCalibrationCam::kUV; 586 587 if (fPulserPattern & kCT1Pulser ) 588 if (fPulserColor != MCalibrationCam::kNONE) 589 { 590 *fLog << err << GetDescriptor() 591 << "Multiple colours used simultaneously in calibration file. Will skip this part!" << endl; 592 return kCONTINUE; 593 } 594 else 595 fPulserColor = MCalibrationCam::kCT1; 596 597 *fLog << inf << GetDescriptor() << ": Found new colour ... " << flush; 564 if (fPulserPattern & kAnyGreen) 565 fPulserColor = MCalibrationCam::kGREEN; 566 567 if ((fPulserPattern & kAnyBlue || 568 fPulserPattern & kAnyUV || 569 fPulserPattern & kCT1Pulser) && fPulserColor != MCalibrationCam::kNONE) 570 { 571 *fLog << err << "Multiple colours used simultaneously in calibration file. Will skip this part!" << endl; 572 return kCONTINUE; 573 } 574 575 if (fPulserColor == MCalibrationCam::kNONE) 576 { 577 if (fPulserPattern & kAnyBlue) 578 fPulserColor = MCalibrationCam::kBLUE; 579 if (fPulserPattern & kAnyUV) 580 fPulserColor = MCalibrationCam::kUV; 581 if (fPulserPattern & kCT1Pulser) 582 fPulserColor = MCalibrationCam::kCT1; 583 } 584 585 *fLog << inf << "Found new colour ... " << flush; 598 586 599 587 switch (fPulserColor) -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.cc
r4882 r4967 136 136 } 137 137 138 139 138 // -------------------------------------- 140 139 // -
trunk/MagicSoft/Mars/mcalib/MCalibrationIntensityCam.cc
r4911 r4967 50 50 51 51 using namespace std; 52 52 53 // -------------------------------------------------------------------------- 53 54 // … … 72 73 MCalibrationIntensityCam::~MCalibrationIntensityCam() 73 74 { 74 if (fCams)75 delete fCams;75 if (fCams) 76 delete fCams; 76 77 } 77 78 -
trunk/MagicSoft/Mars/mcalib/MCalibrationIntensityCam.h
r4899 r4967 33 33 protected: 34 34 35 TClonesArray *fCams; // ->Array of MCalibrationCams, one per pulse colour and intensity35 TClonesArray *fCams; // Array of MCalibrationCams, one per pulse colour and intensity 36 36 37 37 public: -
trunk/MagicSoft/Mars/mcalib/MCalibrationIntensityChargeCam.cc
r4899 r4967 46 46 47 47 using namespace std; 48 48 49 // -------------------------------------------------------------------------- 49 50 // … … 54 55 // Creates a TClonesArray of MCalibrationChargeCam containers, initialized to 1 entry, destinated 55 56 // to hold one container per camera. 56 //57 // Calls:58 // - Clear()59 57 // 60 58 MCalibrationIntensityChargeCam::MCalibrationIntensityChargeCam(const char *name, const char *title) … … 67 65 68 66 } 69 -
trunk/MagicSoft/Mars/mcalib/MCalibrationIntensityQECam.cc
r4899 r4967 51 51 // Sets all pointers to 0 52 52 // 53 // Creates a TClonesArray of MCalibrationQECam containers, initialized to 1 entry, destinated 54 // to hold one container per camera. 55 // 56 // Calls: 57 // - Clear() 53 // Creates a TClonesArray of MCalibrationQECam containers, initialized 54 // to 1 entry, destinated to hold one container per camera. 58 55 // 59 56 MCalibrationIntensityQECam::MCalibrationIntensityQECam(const char *name, const char *title) … … 66 63 67 64 } 68 -
trunk/MagicSoft/Mars/mcalib/MCalibrationIntensityRelTimeCam.cc
r4899 r4967 45 45 46 46 using namespace std; 47 47 48 // -------------------------------------------------------------------------- 48 49 // … … 54 55 // to hold one container per camera. 55 56 // 56 // Calls:57 // - Clear()58 57 // 59 58 MCalibrationIntensityRelTimeCam::MCalibrationIntensityRelTimeCam(const char *name, const char *title) … … 66 65 67 66 } 68 -
trunk/MagicSoft/Mars/mcalib/MCalibrationQECam.h
r4882 r4967 34 34 35 35 MCalibrationQECam(const char *name=NULL, const char *title=NULL); 36 ~MCalibrationQECam() {}37 36 38 37 void Clear( Option_t *o="" );
Note:
See TracChangeset
for help on using the changeset viewer.