ATLAS Offline Software
Tracklet.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #pragma once
6 
7 #include <vector>
8 #include <cmath>
9 
14 
15 
16 // HV Track Class
17 class Tracklet {
18  private:
22  std::vector<const Muon::MdtPrepData*> m_mdts{};
23  AmgSymMatrix(5) m_ErrorMatrix{};
24  double m_charge{0.};
26 
27  public:
28  Tracklet() = default;
29  Tracklet(const TrackletSegment& ML1seg,
30  const TrackletSegment& ML2seg,
31  const Amg::Vector3D& p,
32  const AmgSymMatrix(5) & ErrorMatrix,
33  double charge);
34  Tracklet(const TrackletSegment& ML1seg,
35  const Amg::Vector3D& p,
36  const AmgSymMatrix(5) & ErrorMatrix,
37  double charge);
38 
40 
41  // set functions
43  void momentum(const Amg::Vector3D& p);
44  void charge(double charge);
45 
46  // get functions
48  const std::vector<const Muon::MdtPrepData*>& mdtHitsOnTrack() const;
49  Identifier muonIdentifier() const;
50  const TrackletSegment& getML1seg() const;
51  const TrackletSegment& getML2seg() const;
52  const Amg::Vector3D& globalPosition() const;
53  const Amg::Vector3D& momentum() const;
54  double alpha() const;
55  double deltaAlpha() const;
56  const AmgSymMatrix(5) & errorMatrix() const;
57  double charge() const;
58  int mdtChamber() const;
59  int mdtChEta() const;
60  int mdtChPhi() const;
61 };
Tracklet::getTrackParticle
const xAOD::TrackParticle * getTrackParticle() const
Definition: Tracklet.cxx:44
Tracklet::charge
double charge() const
Definition: Tracklet.cxx:53
Tracklet::muonIdentifier
Identifier muonIdentifier() const
Definition: Tracklet.cxx:46
Tracklet::AmgSymMatrix
AmgSymMatrix(5) m_ErrorMatrix
Definition: Tracklet.h:23
Tracklet::momentum
const Amg::Vector3D & momentum() const
Definition: Tracklet.cxx:50
Tracklet::m_track
xAOD::TrackParticle * m_track
Definition: Tracklet.h:25
Tracklet::m_pos
Amg::Vector3D m_pos
Definition: Tracklet.h:21
GeoPrimitives.h
Tracklet::m_charge
double m_charge
Definition: Tracklet.h:24
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
TrackletSegment
New segment class for single ML segments.
Definition: TrackletSegment.h:20
Tracklet::Tracklet
Tracklet()=default
Tracklet::mdtChEta
int mdtChEta() const
Tracklet::mdtChPhi
int mdtChPhi() const
Tracklet::deltaAlpha
double deltaAlpha() const
Definition: Tracklet.cxx:52
Tracklet::getML1seg
const TrackletSegment & getML1seg() const
Definition: Tracklet.cxx:47
EventPrimitives.h
Tracklet::mdtHitsOnTrack
const std::vector< const Muon::MdtPrepData * > & mdtHitsOnTrack() const
Definition: Tracklet.cxx:45
Tracklet::getML2seg
const TrackletSegment & getML2seg() const
Definition: Tracklet.cxx:48
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Tracklet::m_ml1seg
TrackletSegment m_ml1seg
Definition: Tracklet.h:19
TrackParticle.h
Tracklet::~Tracklet
~Tracklet()
Tracklet::m_momentum
Amg::Vector3D m_momentum
Definition: Tracklet.h:20
Tracklet::AmgSymMatrix
const AmgSymMatrix(5) &errorMatrix() const
Tracklet::setTrackParticle
void setTrackParticle(xAOD::TrackParticle *track)
Definition: Tracklet.cxx:39
Tracklet::alpha
double alpha() const
Definition: Tracklet.cxx:51
Tracklet::m_ml2seg
TrackletSegment m_ml2seg
Definition: Tracklet.h:19
Tracklet::mdtChamber
int mdtChamber() const
Tracklet::globalPosition
const Amg::Vector3D & globalPosition() const
Definition: Tracklet.cxx:49
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
Tracklet
Definition: Tracklet.h:17
Tracklet::m_mdts
std::vector< const Muon::MdtPrepData * > m_mdts
Definition: Tracklet.h:22
generate::Zero
void Zero(TH1D *hin)
Definition: generate.cxx:32
TrackletSegment.h
Identifier
Definition: IdentifierFieldParser.cxx:14