CMS 3D CMS Logo

CSCRPCDigi.cc
Go to the documentation of this file.
1 
11 #include <iostream>
12 
14 
15 CSCRPCDigi::CSCRPCDigi(int rpc, int pad, int bxn, int tbin) {
16  rpc_ = rpc;
17  pad_ = pad;
18  bxn_ = bxn;
19  tbin_ = tbin;
20 }
21 
24  rpc_ = 0;
25  pad_ = 0;
26  bxn_ = 0;
27  tbin_ = 0;
28 }
29 
31 void CSCRPCDigi::print() const {
32  edm::LogVerbatim("CSCDigi") << "CSCRPCDigi | rpc " << getRpc() << " | pad " << getPad() << " | tbin " << getTbin()
33  << " | bxn " << getBXN();
34 }
35 
36 std::ostream& operator<<(std::ostream& o, const CSCRPCDigi& digi) {
37  return o << " RPC = " << digi.getRpc() << " Pad = " << digi.getPad() << " Tbin = " << digi.getTbin()
38  << " Bxn = " << digi.getBXN();
39 }
CSCRPCDigi::getRpc
int getRpc() const
default
Definition: CSCRPCDigi.h:22
CSCRPCDigi::rpc_
uint16_t rpc_
Definition: CSCRPCDigi.h:34
MessageLogger.h
CSCRPCDigi::getTbin
int getTbin() const
return tbin number
Definition: CSCRPCDigi.h:26
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
CSCRPCDigi.h
CSCRPCDigi::CSCRPCDigi
CSCRPCDigi()
from the rpc#, pad#, bxn#, tbin#
Definition: CSCRPCDigi.cc:23
CSCRPCDigi::print
void print() const
Print content of digi.
Definition: CSCRPCDigi.cc:31
CSCRPCDigi::pad_
uint16_t pad_
Definition: CSCRPCDigi.h:35
CSCRPCDigi
Definition: CSCRPCDigi.h:15
CSCRPCDigi::bxn_
uint16_t bxn_
Definition: CSCRPCDigi.h:36
edm::LogVerbatim
Definition: MessageLogger.h:297
CSCRPCDigi::tbin_
uint16_t tbin_
Definition: CSCRPCDigi.h:37
CSCRPCDigi::getBXN
int getBXN() const
return BXN
Definition: CSCRPCDigi.h:28
operator<<
std::ostream & operator<<(std::ostream &o, const CSCRPCDigi &digi)
Definition: CSCRPCDigi.cc:36
CSCRPCDigi::getPad
int getPad() const
return pad number
Definition: CSCRPCDigi.h:24
omtf::DataWord64::rpc
Definition: OmtfDataWord64.h:16