FairRoot/PandaRoot
PndLmdDigiPara.h
Go to the documentation of this file.
1 /*
2  * PndLmdDigiPara.h*
3  * Created on: Jul 29, 2009
4  * Author: huagen
5 * this digitization parameter contains two kinds of the parameters for straight strip and curve strips
6  */
7 
8 #ifndef PNDLMDDIGIPARA_H_
9 #define PNDLMDDIGIPARA_H_
10 
11 #include "TString.h"
12 #include "TVector2.h"
13 #include "FairParGenericSet.h"
14 #include "FairParamList.h"
15 
16 //#include "FairGeanePro.h"
17 
18 class PndLmdDigiPara : public FairParGenericSet
19 {
20 public:
21  //constructors of PndLmdDigiPara
22  PndLmdDigiPara(const char* name = "PndLmdDigiParameter",
23  const char* title = "PndLmd Strip Digi Parameter",
24  const char* context = "Pnd Lmd Digitization parameters");
25  ~PndLmdDigiPara(void) {}
26  void clean(void){}
27  void putParams(FairParamList* list);
28  Bool_t getParams(FairParamList* list);
29 
30  void print();
31 
32  //public accessor
34  Double_t GetLeftPitch() const {return fLeftPitch;}
38  TVector2 GetCircleAnchor() const {return fCircleAnchor;}
39  TVector2 GetRightAnchor() const {return fRightAnchor;}
40  TVector2 GetLeftAnchor() const {return fLeftAnchor;}
41  Int_t GetNrFeChannels() const {return fNrFeChannels;}
42  Int_t GetNrCircleFe() const {return fNrCircleFe;}
43  Int_t GetNrRightFe() const {return fNrRightFe;}
44  Int_t GetNrLeftFe() const {return fNrLeftFe;}
45  Double_t GetGausSigma() const {return fSigma;}
46 
47  Double_t GetThreshold() const {return fThreshold;}
48  Double_t GetNoise() const {return fNoise;}
49  const char* GetSensType() const {return fSensType.Data();}
50  const char* GetFeType() const {return fFeType.Data();}
51 
57  void SetCircleAnchor(TVector2& x) {fCircleAnchor = x;}
58  void SetRightAnchor(TVector2& x) {fRightAnchor = x;}
59  void SetLeftAnchor(TVector2& x) {fLeftAnchor = x;}
60  void SetNrFeChannels(Int_t x) {fNrFeChannels = x;}
61  void SetNrCircleFe(Int_t x) {fNrCircleFe = x;}
62  void SetNrLeftFe(Int_t x) {fNrLeftFe = x;}
63  void SetNrRightFe(Int_t x) {fNrRightFe = x;}
67 
68 
69 private:
70 
71  Double_t fCirclePitch; //the pitch if the strip is curved
72  Double_t fRightPitch; //the pitch of right segment when the strip is straight
73  Double_t fLeftPitch; //the pitch of the left segment when the strip is straight
74  Double_t fRightOrient; //the orient of right pitch
75  Double_t fLeftOrient; //the orient of the left pitch
76  Double_t fCircleAnchorX; // the anchor point of the circle
78  Double_t fRightAnchorX; //the anchor point of the right segment
80  Double_t fLeftAnchorX; //the anchor point of the left segment
82  TVector2 fCircleAnchor; //anchor point of the center of circle
83  TVector2 fRightAnchor; //anchor point of right segment
84  TVector2 fLeftAnchor; //anchor point of left segment
85  Int_t fNrFeChannels; //the number of channels per FE
86  Int_t fNrCircleFe; //the FE number of Circle strips
87  Int_t fNrLeftFe; //the number of FE
88  Int_t fNrRightFe;
89  Double_t fThreshold; //the threshold of the signal
90  Double_t fNoise; //the noise of the electronics
91  Double_t fSigma; //the sigma of gaussian distribution for charge diffusion parameters
92  TString fSensType; //the type of sensor
93  TString fFeType; //the type of FE
94 
96 
97 };
98 
99 
100 #endif /* PNDLMDDIGIPARA_H_ */
void SetLeftAnchor(TVector2 &x)
Double_t GetNoise() const
Int_t GetNrRightFe() const
void SetNrFeChannels(Int_t x)
PndLmdDigiPara(const char *name="PndLmdDigiParameter", const char *title="PndLmd Strip Digi Parameter", const char *context="Pnd Lmd Digitization parameters")
void SetRightAnchor(TVector2 &x)
void SetLeftOrient(Double_t x)
void SetLeftPitch(Double_t x)
Double_t fLeftAnchorY
Double_t GetGausSigma() const
Double_t fRightPitch
void SetCirclePitch(Double_t x)
void SetGausSigma(Double_t x)
Double_t fRightAnchorX
void SetNrCircleFe(Int_t x)
Double_t GetThreshold() const
void SetNrRightFe(Int_t x)
const char * GetFeType() const
TVector2 fCircleAnchor
Double_t fRightOrient
void clean(void)
ClassDef(PndLmdDigiPara, 3)
void SetRightOrient(Double_t x)
void SetRightPitch(Double_t x)
Double_t fLeftOrient
TVector2 GetRightAnchor() const
Double_t
const char * GetSensType() const
void putParams(FairParamList *list)
Double_t fRightAnchorY
void SetCircleAnchor(TVector2 &x)
Double_t GetCirclePitch() const
Double_t GetRightOrient() const
void SetNrLeftFe(Int_t x)
Double_t fLeftPitch
TString name
void SetFeType(TString x)
Double_t GetLeftPitch() const
Int_t GetNrFeChannels() const
Double_t x
TVector2 fLeftAnchor
Double_t fCircleAnchorX
Double_t fLeftAnchorX
TVector2 GetCircleAnchor() const
Int_t GetNrLeftFe() const
Double_t GetLeftOrient() const
TVector2 GetLeftAnchor() const
Double_t fCircleAnchorY
Bool_t getParams(FairParamList *list)
TVector2 fRightAnchor
Int_t GetNrCircleFe() const
Double_t GetRightPitch() const
Double_t fCirclePitch
void SetSensType(TString x)
Double_t fThreshold