ATLAS Offline Software
Loading...
Searching...
No Matches
TrackletSegment Class Reference

New segment class for single ML segments. More...

#include <TrackletSegment.h>

Collaboration diagram for TrackletSegment:

Public Member Functions

 TrackletSegment ()=default
 TrackletSegment (const Muon::IMuonIdHelperSvc *idHelperSvc, const std::vector< const Muon::MdtPrepData * > &mdts, const Amg::Vector3D &gpos, double alpha, double dalpha, double rErr, double zErr, int pattern)
 ~TrackletSegment ()
void clearMdt ()
void isCombined (bool iscomb)
const std::vector< const Muon::MdtPrepData * > & mdtHitsOnTrack () const
const Identifier getIdentifier () const
const Amg::Vector3DglobalPosition () const
double alpha () const
double alphaError () const
double zError () const
double rError () const
int getHitPattern () const
bool isCombined () const
int mdtChamber () const
int mdtChEta () const
int mdtChPhi () const
double getChMidPoint () const

Private Attributes

const Muon::IMuonIdHelperSvcm_idHelperSvc {nullptr}
std::vector< const Muon::MdtPrepData * > m_mdts {}
Amg::Vector3D m_gpos {Amg::Vector3D::Zero()}
double m_alpha {-999.}
double m_dalpha {-999.}
double m_rErr {-999.}
double m_zErr {-999.}
int m_pattern {0}
bool m_isCombined {false}

Detailed Description

New segment class for single ML segments.

Definition at line 20 of file TrackletSegment.h.

Constructor & Destructor Documentation

◆ TrackletSegment() [1/2]

TrackletSegment::TrackletSegment ( )
default

◆ TrackletSegment() [2/2]

TrackletSegment::TrackletSegment ( const Muon::IMuonIdHelperSvc * idHelperSvc,
const std::vector< const Muon::MdtPrepData * > & mdts,
const Amg::Vector3D & gpos,
double alpha,
double dalpha,
double rErr,
double zErr,
int pattern )

Definition at line 8 of file TrackletSegment.cxx.

13 :
14 m_idHelperSvc(idHelperSvc),
15 m_mdts(mdts),
16 m_gpos(gpos),
18 m_dalpha(dalpha),
19 m_rErr(rErr),
20 m_zErr(zErr),
21 m_pattern(pattern) {}
double alpha() const
const Muon::IMuonIdHelperSvc * m_idHelperSvc
Amg::Vector3D m_gpos
std::vector< const Muon::MdtPrepData * > m_mdts

◆ ~TrackletSegment()

TrackletSegment::~TrackletSegment ( )
default

Member Function Documentation

◆ alpha()

double TrackletSegment::alpha ( ) const

Definition at line 33 of file TrackletSegment.cxx.

33{ return m_alpha; }

◆ alphaError()

double TrackletSegment::alphaError ( ) const

Definition at line 34 of file TrackletSegment.cxx.

34{ return m_dalpha; }

◆ clearMdt()

void TrackletSegment::clearMdt ( )

Definition at line 26 of file TrackletSegment.cxx.

26{ m_mdts.clear(); }

◆ getChMidPoint()

double TrackletSegment::getChMidPoint ( ) const

Definition at line 44 of file TrackletSegment.cxx.

44 {
45 double mlmidpt = 0;
46 if (m_idHelperSvc->mdtIdHelper().isBarrel(getIdentifier()))
47 mlmidpt = std::hypot(m_mdts.at(0)->detectorElement()->center().x(), m_mdts.at(0)->detectorElement()->center().y());
48 else if (m_idHelperSvc->mdtIdHelper().isEndcap(getIdentifier()))
49 mlmidpt = m_mdts.at(0)->detectorElement()->center().z();
50
51 return mlmidpt;
52}
const Identifier getIdentifier() const

◆ getHitPattern()

int TrackletSegment::getHitPattern ( ) const

Definition at line 37 of file TrackletSegment.cxx.

37{ return m_pattern; }

◆ getIdentifier()

const Identifier TrackletSegment::getIdentifier ( ) const

Definition at line 31 of file TrackletSegment.cxx.

31{return m_mdts.at(0)->identify();}

◆ globalPosition()

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

Definition at line 32 of file TrackletSegment.cxx.

32{ return m_gpos; }

◆ isCombined() [1/2]

bool TrackletSegment::isCombined ( ) const

Definition at line 38 of file TrackletSegment.cxx.

38{ return m_isCombined; }

◆ isCombined() [2/2]

void TrackletSegment::isCombined ( bool iscomb)

Definition at line 27 of file TrackletSegment.cxx.

27{ m_isCombined = iscomb; }

◆ mdtChamber()

int TrackletSegment::mdtChamber ( ) const

Definition at line 41 of file TrackletSegment.cxx.

41{ return m_idHelperSvc->mdtIdHelper().stationName(getIdentifier()); }

◆ mdtChEta()

int TrackletSegment::mdtChEta ( ) const

Definition at line 42 of file TrackletSegment.cxx.

42{ return m_idHelperSvc->mdtIdHelper().stationEta(getIdentifier()); }

◆ mdtChPhi()

int TrackletSegment::mdtChPhi ( ) const

Definition at line 43 of file TrackletSegment.cxx.

43{ return m_idHelperSvc->mdtIdHelper().stationPhi(getIdentifier()); }

◆ mdtHitsOnTrack()

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

Definition at line 30 of file TrackletSegment.cxx.

30{ return m_mdts; }

◆ rError()

double TrackletSegment::rError ( ) const

Definition at line 36 of file TrackletSegment.cxx.

36{ return m_rErr; }

◆ zError()

double TrackletSegment::zError ( ) const

Definition at line 35 of file TrackletSegment.cxx.

35{ return m_zErr; }

Member Data Documentation

◆ m_alpha

double TrackletSegment::m_alpha {-999.}
private

Definition at line 26 of file TrackletSegment.h.

26{-999.}, m_dalpha{-999.}; // angle of the segment

◆ m_dalpha

double TrackletSegment::m_dalpha {-999.}
private

Definition at line 26 of file TrackletSegment.h.

26{-999.}, m_dalpha{-999.}; // angle of the segment

◆ m_gpos

Amg::Vector3D TrackletSegment::m_gpos {Amg::Vector3D::Zero()}
private

Definition at line 25 of file TrackletSegment.h.

25{Amg::Vector3D::Zero()}; // global position of the segment

◆ m_idHelperSvc

const Muon::IMuonIdHelperSvc* TrackletSegment::m_idHelperSvc {nullptr}
private

Definition at line 22 of file TrackletSegment.h.

22{nullptr};

◆ m_isCombined

bool TrackletSegment::m_isCombined {false}
private

Definition at line 29 of file TrackletSegment.h.

29{false}; // TrackletSegment build from combined fit with another

◆ m_mdts

std::vector<const Muon::MdtPrepData*> TrackletSegment::m_mdts {}
private

Definition at line 24 of file TrackletSegment.h.

24{}; // vector of hits on track

◆ m_pattern

int TrackletSegment::m_pattern {0}
private

Definition at line 28 of file TrackletSegment.h.

28{0}; // hit pattern of the mdt hits

◆ m_rErr

double TrackletSegment::m_rErr {-999.}
private

Definition at line 27 of file TrackletSegment.h.

27{-999.}, m_zErr{-999.}; // error on the r & z coordinates

◆ m_zErr

double TrackletSegment::m_zErr {-999.}
private

Definition at line 27 of file TrackletSegment.h.

27{-999.}, m_zErr{-999.}; // error on the r & z coordinates

The documentation for this class was generated from the following files: