test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCRPCDigi.cc
Go to the documentation of this file.
1 
12 #include <iostream>
13 
15 
16 CSCRPCDigi::CSCRPCDigi (int rpc, int pad, int bxn, int tbin){
17  rpc_ = rpc;
18  pad_ = pad;
19  bxn_ = bxn;
20  tbin_ = tbin;
21 }
22 
25  rpc_ = 0;
26  pad_ = 0;
27  bxn_ = 0;
28  tbin_ = 0;
29 }
30 
32 void CSCRPCDigi::print() const {
33  edm::LogVerbatim("CSCDigi") << "CSCRPCDigi | rpc " << getRpc() << " | pad " << getPad()
34  << " | tbin " << getTbin() << " | bxn " << getBXN();
35 }
36 
37 std::ostream & operator<<(std::ostream & o, const CSCRPCDigi& digi) {
38  return o << " RPC = " << digi.getRpc() << " Pad = "<< digi.getPad()
39  << " Tbin = " << digi.getTbin() << " Bxn = " << digi.getBXN();
40 }
41 
42 
uint16_t rpc_
Definition: CSCRPCDigi.h:37
int getPad() const
return pad number
Definition: CSCRPCDigi.h:26
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
void print() const
Print content of digi.
Definition: CSCRPCDigi.cc:32
uint16_t pad_
Definition: CSCRPCDigi.h:38
int getRpc() const
default
Definition: CSCRPCDigi.h:24
uint16_t bxn_
Definition: CSCRPCDigi.h:39
int getTbin() const
return tbin number
Definition: CSCRPCDigi.h:28
uint16_t tbin_
Definition: CSCRPCDigi.h:40
int getBXN() const
return BXN
Definition: CSCRPCDigi.h:30
CSCRPCDigi()
from the rpc#, pad#, bxn#, tbin#
Definition: CSCRPCDigi.cc:24