ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
MuonTrackPerformanceAlg::TrackData Struct Reference

#include <MuonTrackPerformanceAlg.h>

Collaboration diagram for MuonTrackPerformanceAlg::TrackData:

Public Member Functions

 TrackData ()
 
 ~TrackData ()
 
 TrackData (const TrackData &data)
 
TrackDataoperator= (const TrackData &)=delete
 
bool isEndcapSLTrack () const
 
bool hasMissingChambers () const
 
bool hasWrongChambers () const
 
bool hasMissingLayers () const
 
bool hasWrongLayers () const
 
bool hasMissingLayersTrigger () const
 
bool hasWrongLayersTrigger () const
 
bool isMissingInner () const
 
bool hasWrongInner () const
 
bool allOk () const
 

Public Attributes

TrackRecordtruthTrack {}
 
int motherPdg {}
 
double chi2Ndof {}
 
Amg::Vector3DproductionVertex {}
 
Amg::Vector3DmomentumAtProduction {}
 
TruthTrajectorytruthTrajectory {}
 
Trk::PerigeetrackPars {}
 
Trk::TrackSummarytrackSummary {}
 
std::vector< ChamberDatamissingChambers
 
std::vector< ChamberDatawrongChambers
 
std::set< Muon::MuonStationIndex::StIndexlayers
 
std::set< Muon::MuonStationIndex::StIndexmissingLayers
 
std::set< Muon::MuonStationIndex::StIndexmissingCscLayers
 
std::set< Muon::MuonStationIndex::StIndexwrongLayers
 
std::set< Muon::MuonStationIndex::StIndexlayersTrigger
 
std::set< Muon::MuonStationIndex::StIndexmissingLayersTrigger
 
std::set< Muon::MuonStationIndex::StIndexwrongLayersTrigger
 

Detailed Description

Definition at line 57 of file MuonTrackPerformanceAlg.h.

Constructor & Destructor Documentation

◆ TrackData() [1/2]

MuonTrackPerformanceAlg::TrackData::TrackData ( )
inline

Definition at line 58 of file MuonTrackPerformanceAlg.h.

58  :
59  truthTrack(nullptr),
60  motherPdg(-1),
61  chi2Ndof(0.),
62  productionVertex(nullptr),
63  momentumAtProduction(nullptr),
64  truthTrajectory(nullptr),
65  trackPars(nullptr),
66  trackSummary(nullptr) {}

◆ ~TrackData()

MuonTrackPerformanceAlg::TrackData::~TrackData ( )
inline

Definition at line 68 of file MuonTrackPerformanceAlg.h.

68  {
69  delete trackPars;
70  delete trackSummary;
71  delete truthTrack;
72  delete truthTrajectory;
73  delete productionVertex;
74  delete momentumAtProduction;
75  }

◆ TrackData() [2/2]

MuonTrackPerformanceAlg::TrackData::TrackData ( const TrackData data)
inline

Definition at line 77 of file MuonTrackPerformanceAlg.h.

77  {
78  motherPdg = data.motherPdg;
79  chi2Ndof = data.chi2Ndof;
80  trackPars = data.trackPars ? new Trk::Perigee(*data.trackPars) : 0;
81  trackSummary = data.trackSummary ? new Trk::TrackSummary(*data.trackSummary) : 0;
82  truthTrack = data.truthTrack ? new TrackRecord(*data.truthTrack) : 0;
83  productionVertex = data.productionVertex ? new Amg::Vector3D(*data.productionVertex) : 0;
84  momentumAtProduction = data.momentumAtProduction ? new Amg::Vector3D(*data.momentumAtProduction) : 0;
85  }

Member Function Documentation

◆ allOk()

bool MuonTrackPerformanceAlg::TrackData::allOk ( ) const
inline

Definition at line 138 of file MuonTrackPerformanceAlg.h.

138  {
139  if (!missingChambers.empty() || !wrongChambers.empty()) return false;
140  if (!missingLayers.empty() || !wrongLayers.empty()) return false;
141  if (!missingLayersTrigger.empty() || !wrongLayersTrigger.empty()) return false;
142  return true;
143  }

◆ hasMissingChambers()

bool MuonTrackPerformanceAlg::TrackData::hasMissingChambers ( ) const
inline

Definition at line 116 of file MuonTrackPerformanceAlg.h.

116 { return !missingChambers.empty(); }

◆ hasMissingLayers()

bool MuonTrackPerformanceAlg::TrackData::hasMissingLayers ( ) const
inline

Definition at line 120 of file MuonTrackPerformanceAlg.h.

