ATLAS Offline Software
Public Types | Public Member Functions | Protected Attributes | List of all members
Trk::TrackRoad Class Referencefinal

Encapsulates the information required by the find() method of the muon segment makers. More...

#include <TrackRoad.h>

Collaboration diagram for Trk::TrackRoad:

Public Types

enum  TrackRoadTypes { Unknown = 0, RPCTGC = 1, MDT = 2, IDSeeded = 3 }
 TrackRoad Types. More...
 

Public Member Functions

 TrackRoad (const Amg::Vector3D &globalPosition, const Amg::Vector3D &globalDirection, double deltaEta, double deltaPhi, int type=Unknown, double weight=1.0)
 Constructor. More...
 
 TrackRoad ()=default
 
 TrackRoad (const TrackRoad &)=default
 
 TrackRoad (TrackRoad &&)=default
 
TrackRoadoperator= (const TrackRoad &)=default
 
TrackRoadoperator= (TrackRoad &&)=default
 
 ~TrackRoad ()=default
 
const Amg::Vector3DglobalPosition () const
 Get the global position of the road. More...
 
const Amg::Vector3DglobalDirection () const
 Get the global direction of the road. More...
 
double deltaEta () const
 Get the width of the road in the eta direction. More...
 
double deltaPhi () const
 Get the width of the road in the phi direction. More...
 
int type () const
 Get the type of the road. More...
 
double weight () const
 Get the weight of the road. More...
 
std::string toString () const
 Get a readable form for debugging. More...
 
MsgStream & dump (MsgStream &stream) const
 Dump the road into a message stream. More...
 
std::ostream & dump (std::ostream &stream) const
 Dump the road into a standard output stream. More...
 
void setType (int type)
 Set the type of the road. More...
 
void setWeight (double weight)
 Set the weight of the road. More...
 

Protected Attributes

Amg::Vector3D m_globalPos {}
 The global position of the road. More...
 
Amg::Vector3D m_globalDir {}
 The global direction of the road. More...
 
double m_dDeltaEta { 0 }
 The width of the road in the eta direction. More...
 
double m_dDeltaPhi { 0 }
 The width of the road in the phi direction. More...
 
int m_type { 0 }
 The type of the road (Unknown, RPCTGC, MDT, IDSeeded) More...
 
double m_weight { 1.0 }
 The weight of the road (default is 1.0) More...
 

Detailed Description

Encapsulates the information required by the find() method of the muon segment makers.

Definition at line 20 of file TrackRoad.h.

Member Enumeration Documentation

◆ TrackRoadTypes

TrackRoad Types.

Enumerator
Unknown 
RPCTGC 
MDT 
IDSeeded 

Definition at line 26 of file TrackRoad.h.

27  {
28  Unknown = 0,
29  RPCTGC = 1,
30  MDT = 2,
31  IDSeeded = 3
32  };

Constructor & Destructor Documentation

◆ TrackRoad() [1/4]

Trk::TrackRoad::TrackRoad ( const Amg::Vector3D globalPosition,
const Amg::Vector3D globalDirection,
double  deltaEta,
double  deltaPhi,
int  type = Unknown,
double  weight = 1.0 
)
inline

Constructor.

Parameters
globalPositionThe global position of the road.
globalDirectionThe global direction of the road.
deltaEtaThe width of the road in the eta direction.
deltaPhiThe width of the road in the phi direction.
typeThe road type (defaults to Unnown)
weightThe road weight (defaults to 1.0)

Definition at line 121 of file TrackRoad.h.

131  , m_type(type)
132  , m_weight(weight)
133 {
134 }

◆ TrackRoad() [2/4]

Trk::TrackRoad::TrackRoad ( )
default

◆ TrackRoad() [3/4]

Trk::TrackRoad::TrackRoad ( const TrackRoad )
default

◆ TrackRoad() [4/4]

Trk::TrackRoad::TrackRoad ( TrackRoad &&  )
default

◆ ~TrackRoad()

Trk::TrackRoad::~TrackRoad ( )
default

Member Function Documentation

◆ deltaEta()

double Trk::TrackRoad::deltaEta ( ) const
inline

Get the width of the road in the eta direction.

Definition at line 149 of file TrackRoad.h.

150 {
151  return m_dDeltaEta;
152 }

◆ deltaPhi()

double Trk::TrackRoad::deltaPhi ( ) const
inline

Get the width of the road in the phi direction.

Definition at line 155 of file TrackRoad.h.

156 {
157  return m_dDeltaPhi;
158 }

◆ dump() [1/2]

MsgStream & Trk::TrackRoad::dump ( MsgStream &  stream) const

Dump the road into a message stream.

Definition at line 28 of file TrackRoad.cxx.

29 {
30  stream << MSG::DEBUG << "TrackRoad " << toString() << endmsg;
31  return stream;
32 }

◆ dump() [2/2]

std::ostream & Trk::TrackRoad::dump ( std::ostream &  stream) const

Dump the road into a standard output stream.

Definition at line 35 of file TrackRoad.cxx.

36 {
37  stream << MSG::DEBUG << "TrackRoad " << toString() << std::endl;
38  return stream;
39 }

◆ globalDirection()

const Amg::Vector3D & Trk::TrackRoad::globalDirection ( ) const
inline

Get the global direction of the road.

Definition at line 143 of file TrackRoad.h.

144 {
145  return m_globalDir;
146 }

◆ globalPosition()

