FairRoot/PandaRoot
Public Member Functions | Private Member Functions | Private Attributes | List of all members
PndLmdDigiPara Class Reference

#include <PndLmdDigiPara.h>

Inheritance diagram for PndLmdDigiPara:

Public Member Functions

 PndLmdDigiPara (const char *name="PndLmdDigiParameter", const char *title="PndLmd Strip Digi Parameter", const char *context="Pnd Lmd Digitization parameters")
 
 ~PndLmdDigiPara (void)
 
void clean (void)
 
void putParams (FairParamList *list)
 
Bool_t getParams (FairParamList *list)
 
void print ()
 
Double_t GetCirclePitch () const
 
Double_t GetLeftPitch () const
 
Double_t GetRightPitch () const
 
Double_t GetRightOrient () const
 
Double_t GetLeftOrient () const
 
TVector2 GetCircleAnchor () const
 
TVector2 GetRightAnchor () const
 
TVector2 GetLeftAnchor () const
 
Int_t GetNrFeChannels () const
 
Int_t GetNrCircleFe () const
 
Int_t GetNrRightFe () const
 
Int_t GetNrLeftFe () const
 
Double_t GetGausSigma () const
 
Double_t GetThreshold () const
 
Double_t GetNoise () const
 
const char * GetSensType () const
 
const char * GetFeType () const
 
void SetCirclePitch (Double_t x)
 
void SetLeftPitch (Double_t x)
 
void SetRightPitch (Double_t x)
 
void SetLeftOrient (Double_t x)
 
void SetRightOrient (Double_t x)
 
void SetCircleAnchor (TVector2 &x)
 
void SetRightAnchor (TVector2 &x)
 
void SetLeftAnchor (TVector2 &x)
 
void SetNrFeChannels (Int_t x)
 
void SetNrCircleFe (Int_t x)
 
void SetNrLeftFe (Int_t x)
 
void SetNrRightFe (Int_t x)
 
void SetSensType (TString x)
 
void SetFeType (TString x)
 
void SetGausSigma (Double_t x)
 

Private Member Functions

 ClassDef (PndLmdDigiPara, 3)
 

Private Attributes

Double_t fCirclePitch
 
Double_t fRightPitch
 
Double_t fLeftPitch
 
Double_t fRightOrient
 
Double_t fLeftOrient
 
Double_t fCircleAnchorX
 
Double_t fCircleAnchorY
 
Double_t fRightAnchorX
 
Double_t fRightAnchorY
 
Double_t fLeftAnchorX
 
Double_t fLeftAnchorY
 
TVector2 fCircleAnchor
 
TVector2 fRightAnchor
 
TVector2 fLeftAnchor
 
Int_t fNrFeChannels
 
Int_t fNrCircleFe
 
Int_t fNrLeftFe
 
Int_t fNrRightFe
 
Double_t fThreshold
 
Double_t fNoise
 
Double_t fSigma
 
TString fSensType
 
TString fFeType
 

Detailed Description

Definition at line 18 of file PndLmdDigiPara.h.

Constructor & Destructor Documentation

PndLmdDigiPara::PndLmdDigiPara ( const char *  name = "PndLmdDigiParameter",
const char *  title = "PndLmd Strip Digi Parameter",
const char *  context = "Pnd Lmd Digitization parameters" 
)

Definition at line 11 of file PndLmdDigiPara.cxx.

12  : FairParGenericSet(name,title,context)
13 {
14 // const char* name="PndLmdDigiPara";
15 // const char* title="PndLmdDigi Parameter";
16 // const char* context="PndLmdDigi";
17  clear();
18 }
TString name
PndLmdDigiPara::~PndLmdDigiPara ( void  )
inline

Definition at line 25 of file PndLmdDigiPara.h.

25 {}

Member Function Documentation

PndLmdDigiPara::ClassDef ( PndLmdDigiPara  ,
 
)
private
void PndLmdDigiPara::clean ( void  )
inline