120 { return !missingLayers.empty(); }

◆ hasMissingLayersTrigger()

bool MuonTrackPerformanceAlg::TrackData::hasMissingLayersTrigger ( ) const
inline

Definition at line 124 of file MuonTrackPerformanceAlg.h.

124 { return !missingLayersTrigger.empty(); }

◆ hasWrongChambers()

bool MuonTrackPerformanceAlg::TrackData::hasWrongChambers ( ) const
inline

Definition at line 118 of file MuonTrackPerformanceAlg.h.

118 { return !wrongChambers.empty(); }

◆ hasWrongInner()

bool MuonTrackPerformanceAlg::TrackData::hasWrongInner ( ) const
inline

Definition at line 133 of file MuonTrackPerformanceAlg.h.

133  {
135  return false;
136  }

◆ hasWrongLayers()

bool MuonTrackPerformanceAlg::TrackData::hasWrongLayers ( ) const
inline

Definition at line 122 of file MuonTrackPerformanceAlg.h.

122 { return !wrongLayers.empty(); }

◆ hasWrongLayersTrigger()

bool MuonTrackPerformanceAlg::TrackData::hasWrongLayersTrigger ( ) const
inline

Definition at line 126 of file MuonTrackPerformanceAlg.h.

126 { return !wrongLayersTrigger.empty(); }

◆ isEndcapSLTrack()

bool MuonTrackPerformanceAlg::TrackData::isEndcapSLTrack ( ) const
inline

Definition at line 110 of file MuonTrackPerformanceAlg.h.

110  {
111  if (layers.size() == 1 && layers.count(Muon::MuonStationIndex::EM)) return true;
112  if (layers.size() == 2 && layers.count(Muon::MuonStationIndex::EM) && layers.count(Muon::MuonStationIndex::EO)) return true;
113  return false;
114  }

◆ isMissingInner()

bool MuonTrackPerformanceAlg::TrackData::isMissingInner ( ) const
inline

Definition at line 128 of file MuonTrackPerformanceAlg.h.

128  {
130  return false;
131  }

◆ operator=()

TrackData& MuonTrackPerformanceAlg::TrackData::operator= ( const TrackData )
delete

Member Data Documentation

◆ chi2Ndof

double MuonTrackPerformanceAlg::TrackData::chi2Ndof {}

Definition at line 91 of file MuonTrackPerformanceAlg.h.

◆ layers

std::set<Muon::MuonStationIndex::StIndex> MuonTrackPerformanceAlg::TrackData::layers

Definition at line 101 of file MuonTrackPerformanceAlg.h.

◆ layersTrigger

std::set<Muon::MuonStationIndex::StIndex> MuonTrackPerformanceAlg::TrackData::layersTrigger

Definition at line 106 of file MuonTrackPerformanceAlg.h.

◆ missingChambers

std::vector<ChamberData> MuonTrackPerformanceAlg::TrackData::missingChambers

Definition at line 98 of file MuonTrackPerformanceAlg.h.

◆ missingCscLayers

std::set<Muon::MuonStationIndex::StIndex> MuonTrackPerformanceAlg::TrackData::missingCscLayers

Definition at line 103 of file MuonTrackPerformanceAlg.h.

◆ missingLayers

std::set<Muon::MuonStationIndex::StIndex> MuonTrackPerformanceAlg::TrackData::missingLayers

Definition at line 102 of file MuonTrackPerformanceAlg.h.

◆ missingLayersTrigger

std::set<Muon::MuonStationIndex::StIndex> MuonTrackPerformanceAlg::TrackData::missingLayersTrigger

Definition at line 107 of file MuonTrackPerformanceAlg.h.

◆ momentumAtProduction

Amg::Vector3D* MuonTrackPerformanceAlg::TrackData::momentumAtProduction {}

Definition at line 93 of file MuonTrackPerformanceAlg.h.

◆ motherPdg

int MuonTrackPerformanceAlg::TrackData::motherPdg {}

Definition at line 90 of file MuonTrackPerformanceAlg.h.

◆ productionVertex

Amg::Vector3D* MuonTrackPerformanceAlg::TrackData::productionVertex {}

Definition at line 92 of file MuonTrackPerformanceAlg.h.

◆ trackPars

Trk::Perigee* MuonTrackPerformanceAlg::TrackData::trackPars {}

Definition at line 95 of file MuonTrackPerformanceAlg.h.

◆ trackSummary

Trk::TrackSummary* MuonTrackPerformanceAlg::TrackData::trackSummary {}

Definition at line 96 of file MuonTrackPerformanceAlg.h.