const Amg::Vector3D & Trk::TrackRoad::globalPosition ( ) const
inline

Get the global position of the road.

Definition at line 137 of file TrackRoad.h.

138 {
139  return m_globalPos;
140 }

◆ operator=() [1/2]

TrackRoad& Trk::TrackRoad::operator= ( const TrackRoad )
default

◆ operator=() [2/2]

TrackRoad& Trk::TrackRoad::operator= ( TrackRoad &&  )
default

◆ setType()

void Trk::TrackRoad::setType ( int  type)
inline

Set the type of the road.

Definition at line 173 of file TrackRoad.h.

174 {
175  m_type = type;
176 }

◆ setWeight()

void Trk::TrackRoad::setWeight ( double  weight)
inline

Set the weight of the road.

Definition at line 179 of file TrackRoad.h.

180 {
181  m_weight = weight;
182 }

◆ toString()

std::string Trk::TrackRoad::toString ( ) const

Get a readable form for debugging.

Definition at line 12 of file TrackRoad.cxx.

13 {
14  std::ostringstream oss;
15  oss << "pos"
16  //<< " eta=" << m_globalPos.eta()
17  << " phi=" << m_globalPos.phi() << " perp=" << m_globalPos.perp()
18  << " z=" << m_globalPos.z()
19  << " dir"
20  //<< " eta=" << m_globalDir.eta()
21  << " phi=" << m_globalDir.phi() << " z=" << m_globalDir.z()
22  << " deta=" << m_dDeltaEta << " dphi=" << m_dDeltaPhi
23  << " type=" << m_type << " weight=" << m_weight;
24  return oss.str();
25 }

◆ type()

int Trk::TrackRoad::type ( ) const
inline

Get the type of the road.

Definition at line 161 of file TrackRoad.h.

162 {
163  return m_type;
164 }

◆ weight()

double Trk::TrackRoad::weight ( ) const
inline

Get the weight of the road.

Definition at line 167 of file TrackRoad.h.

168 {
169  return m_weight;
170 }

Member Data Documentation

◆ m_dDeltaEta

double Trk::TrackRoad::m_dDeltaEta { 0 }
protected

The width of the road in the eta direction.

Definition at line 104 of file TrackRoad.h.

◆ m_dDeltaPhi

double Trk::TrackRoad::m_dDeltaPhi { 0 }
protected

The width of the road in the phi direction.

Definition at line 105 of file TrackRoad.h.

◆ m_globalDir

Amg::Vector3D Trk::TrackRoad::m_globalDir {}
protected

The global direction of the road.

Definition at line 103 of file TrackRoad.h.

◆ m_globalPos

Amg::Vector3D Trk::TrackRoad::m_globalPos {}
protected

The global position of the road.

Definition at line 102 of file TrackRoad.h.

◆ m_type

int Trk::TrackRoad::m_type { 0 }
protected

The type of the road (Unknown, RPCTGC, MDT, IDSeeded)

Definition at line 106 of file TrackRoad.h.

◆ m_weight

double Trk::TrackRoad::m_weight { 1.0 }
protected

The weight of the road (default is 1.0)

Definition at line 107 of file TrackRoad.h.


The documentation for this class was generated from the following files:
Trk::TrackRoad::MDT
@ MDT
Definition: TrackRoad.h:30
Trk::TrackRoad::deltaPhi
double deltaPhi() const
Get the width of the road in the phi direction.
Definition: TrackRoad.h:155
Trk::TrackRoad::toString
std::string toString() const
Get a readable form for debugging.
Definition: TrackRoad.cxx:12
Trk::TrackRoad::weight
double weight() const
Get the weight of the road.
Definition: TrackRoad.h:167
Trk::TrackRoad::m_weight
double m_weight
The weight of the road (default is 1.0)
Definition: TrackRoad.h:107
Trk::TrackRoad::Unknown
@ Unknown
Definition: TrackRoad.h:28
Trk::TrackRoad::m_dDeltaEta
double m_dDeltaEta
The width of the road in the eta direction.
Definition: TrackRoad.h:104
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
Trk::TrackRoad::globalDirection
const Amg::Vector3D & globalDirection() const
Get the global direction of the road.
Definition: TrackRoad.h:143
Trk::TrackRoad::type
int type() const
Get the type of the road.
Definition: TrackRoad.h:161
Trk::TrackRoad::globalPosition
const Amg::Vector3D & globalPosition() const
Get the global position of the road.
Definition: TrackRoad.h:137
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Trk::TrackRoad::RPCTGC
@ RPCTGC
Definition: TrackRoad.h:29
Trk::TrackRoad::IDSeeded
@ IDSeeded
Definition: TrackRoad.h:31
DEBUG
#define DEBUG
Definition: page_access.h:11
Trk::TrackRoad::m_globalDir
Amg::Vector3D m_globalDir
The global direction of the road.
Definition: TrackRoad.h:103
Trk::TrackRoad::m_type
int m_type
The type of the road (Unknown, RPCTGC, MDT, IDSeeded)
Definition: TrackRoad.h:106
Trk::TrackRoad::m_dDeltaPhi
double m_dDeltaPhi
The width of the road in the phi direction.
Definition: TrackRoad.h:105
Trk::TrackRoad::m_globalPos
Amg::Vector3D m_globalPos
The global position of the road.
Definition: TrackRoad.h:102
Trk::TrackRoad::deltaEta
double deltaEta() const
Get the width of the road in the eta direction.
Definition: TrackRoad.h:149