CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
CSCWireDigi.cc File Reference
#include "DataFormats/CSCDigi/interface/CSCWireDigi.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iostream>
#include <cstdint>

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 75 of file CSCWireDigi.cc.

References filterCSVwithJSON::copy, CSCWireDigi::getTimeBin(), CSCWireDigi::getTimeBinsOn(), CSCWireDigi::getWireGroup(), and class-composition::o.

75  {
76  o << " CSCWireDigi wg: " << digi.getWireGroup() << ", First Time Bin On: " << digi.getTimeBin() << ", Time Bins On: ";
77  std::vector<int> tbins = digi.getTimeBinsOn();
78  std::copy(tbins.begin(), tbins.end(), std::ostream_iterator<int>(o, " "));
79  return o;
80 }
std::vector< int > getTimeBinsOn() const
return vector of time bins ON
Definition: CSCWireDigi.cc:48
int getWireGroup() const
default
Definition: CSCWireDigi.h:22
int getTimeBin() const
return first tbin ON number
Definition: CSCWireDigi.cc:35