CMS 3D CMS Logo

Functions
CSCComparatorDigi.cc File Reference
#include "DataFormats/CSCDigi/interface/CSCComparatorDigi.h"
#include "DataFormats/CSCDigi/interface/CSCConstants.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iostream>
#include <algorithm>
#include <iterator>

Go to the source code of this file.

Functions

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

Detailed Description

Author
M.Schmitt, Northwestern

Definition in file CSCComparatorDigi.cc.

Function Documentation

◆ operator<<()

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

Output operator.

Definition at line 112 of file CSCComparatorDigi.cc.

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 }

References filterCSVwithJSON::copy, CSCComparatorDigi::getComparator(), CSCComparatorDigi::getStrip(), CSCComparatorDigi::getTimeBin(), CSCComparatorDigi::getTimeBinsOn(), and EcalTangentSkim_cfg::o.

filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
CSCComparatorDigi::getComparator
int getComparator() const
Get Comparator readings. Can be 0 or 1.
Definition: CSCComparatorDigi.h:41
CSCComparatorDigi::getTimeBin
int getTimeBin() const
Return bin number of first time bin which is ON. Counts from 0.
Definition: CSCComparatorDigi.cc:51
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
CSCComparatorDigi::getTimeBinsOn
std::vector< int > getTimeBinsOn() const
Definition: CSCComparatorDigi.cc:81
CSCComparatorDigi::getStrip
int getStrip() const
Get the strip number. Counts from 1.
Definition: CSCComparatorDigi.h:35