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 TrackClassifierByProxy< Collection >

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

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

Main types associated to the class.

Definition at line 74 of file TrackCategories.h.

Member Enumeration Documentation

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 14 of file TrackCategories.h.

15  {
16  Fake = 0,
18  Bad,
22  Bottom,
23  Charm,
24  Light,
25  Muon,
27  BWeakDecay,
28  CWeakDecay,
31  TauDecay,
32  KsDecay,
34  JpsiDecay,
35  XiDecay,
36  OmegaDecay,
67  Unknown
68  };

Constructor & Destructor Documentation

TrackCategories::TrackCategories ( )
inline

Void constructor.

Definition at line 77 of file TrackCategories.h.

References reset().

78  {
79  reset();
80  }
void reset()
Reset the categories flags.

Member Function Documentation

const Flags& TrackCategories::flags ( ) const
inline

Returns flags with the category descriptions.

Definition at line 89 of file TrackCategories.h.

References flags_.

Referenced by BDHadronTrackMonitoringAnalyzer::analyze(), TrackClassifierByProxy< Collection >::evaluate(), and operator<<().

90  {
91  return flags_;
92  }
Flags flags_
Flag containers.
bool TrackCategories::is ( Category  category) const
inline
void TrackCategories::reset ( void  )
inlineprotected

Reset the categories flags.

Definition at line 97 of file TrackCategories.h.

References flags_, Unknown, and unknownTrack().

Referenced by TrackClassifierByProxy< Collection >::evaluate(), TrackClassifier::evaluate(), and TrackCategories().

98  {
99  flags_ = Flags(Unknown + 1, false);
100  }
std::vector< bool > Flags
Main types associated to the class.
Flags flags_
Flag containers.
void TrackCategories::unknownTrack ( )
protected

Definition at line 61 of file TrackCategories.cc.

References flags_, and Unknown.

Referenced by TrackClassifierByProxy< Collection >::evaluate(), TrackClassifier::evaluate(), and reset().

62 {
63  // Check for all flags down
64  for (std::size_t index = 0; index < flags_.size() - 1; ++index)
65  if (flags_[index]) return;
66  // If all of them are down then it is a unkown track.
67  flags_[Unknown] = true;
68 }
Flags flags_
Flag containers.

Member Data Documentation

Flags TrackCategories::flags_
protected
const char *const TrackCategories::Names
static