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.

11  {
12  Fake = 0,
14  Bad,
18  Bottom,
19  Charm,
20  Light,
21  Muon,
23  BWeakDecay,
24  CWeakDecay,
27  TauDecay,
28  KsDecay,
30  JpsiDecay,
31  XiDecay,
32  OmegaDecay,
63  Unknown
64  };

Constructor & Destructor Documentation

◆ TrackCategories()

TrackCategories::TrackCategories ( )
inline

Void constructor.

Definition at line 73 of file TrackCategories.h.

References reset().

73 { reset(); }
void reset()
Reset the categories flags.

Member Function Documentation

◆ flags()

const Flags& TrackCategories::flags ( ) const
inline

Returns flags with the category descriptions.

Definition at line 79 of file TrackCategories.h.

References flags_.

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

79 { return flags_; }
Flags flags_
Flag containers.

◆ 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.

References flags_, and Unknown.

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

83 { flags_ = Flags(Unknown + 1, false); }
std::vector< bool > Flags
Main types associated to the class.
Flags flags_
Flag containers.

◆ unknownTrack()

void TrackCategories::unknownTrack ( )
protected

Definition at line 57 of file TrackCategories.cc.

References flags_, and Unknown.

Referenced by TrackClassifier::evaluate().

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 }
Flags flags_
Flag containers.

Member Data Documentation

◆ flags_

Flags TrackCategories::flags_
protected

◆ Names

const char *const TrackCategories::Names
static