Changeset 5280
- Timestamp:
- 10/15/04 15:56:43 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTime.cc
r4775 r5280 70 70 using namespace std; 71 71 72 const Float_t MExtractTime::fgOffsetLoGain = 1.51; // 5 ns73 74 72 // -------------------------------------------------------------------------- 75 73 // … … 91 89 fTitle = title ? title : "Base class for signal extractors"; 92 90 93 SetOffsetLoGain();94 91 } 95 92 … … 215 212 } 216 213 217 // --------------------------------------------------------------------------218 //219 // In addition to the resources of the base-class MExtractor:220 // MJPedestal.MExtractor.OffsetLoGain: 1.51221 //222 Int_t MExtractTime::ReadEnv(const TEnv &env, TString prefix, Bool_t print)223 {224 Bool_t rc = kFALSE;225 226 if (IsEnvDefined(env, prefix, "OffsetLoGain", print))227 {228 fOffsetLoGain = GetEnvValue(env, prefix, "OffsetLoGain", fOffsetLoGain);229 rc = kTRUE;230 }231 232 return MExtractor::ReadEnv(env, prefix, print) ? kTRUE : rc;233 }234 235 214 void MExtractTime::Print(Option_t *o) const 236 215 { -
trunk/MagicSoft/Mars/msignal/MExtractTime.h
r5146 r5280 11 11 class MExtractTime : public MExtractor 12 12 { 13 private:14 15 static const Float_t fgOffsetLoGain; // Default for fOffsetLoGain (now set to 1.51 (= 5ns)16 17 13 protected: 18 14 19 Float_t fOffsetLoGain; // Offset of the low-gain signal w.r.t. the High-Gain slices20 21 15 MArrivalTimeCam *fArrTime; //! Container with the photons arrival times 22 16 … … 30 24 Int_t Process (); 31 25 32 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 26 public: 33 27 34 public:35 28 MExtractTime(const char *name=NULL, const char *title=NULL); 36 37 void SetOffsetLoGain( const Float_t f=fgOffsetLoGain) { fOffsetLoGain = f; }38 29 39 30 void Print(Option_t *o) const; -
trunk/MagicSoft/Mars/msignal/MExtractor.cc
r4896 r5280 84 84 using namespace std; 85 85 86 const Byte_t MExtractor::fgSaturationLimit 86 const Byte_t MExtractor::fgSaturationLimit = 254; 87 87 const TString MExtractor::fgNamePedestalCam = "MPedestalCam"; 88 88 const Float_t MExtractor::fgOffsetLoGain = 1.51; // 5 ns 89 89 // -------------------------------------------------------------------------- 90 90 // … … 110 110 111 111 SetNamePedestalCam(); 112 SetOffsetLoGain(); 112 113 SetRange(); 113 114 SetSaturationLimit(); … … 380 381 SetRange(hf, hl, lf, ll); 381 382 383 if (IsEnvDefined(env, prefix, "OffsetLoGain", print)) 384 { 385 SetOffsetLoGain(GetEnvValue(env, prefix, "OffsetLoGain", fOffsetLoGain)); 386 rc = kTRUE; 387 } 388 382 389 if (IsEnvDefined(env, prefix, "SaturationLimit", print)) 383 390 { -
trunk/MagicSoft/Mars/msignal/MExtractor.h
r4723 r5280 22 22 class MExtractor : public MTask 23 23 { 24 private: 25 26 static const Float_t fgOffsetLoGain; //! Default for fOffsetLoGain (now set to 1.51 (= 5ns) 27 24 28 protected: 25 29 26 30 static const Byte_t fgSaturationLimit; //! Default for fSaturationLimit (now set to: 254) 27 static const TString fgNamePedestalCam; //! "MPedestalCam" 28 31 static const TString fgNamePedestalCam; //! "MPedestalCam" 32 33 Float_t fOffsetLoGain; // Offset of the low-gain signal w.r.t. the High-Gain slices 34 29 35 MPedestalCam *fPedestals; //! Pedestals of all pixels in the camera 30 36 MExtractedSignalCam *fSignals; //! Extracted signal of all pixels in the camera … … 70 76 virtual void SetRange ( Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0 ); 71 77 78 void SetOffsetLoGain ( const Float_t f=fgOffsetLoGain) { fOffsetLoGain = f; } 72 79 void SetSaturationLimit ( Byte_t lim=fgSaturationLimit ) { fSaturationLimit = lim; } 73 80 void SetNamePedestalCam ( const char *name=fgNamePedestalCam.Data()) { fNamePedestalCam = name; }
Note:
See TracChangeset
for help on using the changeset viewer.