CMS 3D CMS Logo

Classes | Functions
TrackCategories.h File Reference
#include <ostream>
#include <vector>

Go to the source code of this file.

Classes

class  TrackCategories
 

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 66 of file TrackCategories.cc.

66  {
67  bool init = true;
68 
69  const TrackCategories::Flags &flags = classifier.flags();
70 
71  // Print out the classification for the track
72  for (std::size_t index = 0; index < flags.size(); ++index) {
73  if (flags[index]) {
74  if (init) {
76  init = false;
77  } else
78  os << "::" << TrackCategories::Names[index];
79  }
80  }
81  os << std::endl;
82 
83  return os;
84 }

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

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