CbmRoot
CbmRichRing.h
Go to the documentation of this file.
1 /* class: CbmRichRing
2 * Created 05/07/04
3 * author A. Soloviev<solovjev@cv.jinr.ru>
4 *
5 * Rings in Rich Photodetector
6 **/
7 
8 #ifndef CBM_RICH_RING_H
9 #define CBM_RICH_RING_H
10 
11 #include <Rtypes.h> // for ClassDef
12 #include <RtypesCore.h> // for Double_t, UInt_t, Float_t, Int_t, Bool_t
13 #include <TObject.h> // for TObject
14 
15 #include <vector> // for vector
16 
17 class CbmRichRing : public TObject {
18 
19 public:
21  CbmRichRing();
22 
28  CbmRichRing(Float_t x, Float_t y, Float_t r);
29 
31  virtual ~CbmRichRing();
32 
34  void AddHit(UInt_t pHit) { fHitCollection.push_back(pHit); }
38  Bool_t RemoveHit(UInt_t hitId);
40  Int_t GetNofHits() const { return fHitCollection.size(); }
42  UInt_t GetHit(Int_t i) const { return fHitCollection[i]; }
44  virtual void Print(Option_t* opt = "") const;
45 
46 
48  void SetAPar(Double_t a) { fAPar = a; }
49  void SetBPar(Double_t b) { fBPar = b; }
50  void SetCPar(Double_t c) { fCPar = c; }
51  void SetDPar(Double_t d) { fDPar = d; }
52  void SetEPar(Double_t e) { fEPar = e; }
53  void SetFPar(Double_t f) { fFPar = f; }
54 
55  void SetCenterX(Float_t x) { fCenterX = x; }
56  void SetCenterY(Float_t y) { fCenterY = y; }
57  void SetRadius(Float_t r) { fRadius = r; }
58  void SetAaxis(Double_t a) { fAaxis = a; }
59  void SetBaxis(Double_t b) { fBaxis = b; }
60  void SetAaxisCor(Double_t a) { fAaxisCor = a; }
61  void SetBaxisCor(Double_t b) { fBaxisCor = b; }
62  void SetXYABPhi(Double_t x, Double_t y, Double_t a, Double_t b, Double_t phi);
63  void SetPhi(Double_t phi) { fPhi = phi; }
64  void SetChi2(Double_t chi2) { fChi2 = chi2; }
65  void SetRecFlag(Int_t recflag) { fRecFlag = recflag; }
66  void SetAngle(Double_t angle) { fAngle = angle; }
67  void SetNofHitsOnRing(Int_t onring) { fNofHitsOnRing = onring; }
69  void SetSelectionNN(Double_t selectionNN) { fSelectionNN = selectionNN; }
70  void SetTime(Double_t time) { fTime = time; }
71 
73  Double_t GetAPar() const { return fAPar; }
74  Double_t GetBPar() const { return fBPar; }
75  Double_t GetCPar() const { return fCPar; }
76  Double_t GetDPar() const { return fDPar; }
77  Double_t GetEPar() const { return fEPar; }
78  Double_t GetFPar() const { return fFPar; }
79 
80  Float_t GetCenterX() const { return fCenterX; }
81  Float_t GetCenterY() const { return fCenterY; }
82  Float_t GetRadius() const { return fRadius; }
83  Double_t GetAaxis() const { return fAaxis; }
84  Double_t GetBaxis() const { return fBaxis; }
85  Double_t GetAaxisCor() const { return fAaxisCor; }
86  Double_t GetBaxisCor() const { return fBaxisCor; }
87  Double_t GetPhi() const { return fPhi; }
88  Double_t GetXF1() const;
89  Double_t GetYF1() const;
90  Double_t GetXF2() const;
91  Double_t GetYF2() const;
92 
93 
94  Double_t GetSelectionNN() const { return fSelectionNN; }
95  Double_t GetChi2() const { return fChi2; }
96  Double_t GetNDF() const { return GetNofHits() - 5; }
97  Float_t GetRadialPosition() const;
98  Double_t GetAngle() const { return fAngle; }
99  Int_t GetNofHitsOnRing() const { return fNofHitsOnRing; }
100  Double_t GetRadialAngle() const;
101  Int_t GetRecFlag() const { return fRecFlag; }
102  Double_t GetTime() const { return fTime; }
103 
104 private:
105  std::vector<UInt_t> fHitCollection;
107 protected:
108  Double_t fAPar; // Axx+Bxy+Cyy+Dx+Ey+F
109  Double_t fBPar;
110  Double_t fCPar;
111  Double_t fDPar;
112  Double_t fEPar;
113  Double_t fFPar;
114 
115  Float_t fCenterX;
116  Float_t fCenterY;
117  Float_t fRadius;
118 
119  Double_t fAaxis; // major axis of ellipse
120  Double_t fBaxis; // minor axes of the ellipse
121  Double_t fAaxisCor; // major axis of ellipse after correction
122  Double_t fBaxisCor; // minor axes of the ellipse after correction
123 
124  Double_t fPhi; // rotation angle
125 
126  Double_t fChi2;
127  Double_t fAngle;
129 
130  Double_t fSelectionNN; // value for selection high quality rings
131 
132  Int_t fRecFlag;
133 
134  Double_t fTime;
135 
136  ClassDef(CbmRichRing, 2)
137 };
138 
139 #endif // CBM_RICH_RING_H
CbmRichRing::GetXF2
Double_t GetXF2() const
Definition: CbmRichRing.cxx:153
CbmRichRing::GetTime
Double_t GetTime() const
Definition: CbmRichRing.h:102
CbmRichRing::SetRadius
void SetRadius(Float_t r)
Definition: CbmRichRing.h:57
CbmRichRing::SetNofHitsOnRing
void SetNofHitsOnRing(Int_t onring)
Definition: CbmRichRing.h:67
CbmRichRing::SetCenterX
void SetCenterX(Float_t x)
Definition: CbmRichRing.h:55
CbmRichRing::SetFPar
void SetFPar(Double_t f)
Definition: CbmRichRing.h:53
CbmRichRing::fAaxis
Double_t fAaxis
Definition: CbmRichRing.h:119
CbmRichRing::SetBaxisCor
void SetBaxisCor(Double_t b)
Definition: CbmRichRing.h:61
CbmRichRing::GetYF2
Double_t GetYF2() const
Definition: CbmRichRing.cxx:160
CbmRichRing::Print
virtual void Print(Option_t *opt="") const
Definition: CbmRichRing.cxx:170
f
float f
Definition: L1/vectors/P4_F32vec4.h:24
CbmRichRing::GetEPar
Double_t GetEPar() const
Definition: CbmRichRing.h:77
CbmRichRing::SetAaxis
void SetAaxis(Double_t a)
Definition: CbmRichRing.h:58
CbmRichRing::fBaxis
Double_t fBaxis
Definition: CbmRichRing.h:120
CbmRichRing::SetPhi
void SetPhi(Double_t phi)
Definition: CbmRichRing.h:63
CbmRichRing::GetDPar
Double_t GetDPar() const
Definition: CbmRichRing.h:76
CbmRichRing::SetBPar
void SetBPar(Double_t b)
Definition: CbmRichRing.h:49
CbmRichRing::GetAaxisCor
Double_t GetAaxisCor() const
Definition: CbmRichRing.h:85
CbmRichRing::GetBPar
Double_t GetBPar() const
Definition: CbmRichRing.h:74
i
int i
Definition: L1/vectors/P4_F32vec4.h:25
CbmRichRing::GetChi2
Double_t GetChi2() const
Definition: CbmRichRing.h:95
CbmRichRing::RemoveHit
Bool_t RemoveHit(UInt_t hitId)
Definition: CbmRichRing.cxx:124
CbmRichRing::GetRecFlag
Int_t GetRecFlag() const
Definition: CbmRichRing.h:101
CbmRichRing::fRecFlag
Int_t fRecFlag
Definition: CbmRichRing.h:132
CbmRichRing::GetNofHits
Int_t GetNofHits() const
Definition: CbmRichRing.h:40
CbmRichRing
Definition: CbmRichRing.h:17
CbmRichRing::SetCPar
void SetCPar(Double_t c)
Definition: CbmRichRing.h:50
CbmRichRing::GetSelectionNN
Double_t GetSelectionNN() const
Definition: CbmRichRing.h:94
CbmRichRing::fBPar
Double_t fBPar
Definition: CbmRichRing.h:109
CbmRichRing::GetRadialPosition
Float_t GetRadialPosition() const
Definition: CbmRichRing.cxx:181
CbmRichRing::fCPar
Double_t fCPar
Definition: CbmRichRing.h:110
CbmRichRing::fDPar
Double_t fDPar
Definition: CbmRichRing.h:111
CbmRichRing::GetRadialAngle
Double_t GetRadialAngle() const
Definition: CbmRichRing.cxx:189
CbmRichRing::fHitCollection
std::vector< UInt_t > fHitCollection
Definition: CbmRichRing.h:105
CbmRichRing::GetHit
UInt_t GetHit(Int_t i) const
Definition: CbmRichRing.h:42
CbmRichRing::fSelectionNN
Double_t fSelectionNN
Definition: CbmRichRing.h:130
CbmRichRing::SetXYABPhi
void SetXYABPhi(Double_t x, Double_t y, Double_t a, Double_t b, Double_t phi)
Definition: CbmRichRing.cxx:112
d
double d
Definition: P4_F64vec2.h:24
CbmRichRing::fRadius
Float_t fRadius
Definition: CbmRichRing.h:117
CbmRichRing::SetSelectionNN
void SetSelectionNN(Double_t selectionNN)
Definition: CbmRichRing.h:69
CbmRichRing::GetBaxisCor
Double_t GetBaxisCor() const
Definition: CbmRichRing.h:86
CbmRichRing::SetChi2
void SetChi2(Double_t chi2)
Definition: CbmRichRing.h:64
CbmRichRing::GetYF1
Double_t GetYF1() const
Definition: CbmRichRing.cxx:143
CbmRichRing::SetDPar
void SetDPar(Double_t d)
Definition: CbmRichRing.h:51
CbmRichRing::fTime
Double_t fTime
Definition: CbmRichRing.h:134
CbmRichRing::fCenterX
Float_t fCenterX
Definition: CbmRichRing.h:115
CbmRichRing::fAngle
Double_t fAngle
Definition: CbmRichRing.h:127
CbmRichRing::fBaxisCor
Double_t fBaxisCor
Definition: CbmRichRing.h:122
CbmRichRing::GetAaxis
Double_t GetAaxis() const
Definition: CbmRichRing.h:83
CbmRichRing::CbmRichRing
CbmRichRing()
Definition: CbmRichRing.cxx:51
CbmRichRing::SetBaxis
void SetBaxis(Double_t b)
Definition: CbmRichRing.h:59
CbmRichRing::GetAPar
Double_t GetAPar() const
Definition: CbmRichRing.h:73
CbmRichRing::fNofHitsOnRing
Int_t fNofHitsOnRing
Definition: CbmRichRing.h:128
CbmRichRing::GetBaxis
Double_t GetBaxis() const
Definition: CbmRichRing.h:84
CbmRichRing::SetAaxisCor
void SetAaxisCor(Double_t a)
Definition: CbmRichRing.h:60
CbmRichRing::fAPar
Double_t fAPar
Definition: CbmRichRing.h:108
CbmRichRing::GetPhi
Double_t GetPhi() const
Definition: CbmRichRing.h:87
CbmRichRing::fFPar
Double_t fFPar
Definition: CbmRichRing.h:113
CbmRichRing::SetAPar
void SetAPar(Double_t a)
Definition: CbmRichRing.h:48
CbmRichRing::fPhi
Double_t fPhi
Definition: CbmRichRing.h:124
CbmRichRing::SetAngle
void SetAngle(Double_t angle)
Definition: CbmRichRing.h:66
CbmRichRing::SetEPar
void SetEPar(Double_t e)
Definition: CbmRichRing.h:52
x
Double_t x
Definition: CbmMvdSensorDigiToHitTask.cxx:68
CbmRichRing::AddHit
void AddHit(UInt_t pHit)
Definition: CbmRichRing.h:34
CbmRichRing::GetNofHitsOnRing
Int_t GetNofHitsOnRing() const
Definition: CbmRichRing.h:99
y
Double_t y
Definition: CbmMvdSensorDigiToHitTask.cxx:68
CbmRichRing::GetXF1
Double_t GetXF1() const
Definition: CbmRichRing.cxx:136
CbmRichRing::GetNDF
Double_t GetNDF() const
Definition: CbmRichRing.h:96
CbmRichRing::GetRadius
Float_t GetRadius() const
Definition: CbmRichRing.h:82
CbmRichRing::GetCenterY
Float_t GetCenterY() const
Definition: CbmRichRing.h:81
CbmRichRing::GetFPar
Double_t GetFPar() const
Definition: CbmRichRing.h:78
CbmRichRing::fAaxisCor
Double_t fAaxisCor
Definition: CbmRichRing.h:121
CbmRichRing::SetCenterY
void SetCenterY(Float_t y)
Definition: CbmRichRing.h:56
CbmRichRing::fCenterY
Float_t fCenterY
Definition: CbmRichRing.h:116
CbmRichRing::SetRecFlag
void SetRecFlag(Int_t recflag)
Definition: CbmRichRing.h:65
CbmRichRing::SetTime
void SetTime(Double_t time)
Definition: CbmRichRing.h:70
CbmRichRing::~CbmRichRing
virtual ~CbmRichRing()
Definition: CbmRichRing.cxx:109
CbmRichRing::fChi2
Double_t fChi2
Definition: CbmRichRing.h:126
CbmRichRing::GetCenterX
Float_t GetCenterX() const
Definition: CbmRichRing.h:80
CbmRichRing::GetAngle
Double_t GetAngle() const
Definition: CbmRichRing.h:98
CbmRichRing::fEPar
Double_t fEPar
Definition: CbmRichRing.h:112
CbmRichRing::GetCPar
Double_t GetCPar() const
Definition: CbmRichRing.h:75