Definition at line 26 of file PndLmdDigiPara.h.

26 {}
TVector2 PndLmdDigiPara::GetCircleAnchor ( ) const
inline

Definition at line 38 of file PndLmdDigiPara.h.

References fCircleAnchor.

38 {return fCircleAnchor;}
TVector2 fCircleAnchor
Double_t PndLmdDigiPara::GetCirclePitch ( ) const
inline

Definition at line 33 of file PndLmdDigiPara.h.

References fCirclePitch.

33 {return fCirclePitch;}
Double_t fCirclePitch
const char* PndLmdDigiPara::GetFeType ( ) const
inline

Definition at line 50 of file PndLmdDigiPara.h.

References fFeType.

50 {return fFeType.Data();}
Double_t PndLmdDigiPara::GetGausSigma ( ) const
inline

Definition at line 45 of file PndLmdDigiPara.h.

References fSigma.

Referenced by PndLmdCalStrip::PndLmdCalStrip().

45 {return fSigma;}
TVector2 PndLmdDigiPara::GetLeftAnchor ( ) const
inline

Definition at line 40 of file PndLmdDigiPara.h.

References fLeftAnchor.

Referenced by PndLmdCalStrip::PndLmdCalStrip().

40 {return fLeftAnchor;}
TVector2 fLeftAnchor
Double_t PndLmdDigiPara::GetLeftOrient ( ) const
inline

Definition at line 37 of file PndLmdDigiPara.h.

References fLeftOrient.

Referenced by PndLmdCalStrip::PndLmdCalStrip().

37 {return fLeftOrient;}
Double_t fLeftOrient
Double_t PndLmdDigiPara::GetLeftPitch ( ) const
inline

Definition at line 34 of file PndLmdDigiPara.h.

References fLeftPitch.

Referenced by PndLmdCalStrip::PndLmdCalStrip().

34 {return fLeftPitch;}
Double_t fLeftPitch
Double_t PndLmdDigiPara::GetNoise ( ) const
inline

Definition at line 48 of file PndLmdDigiPara.h.

References fNoise.

Referenced by PndLmdCalStrip::PndLmdCalStrip().

48 {return fNoise;}
Int_t PndLmdDigiPara::GetNrCircleFe ( ) const
inline

Definition at line 42 of file PndLmdDigiPara.h.

References fNrCircleFe.

42 {return fNrCircleFe;}
Int_t PndLmdDigiPara::GetNrFeChannels ( ) const
inline

Definition at line 41 of file PndLmdDigiPara.h.

References fNrFeChannels.

Referenced by PndLmdDigiProducer::Exec(), and PndLmdCalStrip::PndLmdCalStrip().

41 {return fNrFeChannels;}
Int_t PndLmdDigiPara::GetNrLeftFe ( ) const
inline

Definition at line 44 of file PndLmdDigiPara.h.

References fNrLeftFe.

Referenced by PndLmdDigiProducer::Exec(), and PndLmdCalStrip::PndLmdCalStrip().

44 {return fNrLeftFe;}
Int_t PndLmdDigiPara::GetNrRightFe ( ) const
inline

Definition at line 43 of file PndLmdDigiPara.h.

References fNrRightFe.

Referenced by PndLmdCalStrip::PndLmdCalStrip().

43 {return fNrRightFe;}
Bool_t PndLmdDigiPara::getParams ( FairParamList *  list)

Definition at line 67 of file PndLmdDigiPara.cxx.

References Double_t, fCircleAnchor, fCirclePitch, fFeType, fLeftAnchor, fLeftOrient, fLeftPitch, fNoise, fNrCircleFe, fNrFeChannels, fNrLeftFe, fNrRightFe, fRightAnchor, fRightOrient, fRightPitch, fSensType, fSigma, fThreshold, x, and y.

