CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Enumerations | Functions
reco::btag::Vertices Namespace Reference

Enumerations

enum  VertexType { RecoVertex =0, PseudoVertex =1, NoVertex =2, UndefVertex =99 }
 

Functions

std::string name (VertexType)
 
VertexType type (const std::string &)
 

Enumeration Type Documentation

Type of secondary vertex found in jet:

  • RecoVertex : a secondary vertex has been fitted from a selection of tracks
  • PseudoVertex : no RecoVertex has been found but tracks with significant impact parameter could be combined to a "pseudo" vertex
  • NoVertex : neither of the above attemps were successfull
  • NotDefined : if anything went wrong, set to this value
Enumerator
RecoVertex 
PseudoVertex 
NoVertex 
UndefVertex 

Definition at line 18 of file VertexTypes.h.

Function Documentation

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.

9 {
10  switch (v)
11  {
12  case NoVertex:
13  return "NoVertex";
14  case PseudoVertex:
15  return "PseudoVertex";
16  case RecoVertex:
17  return "RecoVertex";
18  default:
19  return "???";
20  }
21 }
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.

24 {
25  if ( s=="NoVertex" || s=="No" ) return NoVertex;
26  if ( s=="PseudoVertex" || s=="Pseudo" ) return PseudoVertex;
27  if ( s=="RecoVertex" || s=="Reco" ) return RecoVertex;
28 
29  int i = atoi ( s.c_str() );
30  if ( i > 0 ) return ( VertexType ) (i);
31  if ( ( i==0 ) && s == "0" ) return ( VertexType ) (i);
32 
33  return UndefVertex;
34 }
int i
Definition: DBlmapReader.cc:9