PandaRoot
PndEmcFpgaPar.h
Go to the documentation of this file.
1 //#pragma once
2 #ifndef PNDEMCFpgaPAR_H
3 #define PNDEMCFpgaPAR_H
4 
5 #include "FairParGenericSet.h"
6 #include "FairParamList.h"
7 
8 class PndEmcFpgaPar : public FairParGenericSet {
9  public:
10  Int_t GetBarrelMAFilterLength() { return fMAFilterLengthBarrel; }
11  Int_t GetBarrelCFFilterLength() { return fCFFilterLengthBarrel; }
12  Double_t GetBarrelCFFilterRatio() { return fCFFilterRatioBarrel; }
13  Int_t GetBarrelCFDelayLength() { return fCFDelayLengthBarrel; }
14  Int_t GetBarrelCFFitterLength() { return fCFFitterLengthBarrel; }
15  Int_t GetBarrelMWDFilterUsed() { return fMWDFilterUsedBarrel; }
16  Int_t GetBarrelMWDFilterLength() { return fMWDFilterLengthBarrel; }
17  Double_t GetBarrelMWDFilterLifeT() { return fMWDDecayConstantBarrel; } // unit relative to ns
18  Double_t GetBarrelPulseThreshold() { return fPulseThresholdBarrel; } // times over 1MeV noise level
19 
20  Int_t GetForwardMAFilterLength() { return fMAFilterLengthForward; };
21  Int_t GetForwardCFFilterLength() { return fCFFilterLengthForward; }
22  Double_t GetForwardCFFilterRatio() { return fCFFilterRatioForward; }
23  Int_t GetForwardCFFitterLength() { return fCFFitterLengthForward; }
24  Int_t GetForwardCFDelayLength() { return fCFDelayLengthForward; }
25  Int_t GetForwardMWDFilterUsed() { return fMWDFilterUsedForward; }
26  Int_t GetForwardMWDFilterLength() { return fMWDFilterLengthForward; }
27  Double_t GetForwardMWDFilterLifeT() { return fMWDDecayConstantForward; } // unit relative to ns
28  Double_t GetForwardPulseThreshold() { return fPulseThresholdForward; } // times over 1MeV noise level
29 
30  Int_t GetShashylikMAFilterLength() { return fMAFilterLengthShashylik; };
31  Int_t GetShashylikCFFilterLength() { return fCFFilterLengthShashylik; }
32  Double_t GetShashylikCFFilterRatio() { return fCFFilterRatioShashylik; }
33  Int_t GetShashylikCFFitterLength() { return fCFFitterLengthShashylik; }
34  Int_t GetShashylikCFDelayLength() { return fCFDelayLengthShashylik; }
35  Int_t GetShashylikMWDFilterUsed() { return fMWDFilterUsedShashylik; }
36  Int_t GetShashylikMWDFilterLength() { return fMWDFilterLengthShashylik; }
37  Double_t GetShashylikMWDFilterLifeT() { return fMWDDecayConstantShashylik; } // unit relative to ns
38  Double_t GetShashylikPulseThreshold() { return fPulseThresholdShashylik; } // times over 1MeV noise level
39 
40  PndEmcFpgaPar(const char *name = "PndEmcFpgaPar", const char *title = "Emc Fpga module parameter", const char *context = "TestDefaultContext");
41  ~PndEmcFpgaPar(void){};
42 
43  // Empty method, WHY is this Called in constructor(FIXME)
44  void clear(void){};
45 
46  void putParams(FairParamList *list);
47  Bool_t getParams(FairParamList *list);
48 
49  private:
50  Int_t fMAFilterLengthBarrel;
51  Int_t fCFFilterLengthBarrel;
52  Double_t fCFFilterRatioBarrel;
53  Int_t fCFDelayLengthBarrel;
54  Int_t fCFFitterLengthBarrel;
55  Int_t fMWDFilterUsedBarrel;
56  Int_t fMWDFilterLengthBarrel;
57  Double_t fMWDDecayConstantBarrel; // unit relative to ns
58  Double_t fPulseThresholdBarrel; // times over 1MeV noise level
59 
60  Int_t fMAFilterLengthForward;
61  Int_t fCFFilterLengthForward;
62  Double_t fCFFilterRatioForward;
63  Int_t fCFDelayLengthForward;
64  Int_t fCFFitterLengthForward;
65  Int_t fMWDFilterUsedForward;
66  Int_t fMWDFilterLengthForward;
67  Double_t fMWDDecayConstantForward; // unit relative to ns
68  Double_t fPulseThresholdForward; // times over 1MeV noise level
69 
70  Int_t fMAFilterLengthShashylik;
71  Int_t fCFFilterLengthShashylik;
72  Double_t fCFFilterRatioShashylik;
73  Int_t fCFDelayLengthShashylik;
74  Int_t fCFFitterLengthShashylik;
75  Int_t fMWDFilterUsedShashylik;
76  Int_t fMWDFilterLengthShashylik;
77  Double_t fMWDDecayConstantShashylik; // unit relative to ns
78  Double_t fPulseThresholdShashylik; // times over 1MeV noise level
79 
80  ClassDef(PndEmcFpgaPar, 2);
81 };
82 
83 #endif
Int_t GetBarrelMAFilterLength()
Definition: PndEmcFpgaPar.h:10
Int_t GetForwardMWDFilterUsed()
Definition: PndEmcFpgaPar.h:25
Bool_t getParams(FairParamList *list)
Int_t GetForwardCFDelayLength()
Definition: PndEmcFpgaPar.h:24
Int_t GetForwardCFFitterLength()
Definition: PndEmcFpgaPar.h:23
Int_t GetShashylikCFFitterLength()
Definition: PndEmcFpgaPar.h:33
Int_t GetShashylikMWDFilterUsed()
Definition: PndEmcFpgaPar.h:35
Double_t GetBarrelPulseThreshold()
Definition: PndEmcFpgaPar.h:18
Double_t GetForwardMWDFilterLifeT()
Definition: PndEmcFpgaPar.h:27
Double_t GetShashylikCFFilterRatio()
Definition: PndEmcFpgaPar.h:32
Double_t GetBarrelCFFilterRatio()
Definition: PndEmcFpgaPar.h:12
Int_t GetBarrelMWDFilterUsed()
Definition: PndEmcFpgaPar.h:15
void putParams(FairParamList *list)
void clear(void)
Definition: PndEmcFpgaPar.h:44
Int_t GetBarrelMWDFilterLength()
Definition: PndEmcFpgaPar.h:16
Int_t GetForwardCFFilterLength()
Definition: PndEmcFpgaPar.h:21
Int_t GetShashylikCFFilterLength()
Definition: PndEmcFpgaPar.h:31
Int_t GetShashylikCFDelayLength()
Definition: PndEmcFpgaPar.h:34
Int_t GetShashylikMWDFilterLength()
Definition: PndEmcFpgaPar.h:36
Int_t GetBarrelCFFilterLength()
Definition: PndEmcFpgaPar.h:11
Double_t GetShashylikPulseThreshold()
Definition: PndEmcFpgaPar.h:38
Double_t GetShashylikMWDFilterLifeT()
Definition: PndEmcFpgaPar.h:37
~PndEmcFpgaPar(void)
Definition: PndEmcFpgaPar.h:41
Int_t GetBarrelCFDelayLength()
Definition: PndEmcFpgaPar.h:13
Int_t GetForwardMWDFilterLength()
Definition: PndEmcFpgaPar.h:26
PndEmcFpgaPar(const char *name="PndEmcFpgaPar", const char *title="Emc Fpga module parameter", const char *context="TestDefaultContext")
Int_t GetShashylikMAFilterLength()
Definition: PndEmcFpgaPar.h:30
Int_t GetForwardMAFilterLength()
Definition: PndEmcFpgaPar.h:20
Double_t GetForwardCFFilterRatio()
Definition: PndEmcFpgaPar.h:22
Double_t GetBarrelMWDFilterLifeT()
Definition: PndEmcFpgaPar.h:17
Int_t GetBarrelCFFitterLength()
Definition: PndEmcFpgaPar.h:14
Double_t GetForwardPulseThreshold()
Definition: PndEmcFpgaPar.h:28