68 {
69  if(!list) return kFALSE;
70  if(!list->fill("circle_pitch", &fCirclePitch)) return kFALSE;
71  if(!list->fill("right_pitch", &fRightPitch)) return kFALSE;
72  if(!list->fill("left_pitch", &fLeftPitch)) return kFALSE;
73  if(!list->fill("left_orient", &fLeftOrient)) return kFALSE;
74  if(!list->fill("right_orient", &fRightOrient)) return kFALSE;
75  Double_t x, y;
76  if(!list->fill("circle_anchor_x", &x)) return kFALSE;
77  if(!list->fill("circle_anchor_y",&y)) return kFALSE;
78  fCircleAnchor.Set(x,y);
79  if(!list->fill("right_anchor_x", &x)) return kFALSE;
80  if(!list->fill("right_anchor_y", &y)) return kFALSE;
81  fRightAnchor.Set(x,y);
82  if(!list->fill("left_anchor_x", &x)) return kFALSE;
83  if(!list->fill("left_anchor_y", &y)) return kFALSE;
84  fLeftAnchor.Set(x,y);
85 
86  if(!list->fill("nr_fe_channels", &fNrFeChannels)) return kFALSE;
87  if(!list->fill("nr_fe_circle", &fNrCircleFe)) return kFALSE;
88  if(!list->fill("nr_fe_right", &fNrRightFe)) return kFALSE;
89  if(!list->fill("nr_fe_left", &fNrLeftFe)) return kFALSE;
90  if(!list->fill("charge_threshold", &fThreshold)) return kFALSE;
91  if(!list->fill("charge_noise", &fNoise)) return kFALSE;
92  Text_t stName[80];
93  if(!list->fill("sens_type", stName,80)) return kFALSE;
94  fSensType = stName;
95  Text_t feName[80];
96  if(!list->fill("fe_type", feName, 80)) return kFALSE;
97  fFeType = feName;
98  if(!list->fill("gaus_sigma",&fSigma)) return kFALSE;
99 
100  return kTRUE;
101 
102 }
Double_t fRightPitch
TVector2 fCircleAnchor
Double_t fRightOrient
Double_t fLeftOrient
Double_t
Double_t fLeftPitch
Double_t x
TVector2 fLeftAnchor
Double_t y
TVector2 fRightAnchor
Double_t fCirclePitch
Double_t fThreshold
TVector2 PndLmdDigiPara::GetRightAnchor ( ) const
inline

Definition at line 39 of file PndLmdDigiPara.h.

References fRightAnchor.

Referenced by PndLmdCalStrip::PndLmdCalStrip().

39 {return fRightAnchor;}
TVector2 fRightAnchor
Double_t PndLmdDigiPara::GetRightOrient ( ) const
inline

Definition at line 36 of file PndLmdDigiPara.h.

References fRightOrient.

Referenced by PndLmdCalStrip::PndLmdCalStrip().

36 {return fRightOrient;}
Double_t fRightOrient
Double_t PndLmdDigiPara::GetRightPitch ( ) const
inline

Definition at line 35 of file PndLmdDigiPara.h.

References fRightPitch.

Referenced by PndLmdCalStrip::PndLmdCalStrip().

35 {return fRightPitch;}
Double_t fRightPitch
const char* PndLmdDigiPara::GetSensType ( ) const
inline

Definition at line 49 of file PndLmdDigiPara.h.

References fSensType.

49 {return fSensType.Data();}
Double_t PndLmdDigiPara::GetThreshold ( ) const
inline

Definition at line 47 of file PndLmdDigiPara.h.

References fThreshold.

Referenced by PndLmdCalStrip::PndLmdCalStrip().

47 {return fThreshold;}
Double_t fThreshold
void PndLmdDigiPara::print ( )

Definition at line 105 of file PndLmdDigiPara.cxx.

References fCircleAnchor, fCirclePitch, fFeType, fLeftAnchor, fLeftOrient, fLeftPitch, fNoise, fRightAnchor, fRightOrient, fRightPitch, fSensType, fSigma, fThreshold, and Pi.

Referenced by PndLmdDigiProducer::Init().

