ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMuonEFTrack.h
Go to the documentation of this file.
1// -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef TRIGMUONEVENT_TRIGMUONEFTRACK_H
8#define TRIGMUONEVENT_TRIGMUONEFTRACK_H
9
10// STL include(s):
11#include <string>
12#include <sstream>
13#include <map>
14
15// Gaudi/Athena include(s):
20
21// Forward declaration(s):
22class MsgStream;
23
26virtual public INavigable4Momentum
27{
28public:
29
32
34 TrigMuonEFTrack( double theIPt, double theCotTh, double thePhi, double theM );
35
37 TrigMuonEFTrack( const TrigMuonEFTrack& rhs );
38
41
44
45 /* Constants */
46 static const int CHARGE_NA = -999;
47
48 /* set & get methods */
49 void setPerigee(double iPt, double cotTh, double phi, double mass);
50
51 double Charge() const { return m_charge; }
52 double charge() const { return this->Charge(); }
53
54 void setCharge( double theCharge )
55 {
56 this->m_charge = theCharge;
57 }
58
59 double d0() const
60 {
61 return m_d0;
62 }
63
64 void setD0(double d0)
65 {
66 this->m_d0 = d0;
67 }
68
69 double z0() const
70 {
71 return m_z0;
72 }
73
74 void setZ0(double z0)
75 {
76 this->m_z0 = z0;
77 }
78
79 double chi2() const
80 {
81 return m_chi2;
82 }
83
84 void setChi2(double chi2)
85 {
86 this->m_chi2 = chi2;
87 }
88
89 double chi2prob() const
90 {
91 return m_chi2prob;
92 }
93
94 void setChi2prob(double chi2prob)
95 {
96 this->m_chi2prob = chi2prob;
97 }
98 double posX() const
99 {
100 return m_posx;
101 }
102
103 void setPosX(double posx)
104 {
105 this->m_posx = posx;
106 }
107
108 double posY() const
109 {
110 return m_posy;
111 }
112
113 void setPosY(double posy)
114 {
115 this->m_posy = posy;
116 }
117
118 double posZ() const
119 {
120 return m_posz;
121 }
122
123 void setPosZ(double posz)
124 {
125 this->m_posz = posz;
126 }
127
128
129 unsigned short int NRpcHitsPhi() const
130 {
131 return m_nRpcHitsPhi;
132 }
133
134 void setNRpcHitsPhi(unsigned short int nRpcHitsPhi)
135 {
136 this->m_nRpcHitsPhi = nRpcHitsPhi;
137 }
138
139 unsigned short int NTgcHitsPhi() const
140 {
141 return m_nTgcHitsPhi;
142 }
143
144 void setNTgcHitsPhi(unsigned short int nTgcHitsPhi)
145 {
146 this->m_nTgcHitsPhi = nTgcHitsPhi;
147 }
148
149 unsigned short int NCscHitsPhi() const
150 {
151 return m_nCscHitsPhi;
152 }
153
154 void setNCscHitsPhi(unsigned short int nCscHitsPhi)
155 {
156 this->m_nCscHitsPhi = nCscHitsPhi;
157 }
158
159 unsigned short int NRpcHitsEta() const
160 {
161 return m_nRpcHitsEta;
162 }
163
164 void setNRpcHitsEta(unsigned short int nRpcHitsEta)
165 {
166 this->m_nRpcHitsEta = nRpcHitsEta;
167 }
168
169 unsigned short int NTgcHitsEta() const
170 {
171 return m_nTgcHitsEta;
172 }
173
174 void setNTgcHitsEta(unsigned short int nTgcHitsEta)
175 {
176 this->m_nTgcHitsEta = nTgcHitsEta;
177 }
178
179 unsigned short int NCscHitsEta() const
180 {
181 return m_nCscHitsEta;
182 }
183
184 void setNCscHitsEta(unsigned short int nCscHitsEta)
185 {
186 this->m_nCscHitsEta = nCscHitsEta;
187 }
188
189
190 unsigned short int NMdtHits() const
191 {
192 return m_nMdtHits;
193 }
194
195 void setNMdtHits(unsigned short int nMdtHits)
196 {
197 this->m_nMdtHits =nMdtHits;
198 }
199
200private:
201
202 double m_charge;
203 double m_d0;
204 double m_z0;
205 double m_chi2;
207 double m_posx;
208 double m_posy;
209 double m_posz;
210 unsigned short int m_nMdtHitsPhi; // legacy
211 unsigned short int m_nRpcHitsPhi;
212 unsigned short int m_nTgcHitsPhi;
213 unsigned short int m_nCscHitsPhi;
214 unsigned short int m_nMdtHitsEta; // legacy
215 unsigned short int m_nRpcHitsEta;
216 unsigned short int m_nTgcHitsEta;
217 unsigned short int m_nCscHitsEta;
218 unsigned short int m_nMdtHits;
219};
220
222std::string str( const TrigMuonEFTrack& d );
224MsgStream& operator<< ( MsgStream& m, const TrigMuonEFTrack& d );
225
227bool operator== ( const TrigMuonEFTrack& a, const TrigMuonEFTrack& b );
229inline bool operator!= ( const TrigMuonEFTrack& a, const TrigMuonEFTrack& b ) {
230 return !( a == b );
231}
232
234void diff( const TrigMuonEFTrack& a, const TrigMuonEFTrack& b,
235 std::map< std::string, double >& variableChange );
236
237CLASS_DEF( TrigMuonEFTrack , 148483816 , 1 )
238
239#endif // TRIGMUONEVENT_TRIGMUONEFTRACK_H
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
static Double_t a
MsgStream & operator<<(MsgStream &m, const TrigMuonEFTrack &d)
Helper operator for printing the object.
bool operator==(const TrigMuonEFTrack &a, const TrigMuonEFTrack &b)
Operator comparing two TrigMuonEFTrack objects for equality.
bool operator!=(const TrigMuonEFTrack &a, const TrigMuonEFTrack &b)
Operator comparing two TrigMuonEFTrack objects for inequality.
void diff(const TrigMuonEFTrack &a, const TrigMuonEFTrack &b, std::map< std::string, double > &variableChange)
Comparison with feedback.
P4IPtCotThPhiM(const double iPt, const double cotTh, const double phi, const double m)
constructor with all data members
virtual double cotTh() const
get cot(theta) data member
virtual double phi() const
get phi data member
virtual double iPt() const
get inverse pT data member
unsigned short int m_nMdtHitsEta
unsigned short int NCscHitsEta() const
unsigned short int NMdtHits() const
unsigned short int NRpcHitsEta() const
double chi2() const
void setCharge(double theCharge)
double Charge() const
unsigned short int m_nRpcHitsPhi
unsigned short int m_nCscHitsEta
void setNRpcHitsPhi(unsigned short int nRpcHitsPhi)
unsigned short int m_nMdtHitsPhi
TrigMuonEFTrack()
Default constructor.
void setNRpcHitsEta(unsigned short int nRpcHitsEta)
void setPerigee(double iPt, double cotTh, double phi, double mass)
set data member
unsigned short int NTgcHitsPhi() const
unsigned short int m_nMdtHits
unsigned short int NCscHitsPhi() const
double posZ() const
TrigMuonEFTrack & operator=(const TrigMuonEFTrack &rhs)
Assignement operator.
double posY() const
void setPosZ(double posz)
unsigned short int m_nRpcHitsEta
void setNTgcHitsPhi(unsigned short int nTgcHitsPhi)
void setNMdtHits(unsigned short int nMdtHits)
double posX() const
unsigned short int NRpcHitsPhi() const
~TrigMuonEFTrack()
Destructor.
void setChi2prob(double chi2prob)
double d0() const
void setD0(double d0)
double z0() const
unsigned short int m_nTgcHitsEta
double chi2prob() const
static const int CHARGE_NA
void setNCscHitsPhi(unsigned short int nCscHitsPhi)
void setNCscHitsEta(unsigned short int nCscHitsEta)
double charge() const
unsigned short int m_nCscHitsPhi
void setPosY(double posy)
void setZ0(double z0)
unsigned short int NTgcHitsEta() const
void setPosX(double posx)
void setNTgcHitsEta(unsigned short int nTgcHitsEta)
void setChi2(double chi2)
unsigned short int m_nTgcHitsPhi