![]() |
![]() |
Enumerations | |
enum | VertexType { RecoVertex = 0, PseudoVertex = 1, NoVertex = 2, UndefVertex = 99 } |
Functions | |
std::string | name (VertexType) |
VertexType | type (const std::string &) |
Type of secondary vertex found in jet:
Definition at line 18 of file VertexTypes.h.
{RecoVertex=0, PseudoVertex=1, NoVertex=2, UndefVertex=99 };
std::string reco::btag::Vertices::name | ( | VertexType | v | ) |
convenience functions that return descriptive strings, rather than integral types
Definition at line 8 of file VertexTypes.cc.
References NoVertex, PseudoVertex, and RecoVertex.
{ switch (v) { case NoVertex: return "NoVertex"; case PseudoVertex: return "PseudoVertex"; case RecoVertex: return "RecoVertex"; default: return "???"; } }
btag::Vertices::VertexType reco::btag::Vertices::type | ( | const std::string & | s | ) |
Definition at line 23 of file VertexTypes.cc.
References i, NoVertex, PseudoVertex, RecoVertex, and UndefVertex.
{ if ( s=="NoVertex" || s=="No" ) return NoVertex; if ( s=="PseudoVertex" || s=="Pseudo" ) return PseudoVertex; if ( s=="RecoVertex" || s=="Reco" ) return RecoVertex; int i = atoi ( s.c_str() ); if ( i > 0 ) return ( VertexType ) (i); if ( ( i==0 ) && s == "0" ) return ( VertexType ) (i); return UndefVertex; }