106 {
107  cout<<"The digitization parameters for short strips or curve strips"<<endl;
108  cout<<"Circle_pitch = "<<fCirclePitch<<endl;
109  cout<<"Right_pitch ="<<fRightPitch<<endl;
110  cout<<"Left_pitch ="<<fLeftPitch<<endl;
111  cout<<"Left_orient ="<<fLeftOrient<<" rad ="<<fLeftOrient/TMath::Pi()*180<<" degree"<<endl;
112  cout<<"Right_orient ="<<fRightOrient<<" rad = "<<fRightOrient/TMath::Pi()*180<<" degree"<<endl;
113  cout<<"Circle_anchor = ("<<fCircleAnchor.X()<<","<<fCircleAnchor.Y()<<")"<<endl;
114  cout<<"Right_anchor = ("<<fRightAnchor.X()<<","<<fRightAnchor.Y()<<")"<<endl;
115  cout<<"Left_anchor = ("<<fLeftAnchor.X()<<","<<fLeftAnchor.Y()<<")"<<endl;
116  cout<<"Sigma of diffusion = "<<fSigma<<endl;
117  cout<<"Threshold ="<<fThreshold<<endl;
118  cout<<"Noise = "<<fNoise<<endl;
119  cout<<"Sensor_type ="<<fSensType<<endl;
120  cout<<"FE_type="<<fFeType<<endl;
121 
122 
123 }
Double_t fRightPitch
TVector2 fCircleAnchor
Double_t fRightOrient
Double_t fLeftOrient
Double_t fLeftPitch
TVector2 fLeftAnchor
Double_t Pi
TVector2 fRightAnchor
Double_t fCirclePitch
Double_t fThreshold
void PndLmdDigiPara::putParams ( FairParamList *  list)

Definition at line 21 of file PndLmdDigiPara.cxx.

References Double_t, fCircleAnchor, fCirclePitch, fFeType, fLeftAnchor, fLeftOrient, fLeftPitch, fNoise, fNrCircleFe, fNrFeChannels, fNrLeftFe, fNrRightFe, fRightAnchor, fRightOrient, fRightPitch, fSensType, fSigma, and fThreshold.

22 {
23  if(!list) return;
24  list->add("circle_pitch",fCirclePitch);
25  list->add("right_pitch",fRightPitch);
26  list->add("left_pitch",fLeftPitch);
27  list->add("left_orient",fLeftOrient);
28  list->add("right_orient",fRightOrient);
29  list->add("circle_anchor_x",(Double_t)fCircleAnchor.X());
30  list->add("circle_anchor_y",(Double_t)fCircleAnchor.Y());
31  list->add("right_anchor_x",(Double_t)fRightAnchor.X());
32  list->add("right_anchor_y",(Double_t)fRightAnchor.Y());
33  list->add("left_anchor_x",(Double_t)fLeftAnchor.X());
34  list->add("left_anchor_y",(Double_t)fLeftAnchor.Y());
35  list->add("nr_fe_channels",fNrFeChannels);
36  list->add("nr_fe_circle",fNrCircleFe);
37  list->add("nr_fe_right",fNrRightFe);
38  list->add("nr_fe_left",fNrLeftFe);
39  list->add("charge_threshold",fThreshold);
40  list->add("charge_noise",fNoise);
41  list->add("sens_type",fSensType);
42  list->add("fe_type",fFeType);
43  list->add("gaus_sigma",fSigma);
44 }
Double_t fRightPitch
TVector2 fCircleAnchor
Double_t fRightOrient
Double_t fLeftOrient
Double_t
Double_t fLeftPitch
TVector2 fLeftAnchor
TVector2 fRightAnchor
Double_t fCirclePitch
Double_t fThreshold
void PndLmdDigiPara::SetCircleAnchor ( TVector2 &  x)
inline

Definition at line 57 of file PndLmdDigiPara.h.

References fCircleAnchor, and x.

