CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
VertexCategories.h File Reference
#include <vector>

Go to the source code of this file.

Classes

class  VertexCategories
 

Functions

std::ostream & operator<< (std::ostream &, VertexCategories const &)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  ,
VertexCategories const &   
)

Definition at line 56 of file VertexCategories.cc.

References VertexCategories::flags(), flags, getHLTprescales::index, init, and VertexCategories::Names.

57 {
58  bool init = true;
59 
60  const VertexCategories::Flags & flags = classifier.flags();
61 
62  // Print out the classification for the track
63  for (std::size_t index = 0; index < flags.size(); ++index)
64  {
65  if (flags[index])
66  {
67  if (init)
68  {
70  init = false;
71  }
72  else
73  os << "::" << VertexCategories::Names[index];
74  }
75  }
76  os << std::endl;
77 
78  return os;
79 }
int init
Definition: HydjetWrapper.h:63
std::vector< Variable::Flags > flags
Definition: MVATrainer.cc:135
std::vector< bool > Flags
Main types associated to the class.
static const char * Names[]
Name of the different categories.