CMS 3D CMS Logo

Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/SimTracker/TrackHistory/src/VertexCategories.cc File Reference

#include <iostream>
#include "SimTracker/TrackHistory/interface/VertexCategories.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 56 of file VertexCategories.cc.

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

{
    bool init = true;

    const VertexCategories::Flags & flags = classifier.flags();

    // Print out the classification for the track
    for (std::size_t index = 0; index < flags.size(); ++index)
    {
        if (flags[index])
        {
            if (init)
            {
                os << VertexCategories::Names[index];
                init = false;
            }
            else
                os << "::" << VertexCategories::Names[index];
        }
    }
    os << std::endl;

    return os;
}