CMS 3D CMS Logo

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.

{
  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;
}