Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
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),
17  m_alpha(alpha),
18  m_dalpha(dalpha),
19  m_rErr(rErr),
20  m_zErr(zErr),
21  m_pattern(pattern) {}

◆ ~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;
47  mlmidpt = std::hypot(m_mdts.at(0)->detectorElement()->center().x(), m_mdts.at(0)->detectorElement()->center().y());
49  mlmidpt = m_mdts.at(0)->detectorElement()->center().z();
50 
51  return mlmidpt;
52 }

◆ 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.

◆ mdtChEta()

int TrackletSegment::mdtChEta ( ) const

Definition at line 42 of file TrackletSegment.cxx.

◆ mdtChPhi()

int TrackletSegment::mdtChPhi ( ) const

Definition at line 43 of file TrackletSegment.cxx.

◆ 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.

◆ m_dalpha

double TrackletSegment::m_dalpha {-999.}
private

Definition at line 26 of file TrackletSegment.h.

◆ m_gpos

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

Definition at line 25 of file TrackletSegment.h.

◆ m_idHelperSvc

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

Definition at line 22 of file TrackletSegment.h.

◆ m_isCombined

bool TrackletSegment::m_isCombined {false}
private

Definition at line 29 of file TrackletSegment.h.

◆ m_mdts

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

Definition at line 24 of file TrackletSegment.h.

◆ m_pattern

int TrackletSegment::m_pattern {0}
private

Definition at line 28 of file TrackletSegment.h.

◆ m_rErr

double TrackletSegment::m_rErr {-999.}
private

Definition at line 27 of file TrackletSegment.h.

◆ m_zErr

double TrackletSegment::m_zErr {-999.}
private

Definition at line 27 of file TrackletSegment.h.


The documentation for this class was generated from the following files:
mergePhysValFiles.pattern
pattern
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:26
TrackletSegment::m_gpos
Amg::Vector3D m_gpos
Definition: TrackletSegment.h:25
TrackletSegment::m_alpha
double m_alpha
Definition: TrackletSegment.h:26
TrackletSegment::m_pattern
int m_pattern
Definition: TrackletSegment.h:28
TrackletSegment::m_rErr
double m_rErr
Definition: TrackletSegment.h:27
MuonIdHelper::stationName
int stationName(const Identifier &id) const
Definition: MuonIdHelper.cxx:800
TrackletSegment::m_idHelperSvc
const Muon::IMuonIdHelperSvc * m_idHelperSvc
Definition: TrackletSegment.h:22
TrackletSegment::getIdentifier
const Identifier getIdentifier() const
Definition: TrackletSegment.cxx:31
TrackletSegment::m_zErr
double m_zErr
Definition: TrackletSegment.h:27
TrackletSegment::alpha
double alpha() const
Definition: TrackletSegment.cxx:33
MuonIdHelper::stationPhi
int stationPhi(const Identifier &id) const
Definition: MuonIdHelper.cxx:810
TrackletSegment::m_mdts
std::vector< const Muon::MdtPrepData * > m_mdts
Definition: TrackletSegment.h:24
Muon::IMuonIdHelperSvc::mdtIdHelper
virtual const MdtIdHelper & mdtIdHelper() const =0
access to MdtIdHelper
MuonIdHelper::isBarrel
bool isBarrel(const Identifier &id) const
Definition: MuonIdHelper.cxx:825
TrackletSegment::m_isCombined
bool m_isCombined
Definition: TrackletSegment.h:29
MuonIdHelper::stationEta
int stationEta(const Identifier &id) const
Definition: MuonIdHelper.cxx:805
MuonIdHelper::isEndcap
bool isEndcap(const Identifier &id) const
Definition: MuonIdHelper.cxx:827
TrackletSegment::m_dalpha
double m_dalpha
Definition: TrackletSegment.h:26