CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 * 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 7 of file TrackCategories.h.

Member Typedef Documentation

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

Main types associated to the class.

Definition at line 73 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 13 of file TrackCategories.h.

14  {
15  Fake = 0,
17  Bad,
21  Bottom,
22  Charm,
23  Light,
24  Muon,
26  BWeakDecay,
27  CWeakDecay,
30  TauDecay,
31  KsDecay,
33  JpsiDecay,
34  XiDecay,
35  OmegaDecay,
66  Unknown
67  };

Constructor & Destructor Documentation

TrackCategories::TrackCategories ( )
inline

Void constructor.

Definition at line 76 of file TrackCategories.h.

References reset().

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

Member Function Documentation

const Flags& TrackCategories::flags ( void  ) const
inline

Returns flags with the category descriptions.

Definition at line 88 of file TrackCategories.h.

References flags_.

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

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

Reset the categories flags.

Definition at line 96 of file TrackCategories.h.

References flags_, and Unknown.

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

97  {
98  flags_ = Flags(Unknown + 1, false);
99  }
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_, cmsHarvester::index, and Unknown.

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

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 * TrackCategories::Names
static