CMS 3D CMS Logo

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

◆ operator<<()

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

Definition at line 51 of file VertexCategories.cc.

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 }

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

VertexCategories::Names
static const char *const Names[]
Name of the different categories.
Definition: VertexCategories.h:52
init
Definition: init.py:1
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
HLT_FULL_cff.flags
flags
Definition: HLT_FULL_cff.py:13150
VertexCategories::Flags
std::vector< bool > Flags
Main types associated to the class.
Definition: VertexCategories.h:55