ATLAS Offline Software
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):
16 #include "FourMom/P4IPtCotThPhiM.h"
17 #include "AthenaKernel/CLASS_DEF.h"
20 
21 // Forward declaration(s):
22 class MsgStream;
23 
26 virtual public INavigable4Momentum
27 {
28 public:
29 
31  TrigMuonEFTrack( );
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 
200 private:
201 
202  double m_charge;
203  double m_d0;
204  double m_z0;
205  double m_chi2;
206  double m_chi2prob;
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 
222 std::string str( const TrigMuonEFTrack& d );
224 MsgStream& operator<< ( MsgStream& m, const TrigMuonEFTrack& d );
225 
227 bool operator== ( const TrigMuonEFTrack& a, const TrigMuonEFTrack& b );
229 inline bool operator!= ( const TrigMuonEFTrack& a, const TrigMuonEFTrack& b ) {
230  return !( a == b );
231 }
232 
234 void diff( const TrigMuonEFTrack& a, const TrigMuonEFTrack& b,
235  std::map< std::string, double >& variableChange );
236 
237 CLASS_DEF( TrigMuonEFTrack , 148483816 , 1 )
238 
239 #endif // TRIGMUONEVENT_TRIGMUONEFTRACK_H
TrigMuonEFTrack::NRpcHitsEta
unsigned short int NRpcHitsEta() const
Definition: TrigMuonEFTrack.h:159
P4IPtCotThPhiM.h
TrigMuonEFTrack::~TrigMuonEFTrack
~TrigMuonEFTrack()
Destructor.
Definition: TrigMuonEFTrack.cxx:141
TrigMuonEFTrack::m_charge
double m_charge
Definition: TrigMuonEFTrack.h:202
TrigMuonEFTrack::m_posx
double m_posx
Definition: TrigMuonEFTrack.h:207
TrigMuonEFTrack::setPosX
void setPosX(double posx)
Definition: TrigMuonEFTrack.h:103
TrigMuonEFTrack::posX
double posX() const
Definition: TrigMuonEFTrack.h:98
TrigMuonEFTrack::m_posz
double m_posz
Definition: TrigMuonEFTrack.h:209
TrigMuonEFTrack::NMdtHits
unsigned short int NMdtHits() const
Definition: TrigMuonEFTrack.h:190
operator<<
MsgStream & operator<<(MsgStream &m, const TrigMuonEFTrack &d)
Helper operator for printing the object.
Definition: TrigMuonEFTrack.cxx:164
TrigMuonEFTrack::charge
double charge() const
Definition: TrigMuonEFTrack.h:52
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
TrigMuonEFTrack::m_nRpcHitsPhi
unsigned short int m_nRpcHitsPhi
Definition: TrigMuonEFTrack.h:211
Base_Fragment.mass
mass
Definition: Sherpa_i/share/common/Base_Fragment.py:59
INavigable4Momentum.h
TrigMuonEFTrack
Definition: TrigMuonEFTrack.h:27
operator!=
bool operator!=(const TrigMuonEFTrack &a, const TrigMuonEFTrack &b)
Operator comparing two TrigMuonEFTrack objects for inequality.
Definition: TrigMuonEFTrack.h:229
hist_file_dump.d
d
Definition: hist_file_dump.py:137
TrigMuonEFTrack::m_z0
double m_z0
Definition: TrigMuonEFTrack.h:204
TrigMuonEFTrack::setNRpcHitsPhi
void setNRpcHitsPhi(unsigned short int nRpcHitsPhi)
Definition: TrigMuonEFTrack.h:134
TrigMuonEFTrack::Charge
double Charge() const
Definition: TrigMuonEFTrack.h:51
TrigMuonEFTrack::setNMdtHits
void setNMdtHits(unsigned short int nMdtHits)
Definition: TrigMuonEFTrack.h:195
P4IPtCotThPhiM
Definition: P4IPtCotThPhiM.h:27
NavigableTerminalNode
Dummy type needed fro specialized implementation.
Definition: NavigableTerminalNode.h:19
TrigMuonEFTrack::d0
double d0() const
Definition: TrigMuonEFTrack.h:59
TrigMuonEFTrack::m_nCscHitsPhi
unsigned short int m_nCscHitsPhi
Definition: TrigMuonEFTrack.h:213
TrigMuonEFTrack::setNCscHitsPhi
void setNCscHitsPhi(unsigned short int nCscHitsPhi)
Definition: TrigMuonEFTrack.h:154
TrigMuonEFTrack::setPosZ
void setPosZ(double posz)
Definition: TrigMuonEFTrack.h:123
TrigMuonEFTrack::setNRpcHitsEta
void setNRpcHitsEta(unsigned short int nRpcHitsEta)
Definition: TrigMuonEFTrack.h:164
TrigMuonEFTrack::m_nMdtHitsEta
unsigned short int m_nMdtHitsEta
Definition: TrigMuonEFTrack.h:214
TrigMuonEFTrack::m_nCscHitsEta
unsigned short int m_nCscHitsEta
Definition: TrigMuonEFTrack.h:217
TrigMuonEFTrack::operator=
TrigMuonEFTrack & operator=(const TrigMuonEFTrack &rhs)
Assignement operator.
Definition: TrigMuonEFTrack.cxx:105
str
std::string str(const TrigMuonEFTrack &d)
Helper function for printing the object.
Definition: TrigMuonEFTrack.cxx:146
TrigMuonEFTrack::posY
double posY() const
Definition: TrigMuonEFTrack.h:108
TrigMuonEFTrack::m_nTgcHitsEta
unsigned short int m_nTgcHitsEta
Definition: TrigMuonEFTrack.h:216
diff
void diff(const TrigMuonEFTrack &a, const TrigMuonEFTrack &b, std::map< std::string, double > &variableChange)
Comparison with feedback.
Definition: TrigMuonEFTrack.cxx:222
TrigMuonEFTrack::NRpcHitsPhi
unsigned short int NRpcHitsPhi() const
Definition: TrigMuonEFTrack.h:129
TrigMuonEFTrack::TrigMuonEFTrack
TrigMuonEFTrack()
Default constructor.
Definition: TrigMuonEFTrack.cxx:33
TrigMuonEFTrack::m_posy
double m_posy
Definition: TrigMuonEFTrack.h:208
TrigMuonEFTrack::NTgcHitsEta
unsigned short int NTgcHitsEta() const
Definition: TrigMuonEFTrack.h:169
TrigMuonEFTrack::setChi2prob
void setChi2prob(double chi2prob)
Definition: TrigMuonEFTrack.h:94
TrigMuonEFTrack::setChi2
void setChi2(double chi2)
Definition: TrigMuonEFTrack.h:84
P4IPtCotThPhiM::phi
virtual double phi() const
get phi data member
Definition: P4IPtCotThPhiM.h:106
TrigMuonEFTrack::setD0
void setD0(double d0)
Definition: TrigMuonEFTrack.h:64
TrigMuonEFTrack::NTgcHitsPhi
unsigned short int NTgcHitsPhi() const
Definition: TrigMuonEFTrack.h:139
TrigMuonEFTrack::NCscHitsEta
unsigned short int NCscHitsEta() const
Definition: TrigMuonEFTrack.h:179
TrigMuonEFTrack::m_chi2prob
double m_chi2prob
Definition: TrigMuonEFTrack.h:206
NavigableTerminalNode.h
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
TrigMuonEFTrack::m_nRpcHitsEta
unsigned short int m_nRpcHitsEta
Definition: TrigMuonEFTrack.h:215
TrigMuonEFTrack::posZ
double posZ() const
Definition: TrigMuonEFTrack.h:118
TrigMuonEFTrack::chi2
double chi2() const
Definition: TrigMuonEFTrack.h:79
TrigMuonEFTrack::CHARGE_NA
static const int CHARGE_NA
Definition: TrigMuonEFTrack.h:46
TrigMuonEFTrack::chi2prob
double chi2prob() const
Definition: TrigMuonEFTrack.h:89
TrigMuonEFTrack::setPosY
void setPosY(double posy)
Definition: TrigMuonEFTrack.h:113
TrigMuonEFTrack::m_d0
double m_d0
Definition: TrigMuonEFTrack.h:203
TrigMuonEFTrack::setZ0
void setZ0(double z0)
Definition: TrigMuonEFTrack.h:74
TrigMuonEFTrack::z0
double z0() const
Definition: TrigMuonEFTrack.h:69
a
TList * a
Definition: liststreamerinfos.cxx:10
TrigMuonEFTrack::m_nTgcHitsPhi
unsigned short int m_nTgcHitsPhi
Definition: TrigMuonEFTrack.h:212
INavigable4Momentum
Definition: INavigable4Momentum.h:21
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
TrigMuonEFTrack::m_nMdtHitsPhi
unsigned short int m_nMdtHitsPhi
Definition: TrigMuonEFTrack.h:210
TrigMuonEFTrack::setCharge
void setCharge(double theCharge)
Definition: TrigMuonEFTrack.h:54
TrigMuonEFTrack::setNCscHitsEta
void setNCscHitsEta(unsigned short int nCscHitsEta)
Definition: TrigMuonEFTrack.h:184
P4IPtCotThPhiM::iPt
virtual double iPt() const
get inverse pT data member
Definition: P4IPtCotThPhiM.h:100
TrigMuonEFTrack::m_nMdtHits
unsigned short int m_nMdtHits
Definition: TrigMuonEFTrack.h:218
TrigMuonEFTrack::setNTgcHitsPhi
void setNTgcHitsPhi(unsigned short int nTgcHitsPhi)
Definition: TrigMuonEFTrack.h:144
operator==
bool operator==(const TrigMuonEFTrack &a, const TrigMuonEFTrack &b)
Operator comparing two TrigMuonEFTrack objects for equality.
Definition: TrigMuonEFTrack.cxx:169
CLASS_DEF.h
macros to associate a CLID to a type
TrigMuonEFTrack::NCscHitsPhi
unsigned short int NCscHitsPhi() const
Definition: TrigMuonEFTrack.h:149
TrigMuonEFTrack::m_chi2
double m_chi2
Definition: TrigMuonEFTrack.h:205
TrigMuonEFTrack::setPerigee
void setPerigee(double iPt, double cotTh, double phi, double mass)
set data member
Definition: TrigMuonEFTrack.cxx:131
TrigMuonEFTrack::setNTgcHitsEta
void setNTgcHitsEta(unsigned short int nTgcHitsEta)
Definition: TrigMuonEFTrack.h:174
P4IPtCotThPhiM::cotTh
virtual double cotTh() const
get cot(theta) data member
Definition: P4IPtCotThPhiM.h:103