57 {fCircleAnchor = x;}
TVector2 fCircleAnchor
Double_t x
void PndLmdDigiPara::SetCirclePitch ( Double_t  x)
inline

Definition at line 52 of file PndLmdDigiPara.h.

References fCirclePitch, and x.

52 {fCirclePitch = x;}
Double_t x
Double_t fCirclePitch
void PndLmdDigiPara::SetFeType ( TString  x)
inline

Definition at line 65 of file PndLmdDigiPara.h.

References fFeType, and x.

65 {fFeType = x;}
Double_t x
void PndLmdDigiPara::SetGausSigma ( Double_t  x)
inline

Definition at line 66 of file PndLmdDigiPara.h.

References fSigma, and x.

66 {fSigma = x;}
Double_t x
void PndLmdDigiPara::SetLeftAnchor ( TVector2 &  x)
inline

Definition at line 59 of file PndLmdDigiPara.h.

References fLeftAnchor, and x.

59 {fLeftAnchor = x;}
Double_t x
TVector2 fLeftAnchor
void PndLmdDigiPara::SetLeftOrient ( Double_t  x)
inline

Definition at line 55 of file PndLmdDigiPara.h.

References fLeftOrient, and x.

55 {fLeftOrient = x;}
Double_t fLeftOrient
Double_t x
void PndLmdDigiPara::SetLeftPitch ( Double_t  x)
inline

Definition at line 53 of file PndLmdDigiPara.h.

References fLeftPitch, and x.

53 {fLeftPitch = x;}
Double_t fLeftPitch
Double_t x
void PndLmdDigiPara::SetNrCircleFe ( Int_t  x)
inline

Definition at line 61 of file PndLmdDigiPara.h.

References fNrCircleFe, and x.

61 {fNrCircleFe = x;}
Double_t x
void PndLmdDigiPara::SetNrFeChannels ( Int_t  x)
inline

Definition at line 60 of file PndLmdDigiPara.h.

References fNrFeChannels, and x.

60 {fNrFeChannels = x;}
Double_t x
void PndLmdDigiPara::SetNrLeftFe ( Int_t  x)
inline

Definition at line 62 of file PndLmdDigiPara.h.

References fNrLeftFe, and x.

62 {fNrLeftFe = x;}
Double_t x
void PndLmdDigiPara::SetNrRightFe ( Int_t  x)
inline

Definition at line 63 of file PndLmdDigiPara.h.

References fNrRightFe, and x.

63 {fNrRightFe = x;}
Double_t x
void PndLmdDigiPara::SetRightAnchor ( TVector2 &  x)
inline

Definition at line 58 of file PndLmdDigiPara.h.

References fRightAnchor, and x.

58 {fRightAnchor = x;}
Double_t x
TVector2 fRightAnchor
void PndLmdDigiPara::SetRightOrient ( Double_t  x)
inline

Definition at line 56 of file PndLmdDigiPara.h.

References fRightOrient, and x.

56 {fRightOrient = x;}
Double_t fRightOrient
Double_t x
void PndLmdDigiPara::SetRightPitch ( Double_t  x)
inline

Definition at line 54 of file PndLmdDigiPara.h.

References fRightPitch, and x.

54 {fRightPitch = x;}
Double_t fRightPitch
Double_t x
void PndLmdDigiPara::SetSensType ( TString  x)
inline

Definition at line 64 of file PndLmdDigiPara.h.

References fSensType, and x.

64 {fSensType = x;}
Double_t x

Member Data Documentation

TVector2 PndLmdDigiPara::fCircleAnchor
private

Definition at line 82 of file PndLmdDigiPara.h.

Referenced by GetCircleAnchor(), getParams(), print(), putParams(), and SetCircleAnchor().

Double_t PndLmdDigiPara::fCircleAnchorX
private

Definition at line 76 of file PndLmdDigiPara.h.

Double_t PndLmdDigiPara::fCircleAnchorY
private

Definition at line 77 of file PndLmdDigiPara.h.

