BmnRoot
Loading...
Searching...
No Matches
BmnHit.h
Go to the documentation of this file.
1/*
2 * File: BmnHit.h
3 * Author: Sergey Merts
4 *
5 * Created on October 28, 2014, 11:26 AM
6 */
7
8#ifndef BMNHIT_H
9#define BMNHIT_H
10
11#include "FairHit.h"
12#include <TObject.h>
13#include "BmnDetectorList.h"
14#include "BmnMatch.h"
15
16using namespace std;
17
18// class TClonesArray;
19
20class BmnHit : public FairHit {
21public:
22
25
27 BmnHit(Int_t detUID, TVector3 posHit, TVector3 posHitErr, Int_t pointIndx);
28
29 Bool_t IsUsed() const {
30 return fUsing;
31 }
32
33 Bool_t GetFlag() const {
34 return fFlag;
35 }
36
37 Int_t GetIndex() const {
38 return fIndex;
39 }
40
42 return fDetId;
43 }
44
45 Short_t GetStation() const {
46 return fStation;
47 }
48
49 void SetFlag(Bool_t fl) {
50 fFlag = fl;
51 }
52
53 void SetUsing(Bool_t use) {
54 fUsing = use;
55 }
56
57 void SetIndex(Int_t id) {
58 fIndex = id;
59 }
60
61 void SetLength(Double_t len) {
62 fLength = len;
63 }
64
65 void SetDetId(DetectorId det) {
66 fDetId = det;
67 }
68
69 void SetStation(Short_t st) {
70 fStation = st;
71 }
72
73 void SetModule(Int_t mod) {
74 fModule = mod;
75 }
76
77 Int_t GetModule() {
78 return fModule;
79 }
80
81 void SetType(Int_t type) {
82 fType = type;
83 }
84
85 Int_t GetType() {
86 return fType;
87 }
88
89 Double_t GetLength() {
90 return fLength;
91 }
92
93 void SetResXY(Double_t resX, Double_t resY) {
94 fResX = resX;
95 fResY = resY;
96 }
97
98 Double_t GetResX() {
99 return fResX;
100 }
101
102 Double_t GetResY() {
103 return fResY;
104 }
105
107 virtual ~BmnHit();
108
109 Double_t GetCovXY() {
110 return fCovXY;
111 }
112
113 void SetCovXY(Double_t val) {
114 fCovXY = val;
115 }
116
118 return fDigitNumberMatch;
119 }
120
122 fDigitNumberMatch = match;
123 }
124
126 return fUpperClusterIndex;
127 }
128
130 return fLowerClusterIndex;
131 }
132
133 void SetUpperClusterIndex(Int_t idx) {
134 fUpperClusterIndex = idx;
135 }
136
137 void SetLowerClusterIndex(Int_t idx) {
138 fLowerClusterIndex = idx;
139 }
140
141 void SetPseudo(Bool_t pseudo) {
142 fPseudo = pseudo;
143 }
144
145 Bool_t IsPseudo() {
146 return fPseudo;
147 }
148
149private:
150
152 Bool_t fUsing;
154 Bool_t fFlag;
156 Int_t fIndex;
158 DetectorId fDetId;
160 Short_t fStation;
161 Int_t fModule;
162 Int_t fType; // 0 - fake, 1 - hit, -1 - undefined
163 Double_t fLength; //length from vertex to current hit
164
165 Double_t fResX;
166 Double_t fResY;
167
168 Double_t fCovXY; // Covariance of x and y coordinates
169
170 BmnMatch fDigitNumberMatch; //digit numbers used for the hit (as weighed center (one strip) of a cluster in each layer
171
172 Int_t fUpperClusterIndex;
173 Int_t fLowerClusterIndex;
174
175 Bool_t fPseudo; //pseudo hit reconstructed from one layer cluster
176
177 ClassDef(BmnHit, 1);
178};
179#endif /* BMNHIT_H */
180
DetectorId
void SetCovXY(Double_t val)
Definition BmnHit.h:113
Int_t GetType()
Definition BmnHit.h:85
Double_t GetResX()
Definition BmnHit.h:98
Int_t GetIndex() const
Definition BmnHit.h:37
Bool_t GetFlag() const
Definition BmnHit.h:33
void SetModule(Int_t mod)
Definition BmnHit.h:73
void SetLength(Double_t len)
Definition BmnHit.h:61
DetectorId GetDetId() const
Definition BmnHit.h:41
Int_t GetModule()
Definition BmnHit.h:77
void SetType(Int_t type)
Definition BmnHit.h:81
BmnMatch GetDigitNumberMatch()
Definition BmnHit.h:117
void SetUpperClusterIndex(Int_t idx)
Definition BmnHit.h:133
Bool_t IsPseudo()
Definition BmnHit.h:145
void SetDigitNumberMatch(BmnMatch match)
Definition BmnHit.h:121
Int_t GetUpperClusterIndex()
Definition BmnHit.h:125
Double_t GetCovXY()
Definition BmnHit.h:109
Double_t GetLength()
Definition BmnHit.h:89
void SetUsing(Bool_t use)
Definition BmnHit.h:53
void SetFlag(Bool_t fl)
Definition BmnHit.h:49
Int_t GetLowerClusterIndex()
Definition BmnHit.h:129
void SetDetId(DetectorId det)
Definition BmnHit.h:65
void SetIndex(Int_t id)
Definition BmnHit.h:57
BmnHit(Int_t detUID, TVector3 posHit, TVector3 posHitErr, Int_t pointIndx)
virtual ~BmnHit()
void SetPseudo(Bool_t pseudo)
Definition BmnHit.h:141
Bool_t IsUsed() const
Definition BmnHit.h:29
void SetResXY(Double_t resX, Double_t resY)
Definition BmnHit.h:93
Double_t GetResY()
Definition BmnHit.h:102
void SetStation(Short_t st)
Definition BmnHit.h:69
void SetLowerClusterIndex(Int_t idx)
Definition BmnHit.h:137
Short_t GetStation() const
Definition BmnHit.h:45
Defines unique identifiers (enum) for all BM@N detector systems.
STL namespace.