CMS 3D CMS Logo

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 >

List of all members.

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.

Public Member Functions

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

Static Public Attributes

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

Protected Member Functions

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

Protected Attributes

Flags flags_
 Flag containers.

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.


Constructor & Destructor Documentation

TrackCategories::TrackCategories ( ) [inline]

Void constructor.

Definition at line 76 of file TrackCategories.h.

References reset().

    {
        reset();
    }

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<<().

    {
        return flags_;
    }
bool TrackCategories::is ( Category  category) const [inline]
void TrackCategories::reset ( void  ) [inline, protected]

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().

    {
        flags_ = Flags(Unknown + 1, false);
    }
void TrackCategories::unknownTrack ( ) [protected]

Definition at line 61 of file TrackCategories.cc.

References flags_, getHLTprescales::index, and Unknown.

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

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

Member Data Documentation

const char * TrackCategories::Names [static]