CMS 3D CMS Logo

Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes

VertexCategories Class Reference

#include <VertexCategories.h>

Inheritance diagram for VertexCategories:
VertexClassifier VertexClassifierByProxy< Collection >

List of all members.

Public Types

enum  Category {
  Fake = 0, Reconstructed = Fake, SignalEvent, BWeakDecay,
  CWeakDecay, 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,
  PrimaryVertex, SecondaryVertex, TertiaryVertex, TierciaryVertex = TertiaryVertex,
  Unknown
}
 

Categories available to vertexes.

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.
 VertexCategories ()
 Void constructor.

Static Public Attributes

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

Protected Member Functions

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

Protected Attributes

Flags flags_
 Flag containers.

Detailed Description

Definition at line 7 of file VertexCategories.h.


Member Typedef Documentation

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

Main types associated to the class.

Definition at line 58 of file VertexCategories.h.


Member Enumeration Documentation

Categories available to vertexes.

Enumerator:
Fake 
Reconstructed 
SignalEvent 
BWeakDecay 
CWeakDecay 
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 
PrimaryVertex 
SecondaryVertex 
TertiaryVertex 
TierciaryVertex 
Unknown 

Definition at line 13 of file VertexCategories.h.


Constructor & Destructor Documentation

VertexCategories::VertexCategories ( ) [inline]

Void constructor.

Definition at line 61 of file VertexCategories.h.

References reset().

    {
        reset();
    }

Member Function Documentation

const Flags& VertexCategories::flags ( void  ) const [inline]

Returns flags with the category descriptions.

Definition at line 73 of file VertexCategories.h.

References flags_.

Referenced by VertexClassifierByProxy< reco::SecondaryVertexTagInfoCollection >::evaluate(), and operator<<().

    {
        return flags_;
    }
bool VertexCategories::is ( Category  category) const [inline]

Returns track flag for a given category.

Definition at line 67 of file VertexCategories.h.

References category(), and flags_.

Referenced by recoBSVTagInfoValidationAnalyzer::analyze(), SVTagInfoValidationAnalyzer::analyze(), and VertexHistoryAnalyzer::analyze().

    {
        return flags_[category];
    }
void VertexCategories::reset ( void  ) [inline, protected]

Reset the categories flags.

Definition at line 81 of file VertexCategories.h.

References flags_, and Unknown.

Referenced by VertexClassifier::evaluate(), VertexClassifierByProxy< reco::SecondaryVertexTagInfoCollection >::evaluate(), and VertexCategories().

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

Definition at line 46 of file VertexCategories.cc.

References flags_, getHLTprescales::index, and Unknown.

Referenced by VertexClassifier::evaluate(), and VertexClassifierByProxy< reco::SecondaryVertexTagInfoCollection >::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 * VertexCategories::Names [static]