CMS 3D CMS Logo

Functions
CSCShowerDigi.cc File Reference
#include "DataFormats/CSCDigi/interface/CSCShowerDigi.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iomanip>
#include <iostream>

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 58 of file CSCShowerDigi.cc.

References CSCShowerDigi::bitsInTime(), CSCShowerDigi::bitsOutOfTime(), CSCShowerDigi::getBX(), CSCShowerDigi::getComparatorNHits(), CSCShowerDigi::getShowerType(), CSCShowerDigi::getWireNHits(), EcalTangentSkim_cfg::o, or, AlCaHLTBitMon_QueryRunRegistry::string, and cond::impl::to_string().

58  {
59  unsigned int showerType = digi.getShowerType();
60  std::string compHitsStr(", comparatorHits ");
61  compHitsStr += std::to_string(digi.getComparatorNHits());
62  std::string wireHitsStr(", wireHits ");
63  wireHitsStr += std::to_string(digi.getWireNHits());
64  std::string showerStr;
65  switch (showerType) {
66  case 0:
67  showerStr = "Invalid ShowerType";
68  break;
69  case 1:
70  showerStr = "AnodeShower";
71  break;
72  case 2:
73  showerStr = "CathodeShower";
74  break;
75  case 3:
76  showerStr = "MatchedShower";
77  break;
78  case 4:
79  showerStr = "EMTFShower";
80  break;
81  case 5:
82  showerStr = "GMTShower";
83  break;
84  default:
85  showerStr = "UnknownShowerType";
86  }
87 
88  return o << showerStr << ": bx " << digi.getBX() << ", in-time bits " << digi.bitsInTime() << ", out-of-time bits "
89  << digi.bitsOutOfTime() << ((showerType == 1 or showerType == 3) ? wireHitsStr : "")
90  << ((showerType == 2 or showerType == 3) ? compHitsStr : "") << ";";
91 }
uint16_t getComparatorNHits() const
Definition: CSCShowerDigi.h:55
std::string to_string(const V &value)
Definition: OMSAccess.h:77
uint16_t bitsOutOfTime() const
Definition: CSCShowerDigi.h:49
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
uint16_t getBX() const
Definition: CSCShowerDigi.h:51
uint16_t getShowerType() const
Definition: CSCShowerDigi.h:53
uint16_t bitsInTime() const
Definition: CSCShowerDigi.h:48
uint16_t getWireNHits() const
Definition: CSCShowerDigi.h:54