ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Tracklet Class Reference

#include <Tracklet.h>

Collaboration diagram for Tracklet:

Public Member Functions

 Tracklet ()
 
 Tracklet (const TrackletSegment &ML1seg, const TrackletSegment &ML2seg, const Amg::Vector3D &p, const AmgSymMatrix(5) &ErrorMatrix, float charge)
 
 Tracklet (const TrackletSegment &ML1seg, const Amg::Vector3D &p, const AmgSymMatrix(5) &ErrorMatrix, float charge)
 
 ~Tracklet ()
 
void momentum (const Amg::Vector3D &p)
 
void charge (float charge)
 
int mdtChamber () const
 
int mdtChEta () const
 
int mdtChPhi () const
 
const TrackletSegmentgetML1seg () const
 
const TrackletSegmentgetML2seg () const
 
const Amg::Vector3DglobalPosition () const
 
const Amg::Vector3Dmomentum () const
 
float alpha () const
 
float charge () const
 
const AmgSymMatrix (5) &errorMatrix() const
 
float deltaAlpha () const
 
const std::vector< const Muon::MdtPrepData * > & mdtHitsOnTrack () const
 

Private Member Functions

 AmgSymMatrix (5) m_ErrorMatrix
 

Private Attributes

TrackletSegment m_ml1seg
 
TrackletSegment m_ml2seg
 
Amg::Vector3D m_momentum
 
Amg::Vector3D m_pos
 
std::vector< const Muon::MdtPrepData * > m_mdts
 
float m_charge
 

Detailed Description

Definition at line 15 of file Tracklet.h.

Constructor & Destructor Documentation

◆ Tracklet() [1/3]

Tracklet::Tracklet ( )
inline

Definition at line 24 of file Tracklet.h.

24 {}

◆ Tracklet() [2/3]

Tracklet::Tracklet ( const TrackletSegment ML1seg,
const TrackletSegment ML2seg,
const Amg::Vector3D p,
const AmgSymMatrix(5) &  ErrorMatrix,
float  charge 
)

Definition at line 9 of file Tracklet.cxx.

11  : m_ml1seg (ML1seg),
12  m_ml2seg (ML2seg),
13  m_momentum (p),
14  m_pos (ML1seg.globalPosition()),
15  m_mdts (ML1seg.mdtHitsOnTrack()),
16  m_ErrorMatrix (ErrorMatrix),
18 {
19  for (unsigned int i = 0; i < m_ml2seg.mdtHitsOnTrack().size(); ++i) m_mdts.push_back(m_ml2seg.mdtHitsOnTrack().at(i));
20 }

◆ Tracklet() [3/3]

Tracklet::Tracklet ( const TrackletSegment ML1seg,
const Amg::Vector3D p,
const AmgSymMatrix(5) &  ErrorMatrix,
float  charge 
)

Definition at line 22 of file Tracklet.cxx.

23  : m_ml1seg (ML1seg),
24  m_ml2seg (ML1seg),
25  m_momentum (p),
26  m_pos (ML1seg.globalPosition()),
27  m_mdts (ML1seg.mdtHitsOnTrack()),
28  m_ErrorMatrix (ErrorMatrix),
30 {
31 }

◆ ~Tracklet()

Tracklet::~Tracklet ( )
default

Member Function Documentation

◆ alpha()

float Tracklet::alpha ( ) const

Definition at line 49 of file Tracklet.cxx.

49 { return TMath::ATan2(m_momentum.perp(), m_momentum.z()); }

◆ AmgSymMatrix() [1/2]

const Tracklet::AmgSymMatrix ( ) const &

◆ AmgSymMatrix() [2/2]

Tracklet::AmgSymMatrix ( )
private

◆ charge() [1/2]

float Tracklet::charge ( ) const

Definition at line 50 of file Tracklet.cxx.

50 { return m_charge; }

◆ charge() [2/2]

void Tracklet::charge ( float  charge)

Definition at line 38 of file Tracklet.cxx.

38  {
39  m_charge = charge;
40 }

◆ deltaAlpha()

float Tracklet::deltaAlpha ( ) const

