CMS 3D CMS Logo

List of all members | 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 > VertexClassifierByProxy< reco::SecondaryVertexTagInfoCollection >

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

Protected Attributes

Flags flags_
 Flag containers. More...
 

Detailed Description

Definition at line 8 of file VertexCategories.h.

Member Typedef Documentation

◆ Flags

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

Main types associated to the class.

Definition at line 55 of file VertexCategories.h.

Member Enumeration Documentation

◆ Category

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 11 of file VertexCategories.h.

11  {
12  Fake = 0,
15  BWeakDecay,
16  CWeakDecay,
17  TauDecay,
18  KsDecay,
20  JpsiDecay,
21  XiDecay,
22  OmegaDecay,
48  Unknown
49  };

Constructor & Destructor Documentation

◆ VertexCategories()

VertexCategories::VertexCategories ( )
inline

Void constructor.

Definition at line 58 of file VertexCategories.h.

References reset().

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

Member Function Documentation

◆ flags()

const Flags& VertexCategories::flags ( ) const
inline

Returns flags with the category descriptions.

Definition at line 64 of file VertexCategories.h.

References flags_.

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

64 { return flags_; }
Flags flags_
Flag containers.

◆ is()

bool VertexCategories::is ( Category  category) const
inline

Returns track flag for a given category.

Definition at line 61 of file VertexCategories.h.

References taus_updatedMVAIds_cff::category, and flags_.

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

61 { return flags_[category]; }
Flags flags_
Flag containers.

◆ reset()

void VertexCategories::reset ( void  )
inlineprotected

Reset the categories flags.

Definition at line 68 of file VertexCategories.h.

References flags_, and Unknown.

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

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

◆ unknownVertex()

void VertexCategories::unknownVertex ( )
protected

Definition at line 42 of file VertexCategories.cc.

References flags_, and Unknown.

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

42  {
43  // Check for all flags down
44  for (std::size_t index = 0; index < flags_.size() - 1; ++index)
45  if (flags_[index])
46  return;
47  // If all of them are down then it is a unkown track.
48  flags_[Unknown] = true;
49 }
Flags flags_
Flag containers.

Member Data Documentation

◆ flags_

Flags VertexCategories::flags_
protected

◆ Names

const char *const VertexCategories::Names
static