xAOD::Type Namespace Reference
Enumerations |
enum | ObjectType {
Other = 0,
CaloCluster = 1,
Jet = 2,
ParticleFlow = 3,
TrackParticle = 4,
NeutralParticle = 5,
Electron = 6,
Photon = 7,
Muon = 8,
Tau = 9,
Vertex = 101,
BTag = 102,
TruthParticle = 201,
TruthVertex = 202,
TruthEvent = 203,
TruthPileupEvent = 204,
L2StandAloneMuon = 501,
L2IsoMuon = 502,
L2CombinedMuon = 503,
TrigElectron = 504,
TrigPhoton = 505,
TrigCaloCluster = 506,
TrigEMCluster = 507,
EventInfo = 1001,
EventFormat = 1002,
Particle = 1101,
CompositeParticle = 1102
} |
Detailed Description
Namespace for the xAOD object types
The reason for introducing an extra namespace like this is so the users will write things like if( mypart->type() == xAOD::Type::Muon ) {...}
instead of using xAOD::MuonType
or something similar.
Enumeration Type Documentation
Type of objects that have a representation in the xAOD EDM
xAOD classes identify themselves by all of them providing a function with the signature:
xAOD::Type::ObjectType type() const;
This can be used to easily identify what sort of object some generic code is dealing with, avoiding doing a lot of dynamic_cast
-s instead.
Note that Doxygen doesn't allow to group enumeration variables together like it does for members of a class, that's why the grouping comments are not created according to the Doxygen rules.
- Enumerator:
Other |
An object not falling into any of the other categories.
|
CaloCluster |
The object is a calorimeter cluster.
|
Jet |
The object is a jet.
|
ParticleFlow |
The object is a particle-flow object.
|
TrackParticle |
The object is a charged track particle.
|
NeutralParticle |
The object is a neutral particle.
|
Electron |
The object is an electron.
|
Photon |
The object is a photon.
|
Muon |
The object is a muon.
|
Tau |
The object is a tau (jet).
|
Vertex |
The object is a vertex.
|
BTag |
The object is a b-tagging object.
|
TruthParticle |
The object is a truth particle.
|
TruthVertex |
The object is a truth vertex.
|
TruthEvent |
The object is a truth event.
|
TruthPileupEvent |
The object is a truth pileup event.
|
L2StandAloneMuon |
The object is a stand-alone LVL2 muon.
|
L2IsoMuon |
The object is a LVL2 isolated muon.
|
L2CombinedMuon |
The object is a combined LVL2 muon.
|
TrigElectron |
The object is a LVL2 electron.
|
TrigPhoton |
The object is a LVL2 photon.
|
TrigCaloCluster |
The object is a LVL2 calorimeter cluster.
|
TrigEMCluster |
The object is a LVL2 EM cluster.
|
EventInfo |
The object is an event information one.
|
EventFormat |
The object is an event format one.
|
Particle |
Generic particle object, for analysis.
|
CompositeParticle |
Particle composed of other particles.
|