CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
TrackCategories Class Reference

#include <TrackCategories.h>

Inheritance diagram for TrackCategories:
TrackClassifier

Public Types

enum  Category {
  Fake = 0, Reconstructed = Fake, Bad, BadInnerHits,
  SharedInnerHits, SignalEvent, Bottom, Charm,
  Light, Muon, TrackerSimHits, BWeakDecay,
  CWeakDecay, ChargePionDecay, ChargeKaonDecay, TauDecay,
  KsDecay, LambdaDecay, JpsiDecay, XiDecay,
  OmegaDecay, SigmaPlusDecay, SigmaMinusDecay, LongLivedDecay,
  KnownProcess, UndefinedProcess, UnknownProcess, PrimaryProcess,
  HadronicProcess, DecayProcess, ComptonProcess, AnnihilationProcess,
  EIoniProcess, HIoniProcess, MuIoniProcess, PhotonProcess,
  MuPairProdProcess, ConversionsProcess, EBremProcess, SynchrotronRadiationProcess,
  MuBremProcess, MuNuclProcess, FromBWeakDecayMuon, FromCWeakDecayMuon,
  DecayOnFlightMuon, FromChargePionMuon, FromChargeKaonMuon, PrimaryVertex,
  SecondaryVertex, TertiaryVertex, TierciaryVertex = TertiaryVertex, Unknown
}
 Categories available to vertex. More...
 
typedef std::vector< bool > Flags
 Main types associated to the class. More...
 

Public Member Functions

const Flagsflags () const
 Returns flags with the category descriptions. More...
 
bool is (Category category) const
 Returns track flag for a given category. More...
 
 TrackCategories ()
 Void constructor. More...
 

Static Public Attributes

static const char *const Names []
 Name of the different categories. More...
 

Protected Member Functions

void reset ()
 Reset the categories flags. More...
 
void unknownTrack ()
 

Protected Attributes

Flags flags_
 Flag containers. More...
 

Detailed Description

Definition at line 8 of file TrackCategories.h.

Member Typedef Documentation

◆ Flags

typedef std::vector<bool> TrackCategories::Flags

Main types associated to the class.

Definition at line 70 of file TrackCategories.h.

Member Enumeration Documentation

◆ Category

Categories available to vertex.

Enumerator
Fake 
Reconstructed 
Bad 
BadInnerHits 
SharedInnerHits 
SignalEvent 
Bottom 
Charm 
Light 
Muon 
TrackerSimHits 
BWeakDecay 
CWeakDecay 
ChargePionDecay 
ChargeKaonDecay 
TauDecay 
KsDecay 
LambdaDecay 
JpsiDecay 
XiDecay 
OmegaDecay 
SigmaPlusDecay 
SigmaMinusDecay 
LongLivedDecay 
KnownProcess 
UndefinedProcess 
UnknownProcess 
PrimaryProcess 
HadronicProcess 
DecayProcess 
ComptonProcess 
AnnihilationProcess 
EIoniProcess 
HIoniProcess 
MuIoniProcess 
PhotonProcess 
MuPairProdProcess 
ConversionsProcess 
EBremProcess 
SynchrotronRadiationProcess 
MuBremProcess 
MuNuclProcess 
FromBWeakDecayMuon 
FromCWeakDecayMuon 
DecayOnFlightMuon 
FromChargePionMuon 
FromChargeKaonMuon 
PrimaryVertex 
SecondaryVertex 
TertiaryVertex 
TierciaryVertex 
Unknown 

Definition at line 11 of file TrackCategories.h.

Constructor & Destructor Documentation

◆ TrackCategories()

TrackCategories::TrackCategories ( )
inline

Void constructor.

Definition at line 73 of file TrackCategories.h.

73 { reset(); }

References reset().

Member Function Documentation

◆ flags()

const Flags& TrackCategories::flags ( ) const
inline

Returns flags with the category descriptions.

Definition at line 79 of file TrackCategories.h.

79 { return flags_; }

References flags_.

Referenced by BDHadronTrackMonitoringAnalyzer::analyze(), and operator<<().

◆ is()

bool TrackCategories::is ( Category  category) const
inline

◆ reset()

void TrackCategories::reset ( void  )
inlineprotected

Reset the categories flags.

Definition at line 83 of file TrackCategories.h.

83 { flags_ = Flags(Unknown + 1, false); }

References flags_, and Unknown.

Referenced by TrackClassifier::evaluate(), and TrackCategories().

◆ unknownTrack()

void TrackCategories::unknownTrack ( )
protected

Definition at line 57 of file TrackCategories.cc.

57  {
58  // Check for all flags down
59  for (std::size_t index = 0; index < flags_.size() - 1; ++index)
60  if (flags_[index])
61  return;
62  // If all of them are down then it is a unkown track.
63  flags_[Unknown] = true;
64 }

