Changeset 6231 for trunk/MagicSoft
- Timestamp:
- 02/03/05 11:55:25 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6214 r6231 20 20 21 21 -*-*- END OF LINE -*-*- 22 23 2005/02/03 Markus Gaug 24 25 * mcalib/MCalibColorSet.[h,cc] 26 - implement possibility to set colour explicitely (e.g. for MC). 27 22 28 23 29 2005/02/02 Markus Gaug -
trunk/MagicSoft/Mars/callisto.rc
r6180 r6231 56 56 # ------------------------------------------------------------------------- 57 57 MJPedestalC1.ExtractSignal: MExtractTimeAndChargeDigitalFilter 58 # ------------------------------------------------------------------------- 59 # Define here an extractor which can be used for the December 04 data. 60 # ------------------------------------------------------------------------- 61 #MJPedestalC1.ExtractSignal: MExtractTimeAndChargeSpline 62 #MJCalibration.ExtractSignal.Amplitude 63 #MJCalibrateSignal.ExtractSignal.Amplitude 64 #MJCalibrateSignal.ExtractInterlaced.Amplitude 58 65 59 66 # ------------------------------------------------------------------------- … … 182 189 # Use this to change the behaviour of the calibration 183 190 # ------------------------------------------------------------------------- 191 # Type if you set a colour explicitely from outside (only for MC!!!) 192 #MJCalibration.MCalibColorSet.ExplicitColor: green,blue,uv,ct1 193 184 194 #MJCalibration.MCalibrationChargeCalc.ChargeLimit: 2.5 185 195 #MJCalibration.MCalibrationChargeCalc.ChargeErrLimit: 0 … … 304 314 # Type of used data format: raw,root,MC 305 315 #MJCalibrateSignal.DataType: Root 316 # Type if you set a colour explicitely from outside (only for MC!!!) 317 #MJCalibrateSignal.MCalibColorSet.ExpicitColor: green,blue,uv,ct1 306 318 #MJCalibrateSignal.MCalibrateData.PedestalFlag: Event 307 319 #MJCalibrateSignal.MCalibrateData.CalibrationMode: Default -
trunk/MagicSoft/Mars/mcalib/MCalibColorSet.cc
r6185 r6231 65 65 // 66 66 MCalibColorSet::MCalibColorSet(const char *name, const char *title) 67 : fPattern(0), fHeader(0)67 : fPattern(0), fHeader(0), fIsExplicitColor(kFALSE) 68 68 { 69 69 fName = name ? name : "MCalibColorSet"; … … 76 76 { 77 77 78 fColor = MCalibrationCam::kNONE; 79 fStrength = -1.; 80 fIsValid = kFALSE; 81 78 fIsValid = kFALSE; 79 80 if (fIsExplicitColor) 81 return; 82 83 fColor = MCalibrationCam::kNONE; 84 fStrength = -1.; 82 85 } 83 86 … … 169 172 } 170 173 174 if (fIsExplicitColor) 175 { 176 fIsValid = kTRUE; 177 return kTRUE; 178 } 179 171 180 const Int_t num = header->GetRunNumber(); 172 181 … … 535 544 return kTRUE; 536 545 } 546 547 Int_t MCalibColorSet::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 548 { 549 550 Bool_t rc = kFALSE; 551 552 if (IsEnvDefined(env, prefix, "ExplicitColor", print)) 553 { 554 TString dat = GetEnvValue(env, prefix, "ExplicitColor", ""); 555 if (dat.BeginsWith("green", TString::kIgnoreCase)) 556 SetExplicitColor(MCalibrationCam::kGREEN); 557 if (dat.BeginsWith("blue", TString::kIgnoreCase)) 558 SetExplicitColor(MCalibrationCam::kBLUE); 559 if (dat.BeginsWith("uv", TString::kIgnoreCase)) 560 SetExplicitColor(MCalibrationCam::kUV); 561 if (dat.BeginsWith("ct1", TString::kIgnoreCase)) 562 SetExplicitColor(MCalibrationCam::kCT1); 563 rc = kTRUE; 564 } 565 566 return rc; 567 } -
trunk/MagicSoft/Mars/mcalib/MCalibColorSet.h
r6013 r6231 29 29 30 30 Bool_t fIsValid; // Have to set the pulse pattern? 31 31 Bool_t fIsExplicitColor; // Is colour set explicitely from outside (for MC)? 32 32 33 void CheckAndSet(const TString &str, const char *regexp, MCalibrationCam::PulserColor_t col, Float_t strength); 33 34 … … 35 36 Int_t PreProcess(MParList *pList); 36 37 Int_t Process(); 38 39 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 37 40 38 41 public: … … 41 44 42 45 void Clear(const Option_t *o=""); 46 47 void SetExplicitColor( const MCalibrationCam::PulserColor_t col, const Float_t strength=10.) 48 { 49 fIsExplicitColor = kTRUE; 50 fColor = col; 51 fStrength = 10.; 52 } 43 53 44 54 ClassDef(MCalibColorSet, 0) // Task to workaround missing colors
Note:
See TracChangeset
for help on using the changeset viewer.