ATLAS Offline Software
Public Types | Static Public Member Functions | Private Member Functions | List of all members
TrackType Class Reference

#include <TrackTypes.h>

Collaboration diagram for TrackType:

Public Types

enum  Type {
  Unknown, TrkTrack, TrackParticle, FatrasTruthTrack,
  RefittedTrack, TrkSegment, LV2Track, TruthTrack,
  SimulationTrack, AnalysisObject, xAOD, ACTS
}
 

Static Public Member Functions

static qint32 typeToInt (const Type &)
 
static Type intToType (const qint32 &)
 
static QString typeToString (const Type &)
 
static Type stringToType (const QString &str, bool &status)
 
static QString typeToSectionHeader (const Type &)
 
static Type sectionHeaderToType (const QString &, bool &status)
 
static QString typeToSectionHeaderToolTip (const Type &)
 

Private Member Functions

 TrackType ()
 

Detailed Description

Definition at line 10 of file TrackTypes.h.

Member Enumeration Documentation

◆ Type

Enumerator
Unknown 
TrkTrack 
TrackParticle 
FatrasTruthTrack 
RefittedTrack 
TrkSegment 
LV2Track 
TruthTrack 
SimulationTrack 
AnalysisObject 
xAOD 
ACTS 

Definition at line 13 of file TrackTypes.h.

Constructor & Destructor Documentation

◆ TrackType()

TrackType::TrackType ( )
private

Member Function Documentation

◆ intToType()

TrackType::Type TrackType::intToType ( const qint32 &  i)
static

Definition at line 28 of file TrackTypes.cxx.

29 {
30  switch (i) {
31  case 0: return TrkTrack;
32  case 1: return TrackParticle;
33  case 2: return LV2Track;
34  case 3: return TruthTrack;
35  case 4: return FatrasTruthTrack;
36  case 5: return TrkSegment;
37  case 6: return RefittedTrack;
38  case 7: return AnalysisObject;
39  case 8: return SimulationTrack;
40  case 9: return xAOD;
41  case 10: return ACTS;
42  case 11: return Unknown;
43  default: return Unknown;
44  }
45 }

◆ sectionHeaderToType()

TrackType::Type TrackType::sectionHeaderToType ( const QString &  str,
bool &  status 
)
static

Definition at line 108 of file TrackTypes.cxx.

109 {
110  status = true;
111  if (str=="Detailed Tracks") return TrkTrack;
112  if (str=="Track Particles") return TrackParticle;
113  if (str=="Trigger Tracks") return LV2Track;
114  if (str=="Truth Tracks") return TruthTrack;
115  if (str=="Fatras Truth Tracks") return FatrasTruthTrack;
116  if (str=="Refitted Tracks") return RefittedTrack;
117  if (str=="Track Segments") return TrkSegment;
118  if (str=="Analysis Objects") return AnalysisObject;
119  if (str=="Forward Region Simulation Tracks") return SimulationTrack;
120  if (str=="xAOD") return xAOD;
121  if (str=="ACTS") return ACTS;
122  if (str=="Unknown") return Unknown;
123  status = false;
124  return Unknown;
125 }

◆ stringToType()

TrackType::Type TrackType::stringToType ( const QString &  str,
bool &  status 
)
static

Definition at line 68 of file TrackTypes.cxx.

69 {
70  status = true;
71  if (str=="TrkTrack") return TrkTrack;
72  if (str=="TrackParticle") return TrackParticle;
73  if (str=="LV2Track") return LV2Track;
74  if (str=="TruthTrack") return TruthTrack;
75  if (str=="FatrasTruthTrack") return FatrasTruthTrack;
76  if (str=="RefittedTrack") return RefittedTrack;
77  if (str=="TrkSegment") return TrkSegment;
78  if (str=="AnalysisObject") return AnalysisObject;
79  if (str=="SimulationTrack") return SimulationTrack;
80  if (str=="xAOD") return xAOD;
81  if (str=="ACTS") return ACTS;
82  if (str=="Unknown") return Unknown;
83  status = false;
84  return Unknown;
85 }

◆ typeToInt()

qint32 TrackType::typeToInt ( const Type t)
static

Definition at line 8 of file TrackTypes.cxx.

9 {
10  switch (t) {
11  case TrkTrack: return 0;
12  case TrackParticle: return 1;
13  case LV2Track: return 2;
14  case TruthTrack: return 3;
15  case FatrasTruthTrack: return 4;
16  case TrkSegment: return 5;
17  case RefittedTrack: return 6;
18  case AnalysisObject: return 7;
19  case SimulationTrack: return 8;
20  case xAOD: return 9;
21  case ACTS: return 10;
22  case Unknown: return 11;
23  default: return -1;
24  }
25 }

