source: trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.h@ 5773

Last change on this file since 5773 was 5595, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.0 KB
Line 
1#ifndef MARS_MExtractTimeAndCharge
2#define MARS_MExtractTimeAndCharge
3
4#ifndef MARS_MExtractTime
5#include "MExtractTime.h"
6#endif
7
8class MPedestalPix;
9class MExtractTimeAndCharge : public MExtractTime
10{
11private:
12
13 static const Float_t fgLoGainStartShift; // Default for fLoGainStartShift (now set to: -2.8)
14
15 Byte_t fLoGainFirstSave; //! Temporary variable to store the original position of low-gain start slice
16 Float_t fLoGainStartShift; // Shift to start searching the low-gain signal obtained from the high-gain times.
17
18protected:
19
20 Int_t fWindowSizeHiGain; // Window Size High-Gain
21 Int_t fWindowSizeLoGain; // Window Size Low-Gain
22
23 Int_t PreProcess(MParList *pList);
24 Int_t Process();
25 Bool_t ReInit(MParList *pList);
26
27 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
28
29public:
30
31 MExtractTimeAndCharge(const char *name=NULL, const char *title=NULL);
32
33 Int_t GetWindowSizeHiGain() const { return fWindowSizeHiGain; }
34 Int_t GetWindowSizeLoGain() const { return fWindowSizeLoGain; }
35
36 void Print(Option_t *o="") const;
37
38 void SetLoGainStartShift( const Float_t f=fgLoGainStartShift ) { fLoGainStartShift = f + fOffsetLoGain; }
39 virtual void SetWindowSize(Int_t windowh, Int_t windowl) { fWindowSizeHiGain = windowh;
40 fWindowSizeLoGain = windowl; }
41
42 virtual Bool_t InitArrays() { return kTRUE; }
43
44 virtual void FindTimeAndChargeHiGain(Byte_t *firstused, Byte_t *logain, Float_t &sum, Float_t &dsum,
45 Float_t &time, Float_t &dtime,
46 Byte_t &sat, const MPedestalPix &ped, const Bool_t abflag) { }
47
48 virtual void FindTimeAndChargeLoGain(Byte_t *firstused, Float_t &sum, Float_t &dsum,
49 Float_t &time, Float_t &dtime,
50 Byte_t &sat, const MPedestalPix &ped, const Bool_t abflag) { }
51
52 ClassDef(MExtractTimeAndCharge, 1) // Time And Charge Extractor Base Class
53};
54
55#endif
56
57
58
Note: See TracBrowser for help on using the repository browser.