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