Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
/**\class CSCRPCDigi
 *
 * Digi for RPC data coming thru RAT-ALCT-DDU.
 *
 *
 * \author N. Terentiev, CMU
 */

#include "DataFormats/CSCDigi/interface/CSCRPCDigi.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iostream>

/// Constructors

CSCRPCDigi::CSCRPCDigi(int rpc, int pad, int bxn, int tbin) {
  rpc_ = rpc;
  pad_ = pad;
  bxn_ = bxn;
  tbin_ = tbin;
}

/// Default
CSCRPCDigi::CSCRPCDigi() {
  rpc_ = 0;
  pad_ = 0;
  bxn_ = 0;
  tbin_ = 0;
}

/// Debug
void CSCRPCDigi::print() const {
  edm::LogVerbatim("CSCDigi") << "CSCRPCDigi | rpc " << getRpc() << " | pad " << getPad() << " | tbin " << getTbin()
                              << " | bxn  " << getBXN();
}

std::ostream& operator<<(std::ostream& o, const CSCRPCDigi& digi) {
  return o << " RPC = " << digi.getRpc() << "  Pad = " << digi.getPad() << "  Tbin = " << digi.getTbin()
           << "  Bxn = " << digi.getBXN();
}