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

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

Main types associated to the class.

Definition at line 59 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 14 of file VertexCategories.h.

15  {
16  Fake = 0,
19  BWeakDecay,
20  CWeakDecay,
21  TauDecay,
22  KsDecay,
24  JpsiDecay,
25  XiDecay,
26  OmegaDecay,
52  Unknown
53  };

Constructor & Destructor Documentation

VertexCategories::VertexCategories ( )
inline

Void constructor.

Definition at line 62 of file VertexCategories.h.

References reset().

63  {
64  reset();
65  }
void reset()
Reset the categories flags.

Member Function Documentation

const Flags& VertexCategories::flags ( ) const
inline

Returns flags with the category descriptions.

Definition at line 74 of file VertexCategories.h.

References flags_.

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

75  {
76  return flags_;
77  }
Flags flags_
Flag containers.
bool VertexCategories::is ( Category  category) const
inline

Returns track flag for a given category.

Definition at line 68 of file VertexCategories.h.

References python.rootplot.argparse::category, and flags_.

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

69  {
70  return flags_[category];
71  }
Flags flags_
Flag containers.
void VertexCategories::reset ( void  )
inlineprotected

Reset the categories flags.

Definition at line 82 of file VertexCategories.h.

References flags_, Unknown, and unknownVertex().

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

83  {
84  flags_ = Flags(Unknown + 1, false);
85  }
std::vector< bool > Flags
Main types associated to the class.
Flags flags_
Flag containers.
void VertexCategories::unknownVertex ( )
protected

Definition at line 46 of file VertexCategories.cc.

References flags_, and Unknown.

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

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

Member Data Documentation

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