source: trunk/Mars/msignal/MExtractPINDiode.h@ 16485

Last change on this file since 16485 was 11568, checked in by tbretz, 13 years ago
Changed fHiGainFirst/fHiGainLast from Byte_t to UShort_t to support the DRS with 1024 samples.
File size: 2.6 KB
Line 
1#ifndef MARS_MExtractPINDiode
2#define MARS_MExtractPINDiode
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MExtractPINDiode //
7// //
8// Integrates the time slices of the all pixels of a calibration event //
9// and substract the pedestal value //
10// //
11/////////////////////////////////////////////////////////////////////////////
12
13#ifndef MARS_MExtractor
14#include "MExtractor.h"
15#endif
16
17#ifndef MARS_MArrayF
18#include "MArrayF.h"
19#endif
20
21class TH1F;
22class MExtractedSignalPINDiode;
23
24class MExtractPINDiode : public MExtractor
25{
26private:
27
28 static const UInt_t fgPINDiodeIdx;
29 static const Byte_t fgHiGainFirst; // First FADC slice Hi-Gain (now set to: 3)
30 static const Byte_t fgHiGainLast; // Last FADC slice Hi-Gain (now set to: 14)
31 static const Byte_t fgLoGainFirst; // First FADC slice Lo-Gain (now set to: 3)
32 static const Byte_t fgLoGainLast; // Last FADC slice Lo-Gain (now set to: 14)
33
34 static const Byte_t fgLowerFitLimit; // Default for fLowerFitLimit (now set to: 2)
35 static const Byte_t fgUpperFitLimit; // Default for fUpperFitLimit (now set to: 5)
36
37 Byte_t fLowerFitLimit; // Number of FADC slices before maximum to start fit
38 Byte_t fUpperFitLimit; // Number of FADC slices after maximum to end fit
39
40 MExtractedSignalPINDiode *fPINDiode; // Extracted signal of the PIN Diode
41 TH1F *fSlices; // Histogram to fit the slices
42
43 UInt_t fPINDiodeIdx; // PIN Diode pixel ID
44
45 MArrayF fPedMean; // The used pedestals (0: ped+AB, 1: ped-AB)
46
47 Int_t PreProcess( MParList *pList );
48 Bool_t ReInit ( MParList *pList );
49 Int_t Process ();
50 Int_t PostProcess();
51
52public:
53
54 MExtractPINDiode(const char *name=NULL, const char *title=NULL);
55 ~MExtractPINDiode();
56
57 // Setters
58 void SetRange(UShort_t hifirst=0, UShort_t hilast=0, Int_t lofirst=0, Byte_t lolast=0);
59 void SetPINDiodeIdx ( const UInt_t idx=fgPINDiodeIdx ) { fPINDiodeIdx = idx; }
60 void SetLowerFitLimit( const Byte_t lim=fgLowerFitLimit ) { fLowerFitLimit = lim; }
61 void SetUpperFitLimit( const Byte_t lim=fgUpperFitLimit ) { fUpperFitLimit = lim; }
62
63 ClassDef(MExtractPINDiode, 1) // Signal Extractor for the PIN Diode
64};
65
66#endif
Note: See TracBrowser for help on using the repository browser.