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
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 * 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 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.

14  {
15  Fake = 0,
18  BWeakDecay,
19  CWeakDecay,
20  TauDecay,
21  KsDecay,
23  JpsiDecay,
24  XiDecay,
25  OmegaDecay,
51  Unknown
52  };

Constructor & Destructor Documentation

VertexCategories::VertexCategories ( )
inline

Void constructor.

Definition at line 61 of file VertexCategories.h.

References reset().

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

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

74  {
75  return flags_;
76  }
Flags flags_
Flag containers.
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 VertexHistoryAnalyzer::analyze(), recoBSVTagInfoValidationAnalyzer::analyze(), and SVTagInfoValidationAnalyzer::analyze().

68  {
69  return flags_[category];
70  }
Flags flags_
Flag containers.
static const std::string category("Muon|RecoMuon|L3MuonCandidateProducerFromMuons")
void VertexCategories::reset ( void  )
inlineprotected

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

82  {
83  flags_ = Flags(Unknown + 1, false);
84  }
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_, getHLTprescales::index, and Unknown.

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

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