Changeset 5128 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 09/25/04 12:09:09 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibColorSteer.cc
r5056 r5128 200 200 // 201 201 // Reads the pattern from MRawEvtHeader and initializes new containers in the 202 // Intensity Cams, if the pattern has changed 202 // Intensity Cams, if the pattern has changed. Executes CallPostProcess of the 203 // MCalibration*Calc classes in that case. 203 204 // 204 205 Int_t MCalibColorSteer::Process() … … 242 243 return kTRUE; 243 244 } 245 244 246 245 247 // -------------------------------------------------------------------------- … … 359 361 number[MCalibrationCam::kCT1] += 1; 360 362 361 TString result = "";363 TString result; 362 364 363 365 for (Int_t i=0; i<MCalibrationCam::gkNumPulserColors; i++) … … 367 369 case MCalibrationCam::kGREEN: 368 370 if (number[i] > 0.1) 369 { 370 result += number[i]; 371 result += "GREEN"; 372 } 371 result = Form("%2.1f%s",number[i],"GREEN"); 373 372 break; 374 373 case MCalibrationCam::kBLUE: 375 374 if (number[i] > 0.1) 376 { 377 result += number[i]; 378 result += "BLUE"; 379 } 375 result = Form("%2.1f%s",number[i],"BLUE"); 380 376 break; 381 377 case MCalibrationCam::kUV: 382 378 if (number[i] > 0.1) 383 { 384 result += number[i]; 385 result += "UV"; 386 } 379 result = Form("%2.1f%s",number[i],"UV"); 387 380 break; 388 381 case MCalibrationCam::kCT1: 389 382 if (number[i] > 0.1) 390 result += "CT1";383 result = Form("%2.1f%s",number[i],"CT1"); 391 384 break; 392 385 } -
trunk/MagicSoft/Mars/mcalib/MCalibrationBlindCam.cc
r5043 r5128 61 61 62 62 InitSize(nblind); 63 63 64 } 64 65 65 66 void MCalibrationBlindCam::Add(const UInt_t a, const UInt_t b) 66 67 { 68 67 69 for (UInt_t i=a; i<b; i++) 68 70 fPixels->AddAt(new MCalibrationBlindPix,i); 71 69 72 } 70 73 … … 184 187 185 188 189 // -------------------------------------------------------------------------- 190 // 191 // Set color to this class and to the MCalibrationBlindPix's 192 // 193 void MCalibrationBlindCam::SetPulserColor ( const MCalibrationCam::PulserColor_t col ) 194 { 195 196 fPulserColor = col; 197 fPixels->ForEach(MCalibrationBlindPix, SetColor)(col); 198 199 } -
trunk/MagicSoft/Mars/mcalib/MCalibrationBlindCam.h
r5045 r5128 26 26 Float_t GetFluxInsidePlexiglassVar () const; 27 27 Float_t GetFluxInsidePlexiglassRelVar() const; 28 29 void SetPulserColor( const MCalibrationCam::PulserColor_t col ); 28 30 29 31 ClassDef(MCalibrationBlindCam, 2) // Container Blind Pixels Calibration Results Camera -
trunk/MagicSoft/Mars/mcalib/MCalibrationBlindCamTwoNewStyle.h
r4986 r5128 19 19 20 20 MCalibrationBlindCamTwoNewStyle(const char *name=NULL); 21 21 22 22 ClassDef(MCalibrationBlindCamTwoNewStyle, 1) // Container Blind Pixel Calibration Results - after run 31693 23 23 }; -
trunk/MagicSoft/Mars/mcalib/MCalibrationCam.h
r5043 r5128 44 44 PulserColor_t fPulserColor; // Colour of the pulsed LEDs 45 45 46 TOrdCollection *fPixels; // Array of MCalibrationPix, one per pixel46 TOrdCollection *fPixels; //-> Array of MCalibrationPix, one per pixel 47 47 TOrdCollection *fAverageAreas; // Array of MCalibrationPix, one per pixel area 48 48 TOrdCollection *fAverageSectors; // Array of MCalibrationPix, one per camera sector … … 99 99 void SetNumUnsuitable ( const UInt_t i, const Int_t aidx ); 100 100 void SetNumUnreliable ( const UInt_t i, const Int_t aidx ); 101 v oid SetPulserColor( const PulserColor_t col=kCT1 ) { fPulserColor = col; }101 virtual void SetPulserColor( const PulserColor_t col=kCT1 ) { fPulserColor = col; } 102 102 103 103 ClassDef(MCalibrationCam, 5) // Base class Container for Calibration Results Camera
Note:
See TracChangeset
for help on using the changeset viewer.