References flags_, and Unknown.

Referenced by TrackClassifier::evaluate().

Member Data Documentation

◆ flags_

Flags TrackCategories::flags_
protected

◆ Names

const char *const TrackCategories::Names
static
TrackCategories::MuPairProdProcess
Definition: TrackCategories.h:48
taus_updatedMVAIds_cff.category
category
Definition: taus_updatedMVAIds_cff.py:31
TrackCategories::KnownProcess
Definition: TrackCategories.h:36
TrackCategories::FromBWeakDecayMuon
Definition: TrackCategories.h:54
TrackCategories::MuNuclProcess
Definition: TrackCategories.h:53
TrackCategories::FromCWeakDecayMuon
Definition: TrackCategories.h:55
TrackCategories::LambdaDecay
Definition: TrackCategories.h:29
TrackCategories::JpsiDecay
Definition: TrackCategories.h:30
TrackCategories::Unknown
Definition: TrackCategories.h:63
TrackCategories::OmegaDecay
Definition: TrackCategories.h:32
TrackCategories::flags_
Flags flags_
Flag containers.
Definition: TrackCategories.h:89
TrackCategories::SigmaMinusDecay
Definition: TrackCategories.h:34
TrackCategories::TrackerSimHits
Definition: TrackCategories.h:22
TrackCategories::ComptonProcess
Definition: TrackCategories.h:42
TrackCategories::PhotonProcess
Definition: TrackCategories.h:47
TrackCategories::HIoniProcess
Definition: TrackCategories.h:45
TrackCategories::PrimaryProcess
Definition: TrackCategories.h:39
TrackCategories::SynchrotronRadiationProcess
Definition: TrackCategories.h:51
TrackCategories::TauDecay
Definition: TrackCategories.h:27
TrackCategories::ConversionsProcess
Definition: TrackCategories.h:49
TrackCategories::TertiaryVertex
Definition: TrackCategories.h:61
TrackCategories::Charm
Definition: TrackCategories.h:19
TrackCategories::Light
Definition: TrackCategories.h:20
TrackCategories::PrimaryVertex
Definition: TrackCategories.h:59
TrackCategories::MuIoniProcess
Definition: TrackCategories.h:46
TrackCategories::Fake
Definition: TrackCategories.h:12
TrackCategories::Reconstructed
Definition: TrackCategories.h:13
TrackCategories::Bottom
Definition: TrackCategories.h:18
TrackCategories::SharedInnerHits
Definition: TrackCategories.h:16
TrackCategories::Bad
Definition: TrackCategories.h:14
TrackCategories::SecondaryVertex
Definition: TrackCategories.h:60
TrackCategories::EIoniProcess
Definition: TrackCategories.h:44
TrackCategories::FromChargeKaonMuon
Definition: TrackCategories.h:58
TrackCategories::BWeakDecay
Definition: TrackCategories.h:23
TrackCategories::ChargePionDecay
Definition: TrackCategories.h:25
TrackCategories::EBremProcess
Definition: TrackCategories.h:50
TrackCategories::SigmaPlusDecay
Definition: TrackCategories.h:33
TrackCategories::KsDecay
Definition: TrackCategories.h:28
TrackCategories::reset
void reset()
Reset the categories flags.
Definition: TrackCategories.h:83
TrackCategories::UnknownProcess
Definition: TrackCategories.h:38
TrackCategories::DecayOnFlightMuon
Definition: TrackCategories.h:56
TrackCategories::DecayProcess
Definition: TrackCategories.h:41
TrackCategories::BadInnerHits
Definition: TrackCategories.h:15
TrackCategories::XiDecay
Definition: TrackCategories.h:31
TrackCategories::ChargeKaonDecay
Definition: TrackCategories.h:26
TrackCategories::TierciaryVertex
Definition: TrackCategories.h:62
TrackCategories::LongLivedDecay
Definition: TrackCategories.h:35
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
TrackCategories::FromChargePionMuon
Definition: TrackCategories.h:57
TrackCategories::CWeakDecay
Definition: TrackCategories.h:24
TrackCategories::Muon
Definition: TrackCategories.h:21
TrackCategories::AnnihilationProcess
Definition: TrackCategories.h:43
TrackCategories::Flags
std::vector< bool > Flags
Main types associated to the class.
Definition: TrackCategories.h:70
TrackCategories::MuBremProcess
Definition: TrackCategories.h:52
TrackCategories::UndefinedProcess
Definition: TrackCategories.h:37
TrackCategories::HadronicProcess
Definition: TrackCategories.h:40
TrackCategories::SignalEvent
Definition: TrackCategories.h:17