00001 00012 #include "DataFormats/CSCDigi/interface/CSCRPCDigi.h" 00013 #include <iostream> 00014 00016 00017 CSCRPCDigi::CSCRPCDigi (int rpc, int pad, int bxn, int tbin){ 00018 rpc_ = rpc; 00019 pad_ = pad; 00020 bxn_ = bxn; 00021 tbin_ = tbin; 00022 } 00023 00025 CSCRPCDigi::CSCRPCDigi (){ 00026 rpc_ = 0; 00027 pad_ = 0; 00028 bxn_ = 0; 00029 tbin_ = 0; 00030 } 00031 00033 void CSCRPCDigi::print() const { 00034 std::cout << "RPC = " << getRpc() 00035 << " Pad = " << getPad() 00036 << " Tbin = " << getTbin() 00037 << " BXN = " << getBXN() << std::endl; 00038 } 00039 00040 std::ostream & operator<<(std::ostream & o, const CSCRPCDigi& digi) { 00041 return o << " RPC = " << digi.getRpc() << " Pad = "<< digi.getPad() 00042 << " Tbin = " << digi.getTbin() << " Bxn = " << digi.getBXN(); 00043 } 00044 00045