Changeset 3182 for trunk/MagicSoft
- Timestamp:
- 02/16/04 11:12:04 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MExtractPINDiode.cc
r3171 r3182 49 49 using namespace std; 50 50 51 const UInt_t MExtractPINDiode::fgPINDiodeId = 254;51 const UInt_t MExtractPINDiode::fgPINDiodeIdx = 999; 52 52 const Byte_t MExtractPINDiode::fgSaturationLimit = 254; 53 53 const Byte_t MExtractPINDiode::fgFirst = 1; … … 61 61 : fSaturationLimit(fgSaturationLimit) 62 62 { 63 64 fName = name ? name : "MExtractPINDiode"; 65 fTitle = title ? title : "Task to extract the signal from the FADC slices"; 66 67 AddToBranchList("MRawEvtData.*"); 68 69 SetRange(); 63 64 fName = name ? name : "MExtractPINDiode"; 65 fTitle = title ? title : "Task to extract the signal from the FADC slices"; 66 67 AddToBranchList("MRawEvtData.*"); 68 69 SetRange(); 70 SetPINDiodeIdx(); 70 71 } 71 72 … … 147 148 fPINDiode->Clear(); 148 149 149 pixel.Jump(f gPINDiodeId);150 pixel.Jump(fPINDiodeIdx); 150 151 151 152 UInt_t sum = 0; … … 161 162 sum, sum2, sat, max); 162 163 163 const MPedestalPix &ped = (*fPedestals)[fgPINDiodeId]; 164 165 const Float_t pedes = ped.GetPedestal(); 166 const Float_t pedrms = ped.GetPedestalRms(); 164 const MPedestalPix &ped = (*fPedestals)[fPINDiodeIdx]; 165 166 Float_t pedes = -999.; 167 Float_t pedrms = -999.; 168 169 if (&ped) 170 { 171 pedes = ped.GetPedestal(); 172 pedrms = ped.GetPedestalRms(); 173 } 174 else 175 { 176 *fLog << warn << " Cannot find MPedestalPix of the PIN Diode (idx=" 177 << fPINDiodeIdx << ")" << endl; 178 179 } 167 180 168 181 const Float_t var = ((Float_t)sum2 - (Float_t)sum*sum/fNumSamples)/(fNumSamples-1); -
trunk/MagicSoft/Mars/mcalib/MExtractPINDiode.h
r3171 r3182 24 24 private: 25 25 26 static const UInt_t fgPINDiodeId ;26 static const UInt_t fgPINDiodeIdx; 27 27 static const Byte_t fgSaturationLimit; 28 28 static const Byte_t fgFirst; … … 38 38 Byte_t fLast; 39 39 Byte_t fNumSamples; 40 41 40 Float_t fSqrtSamples; 42 43 41 Byte_t fSaturationLimit; 44 42 UInt_t fPINDiodeIdx; 43 45 44 void FindSignal(Byte_t *ptr, Int_t size, UInt_t &sum, UInt_t &sum2, UInt_t &sat, UInt_t &max) const; 46 45 … … 52 51 53 52 MExtractPINDiode(const char *name=NULL, const char *title=NULL); 54 55 void SetRange(Byte_t hifirst=fgFirst, Byte_t hilast=fgLast); 56 void SetSaturationLimit(Byte_t lim) { fSaturationLimit = lim; } 53 54 // Setters 55 void SetRange(const Byte_t hifirst=fgFirst, const Byte_t hilast=fgLast); 56 void SetSaturationLimit(const Byte_t lim) { fSaturationLimit = lim; } 57 void SetPINDiodeIdx(const UInt_t idx=fgPINDiodeIdx) { fPINDiodeIdx = idx; } 57 58 58 59 ClassDef(MExtractPINDiode, 0) // Task to fill the Extracted PINDiode Containers from raw data
Note:
See TracChangeset
for help on using the changeset viewer.