◆ getML1seg()

const TrackletSegment & Tracklet::getML1seg ( ) const

Definition at line 45 of file Tracklet.cxx.

45 { return m_ml1seg; }

◆ getML2seg()

const TrackletSegment & Tracklet::getML2seg ( ) const

Definition at line 46 of file Tracklet.cxx.

46 { return m_ml2seg; }

◆ globalPosition()

const Amg::Vector3D & Tracklet::globalPosition ( ) const

Definition at line 47 of file Tracklet.cxx.

47 { return m_pos; }

◆ mdtChamber()

int Tracklet::mdtChamber ( ) const

Definition at line 42 of file Tracklet.cxx.

42 { return m_ml1seg.mdtChamber(); }

◆ mdtChEta()

int Tracklet::mdtChEta ( ) const

Definition at line 43 of file Tracklet.cxx.

43 { return m_ml1seg.mdtChEta(); }

◆ mdtChPhi()

int Tracklet::mdtChPhi ( ) const

Definition at line 44 of file Tracklet.cxx.

44 { return m_ml1seg.mdtChPhi(); }

◆ mdtHitsOnTrack()

const std::vector<const Muon::MdtPrepData*>& Tracklet::mdtHitsOnTrack ( ) const

◆ momentum() [1/2]

const Amg::Vector3D & Tracklet::momentum ( ) const

Definition at line 48 of file Tracklet.cxx.

48 { return m_momentum; }

◆ momentum() [2/2]

void Tracklet::momentum ( const Amg::Vector3D p)

Definition at line 35 of file Tracklet.cxx.

35  {
36  m_momentum = p;
37 }

Member Data Documentation

◆ m_charge

float Tracklet::m_charge
private

Definition at line 21 of file Tracklet.h.

◆ m_mdts

std::vector<const Muon::MdtPrepData*> Tracklet::m_mdts
private

Definition at line 19 of file Tracklet.h.

◆ m_ml1seg

TrackletSegment Tracklet::m_ml1seg
private

Definition at line 16 of file Tracklet.h.

◆ m_ml2seg

TrackletSegment Tracklet::m_ml2seg
private

Definition at line 16 of file Tracklet.h.

◆ m_momentum

Amg::Vector3D Tracklet::m_momentum
private

Definition at line 17 of file Tracklet.h.

◆ m_pos

Amg::Vector3D Tracklet::m_pos
private

Definition at line 18 of file Tracklet.h.


The documentation for this class was generated from the following files:
Tracklet::charge
float charge() const
Definition: Tracklet.cxx:50
Tracklet::m_charge
float m_charge
Definition: Tracklet.h:21
TrackletSegment::globalPosition
const Amg::Vector3D & globalPosition() const
Definition: TrackletSegment.cxx:60
Tracklet::m_pos
Amg::Vector3D m_pos
Definition: Tracklet.h:18
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
TrackletSegment::mdtChamber
int mdtChamber() const
Definition: TrackletSegment.cxx:51
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
lumiFormat.i
int i
Definition: lumiFormat.py:85
Tracklet::m_ml1seg
TrackletSegment m_ml1seg
Definition: Tracklet.h:16
TrackletSegment::mdtHitsOnTrack
const std::vector< const Muon::MdtPrepData * > & mdtHitsOnTrack() const
Definition: TrackletSegment.cxx:61
Tracklet::m_momentum
Amg::Vector3D m_momentum
Definition: Tracklet.h:17
Tracklet::m_ml2seg
TrackletSegment m_ml2seg
Definition: Tracklet.h:16
TrackletSegment::mdtChEta
int mdtChEta() const
Definition: TrackletSegment.cxx:52
TrackletSegment::mdtChPhi
int mdtChPhi() const
Definition: TrackletSegment.cxx:53
Tracklet::m_mdts
std::vector< const Muon::MdtPrepData * > m_mdts
Definition: Tracklet.h:19
LArGeo::ATan2
GeoGenfun::FunctionNoop ATan2(GeoGenfun::GENFUNCTION y, GeoGenfun::GENFUNCTION x)
Definition: BarrelAuxFunctions.cxx:50