◆ typeToSectionHeader()

QString TrackType::typeToSectionHeader ( const Type t)
static

Definition at line 88 of file TrackTypes.cxx.

89 {
90  switch (t) {
91  case TrkTrack: return "Detailed Tracks";
92  case TrackParticle: return "Track Particles";
93  case LV2Track: return "Trigger Tracks";
94  case TruthTrack: return "Truth Tracks";
95  case FatrasTruthTrack: return "Fatras Truth Tracks";
96  case RefittedTrack: return "Refitted Tracks";
97  case TrkSegment: return "Track Segments";
98  case AnalysisObject: return "Analysis Objects";
99  case SimulationTrack: return "Forward Region Simulation Tracks";
100  case xAOD: return "xAOD";
101  case ACTS: return "ACTS";
102  case Unknown: return "Unknown";
103  default: return "Error";
104  }
105 }

◆ typeToSectionHeaderToolTip()

QString TrackType::typeToSectionHeaderToolTip ( const Type t)
static

Definition at line 128 of file TrackTypes.cxx.

129 {
130  switch (t) {
131  case TrkTrack: return "Trk::Track's (detailed track objects as output by reconstruction)";
132  case TrackParticle: return "TrackParticle's (summarized track objects, typically found in AOD's)";
133  case LV2Track: return "LVL2 Trigger Tracks (tracks as found by the second level trigger algorithms)";
134  case TruthTrack: return "Truth Tracks (truth tracks, determined by combining the HepMC event record with simulation hits)";
135  case FatrasTruthTrack: return "Fatras Truth Tracks (detailed track objects, but constructed directly by Fatras rather than being the output of reconstruction)";
136  case RefittedTrack: return "Trk::Track's resulting from interactive refits within VP1";
137  case TrkSegment: return "Track Segments (track parts found in a single muon chamber or ID part. These are usually input to higher level global track reconstruction algorithms)";
138  case AnalysisObject: return "AOD Analysis Objects (high level reconstruction objects, such as Muons, egamma etc)";
139  case SimulationTrack: return "Forward Region Simulation Tracks";
140  case xAOD: return "xAOD Analysis Objects (high level reconstruction objects, such as Muons, egamma etc)";
141  case ACTS: return "ACTS Tracks (under development for Run 4)";
142  case Unknown: return "Unknown";
143  default: return "Error";
144  }
145 }

◆ typeToString()

QString TrackType::typeToString ( const Type t)
static

Definition at line 48 of file TrackTypes.cxx.

49 {
50  switch (t) {
51  case TrkTrack: return "TrkTrack";
52  case TrackParticle: return "TrackParticle";
53  case LV2Track: return "LV2Track";
54  case TruthTrack: return "TruthTrack";
55  case FatrasTruthTrack: return "FatrasTruthTrack";
56  case RefittedTrack: return "RefittedTrack";
57  case TrkSegment: return "TrkSegment";
58  case AnalysisObject: return "AnalysisObject";
59  case SimulationTrack: return "SimulationTrack";
60  case xAOD: return "xAOD";
61  case ACTS: return "ACTS";
62  case Unknown: return "Unknown";
63  default: return "ERROR";
64  }
65 }

The documentation for this class was generated from the following files:
TrackType::AnalysisObject
@ AnalysisObject
Definition: TrackTypes.h:14
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TrackType::xAOD
@ xAOD
Definition: TrackTypes.h:14
TrackType::LV2Track
@ LV2Track
Definition: TrackTypes.h:14
lumiFormat.i
int i
Definition: lumiFormat.py:85
TrackType::Unknown
@ Unknown
Definition: TrackTypes.h:14
TrackType::SimulationTrack
@ SimulationTrack
Definition: TrackTypes.h:14
TrackType::TrkTrack
@ TrkTrack
Definition: TrackTypes.h:14
TrackType::TrackParticle
@ TrackParticle
Definition: TrackTypes.h:14
TrackType::FatrasTruthTrack
@ FatrasTruthTrack
Definition: TrackTypes.h:14
TrackType::TrkSegment
@ TrkSegment
Definition: TrackTypes.h:14
TrackType::ACTS
@ ACTS
Definition: TrackTypes.h:14
TrackType::TruthTrack
@ TruthTrack
Definition: TrackTypes.h:14
str
Definition: BTagTrackIpAccessor.cxx:11
merge.status
status
Definition: merge.py:17
TrackType::RefittedTrack
@ RefittedTrack
Definition: TrackTypes.h:14