CSCRPCDigi

Macros

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 40 41 42
#ifndef CSCRPCDigi_CSCRPCDigi_h
#define CSCRPCDigi_CSCRPCDigi_h

/**\class CSCRPCDigi
 *
 * Digi for RPC data coming thru RAT-ALCT-DDU. 
 *
 *
 * \author N. Terentiev, CMU
 */

#include <cstdint>
#include <iosfwd>

class CSCRPCDigi {
public:
  /// Constructors
  CSCRPCDigi(int rpc, int pad, int bxn, int tbin);  /// from the rpc#, pad#, bxn#, tbin#
  CSCRPCDigi();                                     /// default

  /// get RPC
  int getRpc() const { return rpc_; }
  /// return pad number
  int getPad() const { return pad_; }
  /// return tbin number
  int getTbin() const { return tbin_; }
  /// return BXN
  int getBXN() const { return bxn_; }

  /// Print content of digi
  void print() const;

private:
  uint16_t rpc_;
  uint16_t pad_;
  uint16_t bxn_;
  uint16_t tbin_;
};

std::ostream& operator<<(std::ostream& o, const CSCRPCDigi& digi);

#endif