◆ truthTrack

TrackRecord* MuonTrackPerformanceAlg::TrackData::truthTrack {}

Definition at line 89 of file MuonTrackPerformanceAlg.h.

◆ truthTrajectory

TruthTrajectory* MuonTrackPerformanceAlg::TrackData::truthTrajectory {}

Definition at line 94 of file MuonTrackPerformanceAlg.h.

◆ wrongChambers

std::vector<ChamberData> MuonTrackPerformanceAlg::TrackData::wrongChambers

Definition at line 99 of file MuonTrackPerformanceAlg.h.

◆ wrongLayers

std::set<Muon::MuonStationIndex::StIndex> MuonTrackPerformanceAlg::TrackData::wrongLayers

Definition at line 104 of file MuonTrackPerformanceAlg.h.

◆ wrongLayersTrigger

std::set<Muon::MuonStationIndex::StIndex> MuonTrackPerformanceAlg::TrackData::wrongLayersTrigger

Definition at line 108 of file MuonTrackPerformanceAlg.h.


The documentation for this struct was generated from the following file:
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
Muon::MuonStationIndex::EO
@ EO
Definition: MuonStationIndex.h:26
MuonTrackPerformanceAlg::TrackData::missingLayers
std::set< Muon::MuonStationIndex::StIndex > missingLayers
Definition: MuonTrackPerformanceAlg.h:102
MuonTrackPerformanceAlg::TrackData::truthTrajectory
TruthTrajectory * truthTrajectory
Definition: MuonTrackPerformanceAlg.h:94
MuonTrackPerformanceAlg::TrackData::truthTrack
TrackRecord * truthTrack
Definition: MuonTrackPerformanceAlg.h:89
MuonTrackPerformanceAlg::TrackData::momentumAtProduction
Amg::Vector3D * momentumAtProduction
Definition: MuonTrackPerformanceAlg.h:93
Muon::MuonStationIndex::BI
@ BI
Definition: MuonStationIndex.h:25
Trk::Perigee
ParametersT< TrackParametersDim, Charged, PerigeeSurface > Perigee
Definition: Tracking/TrkEvent/TrkParameters/TrkParameters/TrackParameters.h:33
MuonTrackPerformanceAlg::TrackData::trackSummary
Trk::TrackSummary * trackSummary
Definition: MuonTrackPerformanceAlg.h:96
MuonTrackPerformanceAlg::TrackData::motherPdg
int motherPdg
Definition: MuonTrackPerformanceAlg.h:90
MuonTrackPerformanceAlg::TrackData::layers
std::set< Muon::MuonStationIndex::StIndex > layers
Definition: MuonTrackPerformanceAlg.h:101
MuonTrackPerformanceAlg::TrackData::wrongChambers
std::vector< ChamberData > wrongChambers
Definition: MuonTrackPerformanceAlg.h:99
Muon::MuonStationIndex::EI
@ EI
Definition: MuonStationIndex.h:26
MuonTrackPerformanceAlg::TrackData::missingChambers
std::vector< ChamberData > missingChambers
Definition: MuonTrackPerformanceAlg.h:98
MuonTrackPerformanceAlg::TrackData::chi2Ndof
double chi2Ndof
Definition: MuonTrackPerformanceAlg.h:91
MuonTrackPerformanceAlg::TrackData::trackPars
Trk::Perigee * trackPars
Definition: MuonTrackPerformanceAlg.h:95
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
TrackRecord
Definition: TrackRecord.h:12
MuonTrackPerformanceAlg::TrackData::productionVertex
Amg::Vector3D * productionVertex
Definition: MuonTrackPerformanceAlg.h:92
MuonTrackPerformanceAlg::TrackData::wrongLayersTrigger
std::set< Muon::MuonStationIndex::StIndex > wrongLayersTrigger
Definition: MuonTrackPerformanceAlg.h:108
MuonTrackPerformanceAlg::TrackData::wrongLayers
std::set< Muon::MuonStationIndex::StIndex > wrongLayers
Definition: MuonTrackPerformanceAlg.h:104
MuonTrackPerformanceAlg::TrackData::missingLayersTrigger
std::set< Muon::MuonStationIndex::StIndex > missingLayersTrigger
Definition: MuonTrackPerformanceAlg.h:107
xAOD::TrackSummary
TrackSummary_v1 TrackSummary
Definition: Event/xAOD/xAODTracking/xAODTracking/TrackSummary.h:10
Muon::MuonStationIndex::EM
@ EM
Definition: MuonStationIndex.h:26