- Timestamp:
- 11/18/04 10:57:29 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5423 r5425 20 20 21 21 -*-*- END OF LINE -*-*- 22 23 2004/11/18: Markus Gaug 24 25 * msignal/MExtractor.[h,cc] 26 - introduce possibility to choose name of MExtractedSignalCam. Need 27 access to different MExtractedSignalCams for comparative extractor 28 studies. Analogues to MPedestalCam in MPedCalcFromLoGain. Default 29 is "MExtractedSignalCam", like before. 30 - set version number by one higher because of new data member 31 "fNameSignalCam" 32 22 33 23 34 2004/11/17: Abelardo Moralejo -
trunk/MagicSoft/Mars/msignal/MExtractor.cc
r5387 r5425 98 98 // - fSaturationLimit to fgSaturationLimit 99 99 // - fNamePedestalCam to fgNamePedestalCam 100 // - fNameSignalCam to fgNameSignalCam 100 101 // - fNoiseCalculation to kFALSE 101 102 // … … 113 114 114 115 SetNamePedestalCam(); 116 SetNameSignalCam(); 115 117 SetOffsetLoGain(); 116 118 SetRange(); … … 160 162 if (!fPedestals) 161 163 { 162 *fLog << err << AddSerialNumber("MPedestalCam") << " not found... aborting" << endl;164 *fLog << err << fNamePedestalCam.Data() << " not found... aborting" << endl; 163 165 return kFALSE; 164 166 } 165 167 166 fSignals = (MExtractedSignalCam*)pList->FindCreateObj( AddSerialNumber("MExtractedSignalCam"));168 fSignals = (MExtractedSignalCam*)pList->FindCreateObj("MExtractedSignalCam",AddSerialNumber(fNameSignalCam)); 167 169 if (!fSignals) 170 { 171 *fLog << err << fNameSignalCam.Data() << " could not be found nor created... aborting" << endl; 168 172 return kFALSE; 173 } 169 174 170 175 return kTRUE; -
trunk/MagicSoft/Mars/msignal/MExtractor.h
r5381 r5425 26 26 static const Float_t fgOffsetLoGain; //! Default for fOffsetLoGain (now set to 1.51 (= 5ns) 27 27 28 Bool_t fNoiseCalculation; // Flag if the extractor is used to determine the noise contribution from apedestal file.28 Bool_t fNoiseCalculation; // Flag if extractor determines noise contribution from pedestal file. 29 29 30 30 protected: … … 32 32 static const Byte_t fgSaturationLimit; //! Default for fSaturationLimit (now set to: 254) 33 33 static const TString fgNamePedestalCam; //! "MPedestalCam" 34 35 Float_t fOffsetLoGain; // Offset of the low-gain signal w.r.t. the High-Gain slices 34 static const TString fgNameSignalCam; //! "MExtractedSignalCam" 35 36 Float_t fOffsetLoGain; // Offset of the low-gain signal w.r.t. the High-Gain slices 36 37 37 38 MPedestalCam *fPedestals; //! Pedestals of all pixels in the camera … … 55 56 56 57 Byte_t fSaturationLimit; // Highest FADC slice value until being declared saturated 57 TString fNamePedestalCam; // Name of the 'MPedestalCam' container 58 TString fNamePedestalCam; // Name of the 'MPedestalCam' container 59 TString fNameSignalCam; // Name of the 'MExtractedSignalCam' container 58 60 59 61 virtual void FindSignalHiGain(Byte_t *firstused, Byte_t *lowgain, Float_t &sum, Byte_t &sat) const { } 60 62 virtual void FindSignalLoGain(Byte_t *firstused, Float_t &sum, Byte_t &sat) const { } 61 63 62 Int_t PreProcess( MParList *pList);63 Bool_t ReInit (MParList *pList);64 Int_t Process ();64 Int_t PreProcess( MParList *pList ); 65 Bool_t ReInit ( MParList *pList ); 66 Int_t Process (); 65 67 void StreamPrimitive(ofstream &out) const; 66 68 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); … … 80 82 virtual void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0); 81 83 82 void SetOffsetLoGain(const Float_t f=fgOffsetLoGain) { fOffsetLoGain = f; } 83 void SetSaturationLimit(Byte_t lim=fgSaturationLimit) { fSaturationLimit = lim; } 84 void SetNamePedestalCam(const char *name=fgNamePedestalCam.Data()) { fNamePedestalCam = name; } 85 void SetNoiseCalculation(const Bool_t b=kTRUE) { fNoiseCalculation = b; } 84 void SetOffsetLoGain ( const Float_t f=fgOffsetLoGain ) { fOffsetLoGain = f; } 85 void SetSaturationLimit ( const Byte_t lim=fgSaturationLimit ) { fSaturationLimit = lim; } 86 void SetNamePedestalCam ( const char *name=fgNamePedestalCam.Data()) { fNamePedestalCam = name; } 87 void SetNameSignalCam ( const char *name=fgNameSignalCam.Data() ) { fNameSignalCam = name; } 88 void SetNoiseCalculation( const Bool_t b=kTRUE ) { fNoiseCalculation = b; } 86 89 87 90 void Print(Option_t *o="") const; 88 91 89 ClassDef(MExtractor, 3) // Signal Extractor Base Class92 ClassDef(MExtractor, 4) // Signal Extractor Base Class 90 93 }; 91 94
Note:
See TracChangeset
for help on using the changeset viewer.