Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:10

0001 /**\class CSCRPCDigi
0002  *
0003  * Digi for RPC data coming thru RAT-ALCT-DDU.
0004  *
0005  *
0006  * \author N. Terentiev, CMU
0007  */
0008 
0009 #include "DataFormats/CSCDigi/interface/CSCRPCDigi.h"
0010 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0011 #include <iostream>
0012 
0013 /// Constructors
0014 
0015 CSCRPCDigi::CSCRPCDigi(int rpc, int pad, int bxn, int tbin) {
0016   rpc_ = rpc;
0017   pad_ = pad;
0018   bxn_ = bxn;
0019   tbin_ = tbin;
0020 }
0021 
0022 /// Default
0023 CSCRPCDigi::CSCRPCDigi() {
0024   rpc_ = 0;
0025   pad_ = 0;
0026   bxn_ = 0;
0027   tbin_ = 0;
0028 }
0029 
0030 /// Debug
0031 void CSCRPCDigi::print() const {
0032   edm::LogVerbatim("CSCDigi") << "CSCRPCDigi | rpc " << getRpc() << " | pad " << getPad() << " | tbin " << getTbin()
0033                               << " | bxn  " << getBXN();
0034 }
0035 
0036 std::ostream& operator<<(std::ostream& o, const CSCRPCDigi& digi) {
0037   return o << " RPC = " << digi.getRpc() << "  Pad = " << digi.getPad() << "  Tbin = " << digi.getTbin()
0038            << "  Bxn = " << digi.getBXN();
0039 }