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

Last change on this file since 5302 was 5242, checked in by gaug, 20 years ago
*** empty log message ***
File size: 1.5 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 PreProcess(MParList *pList);
21 Bool_t ReInit(MParList *pList);
22 Int_t Process();
23
24 virtual void FindTimeAndChargeHiGain(Byte_t *firstused, Byte_t *logain, Float_t &sum, Float_t &dsum,
25 Float_t &time, Float_t &dtime,
26 Byte_t &sat, const MPedestalPix &ped, const Bool_t abflag);
27 virtual void FindTimeAndChargeLoGain(Byte_t *firstused, Float_t &sum, Float_t &dsum,
28 Float_t &time, Float_t &dtime,
29 Byte_t &sat, const MPedestalPix &ped, const Bool_t abflag);
30
31 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
32
33public:
34
35 MExtractTimeAndCharge(const char *name=NULL, const char *title=NULL);
36
37 void SetLoGainStartShift( const Float_t f=fgLoGainStartShift ) { fLoGainStartShift = f + fOffsetLoGain; }
38
39 ClassDef(MExtractTimeAndCharge, 0) // Time And Charge Extractor Base Class
40};
41
42#endif
43
44
45
Note: See TracBrowser for help on using the repository browser.