ATLAS Offline Software
TrackletSegment.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
8 
10  m_chamber = 999;
11  m_cham_eta = 999;
12  m_cham_phi = 999;
13  m_alpha = -999;
14  m_dalpha = -999;
15  m_rErr = -999;
16  m_zErr = -999;
17  m_chmid = 0;
18  m_mdts.clear();
19  m_pattern = 0;
20  m_isCombined = false;
21 }
22 
23 TrackletSegment::TrackletSegment(int ch, int cheta, int chphi, float chmid, float alpha, float dalpha, const Amg::Vector3D& gpos,
24  float rErr, float zErr, const std::vector<const Muon::MdtPrepData*>& mdts, int pattern)
25  : m_chamber (ch),
26  m_cham_eta (cheta),
27  m_cham_phi (chphi),
28  m_alpha (alpha),
29  m_dalpha (dalpha),
30  m_rErr (rErr),
31  m_zErr (zErr),
32  m_globalPosition (gpos),
33  m_chmid (chmid),
34  m_mdts (mdts),
35  m_pattern (pattern),
36  m_isCombined (false)
37 {
38 }
39 
41 
42 // set functions
44  m_mdts.clear();
45 }
46 void TrackletSegment::isCombined(bool iscomb) {
47  m_isCombined = iscomb;
48 }
49 
50 // get functions
51 int TrackletSegment::mdtChamber() const { return m_chamber; }
52 int TrackletSegment::mdtChEta() const { return m_cham_eta; }
53 int TrackletSegment::mdtChPhi() const { return m_cham_phi; }
54 float TrackletSegment::alpha() const { return m_alpha; }
55 float TrackletSegment::alphaError() const { return m_dalpha; }
56 float TrackletSegment::zError() const { return m_zErr; }
57 float TrackletSegment::rError() const { return m_rErr; }
58 float TrackletSegment::getChMidPoint() const { return m_chmid; }
59 bool TrackletSegment::isCombined() const { return m_isCombined; }
61 const std::vector<const Muon::MdtPrepData*>& TrackletSegment::mdtHitsOnTrack() const { return m_mdts; }
mergePhysValFiles.pattern
pattern
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:26
TrackletSegment::clearMdt
void clearMdt()
Definition: TrackletSegment.cxx:43
sendEI_SPB.ch
ch
Definition: sendEI_SPB.py:35
TrackletSegment::m_zErr
float m_zErr
Definition: TrackletSegment.h:22
TrackletSegment::m_cham_phi
int m_cham_phi
Definition: TrackletSegment.h:20
TrackletSegment::m_dalpha
float m_dalpha
Definition: TrackletSegment.h:21
TrackletSegment::m_pattern
int m_pattern
Definition: TrackletSegment.h:26
TrackletSegment::m_cham_eta
int m_cham_eta
Definition: TrackletSegment.h:19
TrackletSegment::alphaError
float alphaError() const
Definition: TrackletSegment.cxx:55
TrackletSegment::isCombined
bool isCombined() const
Definition: TrackletSegment.cxx:59
TrackletSegment::globalPosition
const Amg::Vector3D & globalPosition() const
Definition: TrackletSegment.cxx:60
MdtPrepDataContainer.h
TrackletSegment::mdtChamber
int mdtChamber() const
Definition: TrackletSegment.cxx:51
TrackletSegment::getChMidPoint
float getChMidPoint() const
Definition: TrackletSegment.cxx:58
TrackletSegment::zError
float zError() const
Definition: TrackletSegment.cxx:56
TrackletSegment::rError
float rError() const
Definition: TrackletSegment.cxx:57
TrackletSegment::~TrackletSegment
~TrackletSegment()
TrackletSegment::TrackletSegment
TrackletSegment()
Definition: TrackletSegment.cxx:9
TrackletSegment::m_mdts
std::vector< const Muon::MdtPrepData * > m_mdts
Definition: TrackletSegment.h:25
TrackletSegment::m_isCombined
bool m_isCombined
Definition: TrackletSegment.h:27
TrackletSegment::m_globalPosition
Amg::Vector3D m_globalPosition
Definition: TrackletSegment.h:23
TrackletSegment::m_rErr
float m_rErr
Definition: TrackletSegment.h:22
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
TrackletSegment::m_chamber
int m_chamber
Definition: TrackletSegment.h:18
TrackletSegment::mdtHitsOnTrack
const std::vector< const Muon::MdtPrepData * > & mdtHitsOnTrack() const
Definition: TrackletSegment.cxx:61
TrackletSegment::m_alpha
float m_alpha
Definition: TrackletSegment.h:21
TrackletSegment::alpha
float alpha() const
Definition: TrackletSegment.cxx:54
TrackletSegment::mdtChEta
int mdtChEta() const
Definition: TrackletSegment.cxx:52
TrackletSegment::mdtChPhi
int mdtChPhi() const
Definition: TrackletSegment.cxx:53
TrackletSegment::getHitPattern
int getHitPattern() const
Definition: TrackletSegment.cxx:62
TrackletSegment::m_chmid
float m_chmid
Definition: TrackletSegment.h:24
TrackletSegment.h