CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
VertexCategories.h File Reference
#include <ostream>
#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 51 of file VertexCategories.cc.

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

51  {
52  bool init = true;
53 
54  const VertexCategories::Flags &flags = classifier.flags();
55 
56  // Print out the classification for the track
57  for (std::size_t index = 0; index < flags.size(); ++index) {
58  if (flags[index]) {
59  if (init) {
61  init = false;
62  } else
63  os << "::" << VertexCategories::Names[index];
64  }
65  }
66  os << std::endl;
67 
68  return os;
69 }
int init
Definition: HydjetWrapper.h:64
std::vector< bool > Flags
Main types associated to the class.
static const char *const Names[]
Name of the different categories.