CMS 3D CMS Logo

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

Go to the source code of this file.

Classes

class  CSCComparatorDigi
 

Functions

std::ostream & operator<< (std::ostream &o, const CSCComparatorDigi &digi)
 Output operator. More...
 

Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const CSCComparatorDigi digi 
)

Output operator.

Definition at line 112 of file CSCComparatorDigi.cc.

References filterCSVwithJSON::copy, CSCComparatorDigi::getComparator(), CSCComparatorDigi::getStrip(), CSCComparatorDigi::getTimeBin(), CSCComparatorDigi::getTimeBinsOn(), and class-composition::o.

112  {
113  o << "CSCComparatorDigi Strip:" << digi.getStrip() << ", Comparator: " << digi.getComparator()
114  << ", First Time Bin On: " << digi.getTimeBin() << ", Time Bins On: ";
115  std::vector<int> tbins = digi.getTimeBinsOn();
116  std::copy(tbins.begin(), tbins.end(), std::ostream_iterator<int>(o, " "));
117  return o;
118 }
int getStrip() const
Get the strip number. Counts from 1.
int getComparator() const
Get Comparator readings. Can be 0 or 1.
int getTimeBin() const
Return bin number of first time bin which is ON. Counts from 0.
std::vector< int > getTimeBinsOn() const