Double_t PndLmdDigiPara::fCirclePitch
private

Definition at line 71 of file PndLmdDigiPara.h.

Referenced by GetCirclePitch(), getParams(), print(), putParams(), and SetCirclePitch().

TString PndLmdDigiPara::fFeType
private

Definition at line 93 of file PndLmdDigiPara.h.

Referenced by GetFeType(), getParams(), print(), putParams(), and SetFeType().

TVector2 PndLmdDigiPara::fLeftAnchor
private

Definition at line 84 of file PndLmdDigiPara.h.

Referenced by GetLeftAnchor(), getParams(), print(), putParams(), and SetLeftAnchor().

Double_t PndLmdDigiPara::fLeftAnchorX
private

Definition at line 80 of file PndLmdDigiPara.h.

Double_t PndLmdDigiPara::fLeftAnchorY
private

Definition at line 81 of file PndLmdDigiPara.h.

Double_t PndLmdDigiPara::fLeftOrient
private

Definition at line 75 of file PndLmdDigiPara.h.

Referenced by GetLeftOrient(), getParams(), print(), putParams(), and SetLeftOrient().

Double_t PndLmdDigiPara::fLeftPitch
private

Definition at line 73 of file PndLmdDigiPara.h.

Referenced by GetLeftPitch(), getParams(), print(), putParams(), and SetLeftPitch().

Double_t PndLmdDigiPara::fNoise
private

Definition at line 90 of file PndLmdDigiPara.h.

Referenced by GetNoise(), getParams(), print(), and putParams().

Int_t PndLmdDigiPara::fNrCircleFe
private

Definition at line 86 of file PndLmdDigiPara.h.

Referenced by GetNrCircleFe(), getParams(), putParams(), and SetNrCircleFe().

Int_t PndLmdDigiPara::fNrFeChannels
private

Definition at line 85 of file PndLmdDigiPara.h.

Referenced by GetNrFeChannels(), getParams(), putParams(), and SetNrFeChannels().

Int_t PndLmdDigiPara::fNrLeftFe
private

Definition at line 87 of file PndLmdDigiPara.h.

Referenced by GetNrLeftFe(), getParams(), putParams(), and SetNrLeftFe().

Int_t PndLmdDigiPara::fNrRightFe
private

Definition at line 88 of file PndLmdDigiPara.h.

Referenced by GetNrRightFe(), getParams(), putParams(), and SetNrRightFe().

TVector2 PndLmdDigiPara::fRightAnchor
private

Definition at line 83 of file PndLmdDigiPara.h.

Referenced by getParams(), GetRightAnchor(), print(), putParams(), and SetRightAnchor().

Double_t PndLmdDigiPara::fRightAnchorX
private

Definition at line 78 of file PndLmdDigiPara.h.

Double_t PndLmdDigiPara::fRightAnchorY
private

Definition at line 79 of file PndLmdDigiPara.h.

Double_t PndLmdDigiPara::fRightOrient
private

Definition at line 74 of file PndLmdDigiPara.h.

Referenced by getParams(), GetRightOrient(), print(), putParams(), and SetRightOrient().

Double_t PndLmdDigiPara::fRightPitch
private

Definition at line 72 of file PndLmdDigiPara.h.

Referenced by getParams(), GetRightPitch(), print(), putParams(), and SetRightPitch().

TString PndLmdDigiPara::fSensType
private

Definition at line 92 of file PndLmdDigiPara.h.

Referenced by getParams(), GetSensType(), print(), putParams(), and SetSensType().

Double_t PndLmdDigiPara::fSigma
private

Definition at line 91 of file PndLmdDigiPara.h.

Referenced by GetGausSigma(), getParams(), print(), putParams(), and SetGausSigma().

Double_t PndLmdDigiPara::fThreshold
private

Definition at line 89 of file PndLmdDigiPara.h.

Referenced by getParams(), GetThreshold(), print(), and putParams().


The documentation for this class was generated from the following files: