#include <interface/RBCInput.h>
Public Member Functions | |
void | force (const std::vector< int > &) |
void | mask (const std::vector< int > &) |
RBCInput & | operator= (const RBCInput &rhs) |
void | printinfo () |
RBCInput () | |
Standard constructor. | |
RBCInput (const RBCInput &in) | |
Destructor. | |
void | setWheelId (int wid) |
int | wheelId () const |
virtual | ~RBCInput () |
Public Attributes | |
bool | hasData |
bool | input [30] |
std::bitset< 15 > * | input_sec |
bool | needmapping |
Private Attributes | |
bool | m_debug |
int | m_wheelId |
Friends | |
std::ostream & | operator<< (std::ostream &ostr, RBCInput &) |
std::istream & | operator>> (std::istream &istr, RBCInput &) |
RBCInput::RBCInput | ( | ) | [inline] |
Standard constructor.
Definition at line 25 of file RBCInput.h.
References hasData, input_sec, m_debug, and needmapping.
{ input_sec = new std::bitset<15>[2]; needmapping = false; m_debug = false; hasData = false; };
virtual RBCInput::~RBCInput | ( | ) | [inline, virtual] |
Definition at line 32 of file RBCInput.h.
References input_sec.
RBCInput::RBCInput | ( | const RBCInput & | in | ) | [inline] |
Destructor.
Definition at line 36 of file RBCInput.h.
References hasData, i, input, input_sec, m_debug, m_wheelId, and needmapping.
void RBCInput::force | ( | const std::vector< int > & | forcevec | ) |
Definition at line 53 of file RBCInput.cc.
References gather_cfg::cout, i, input_sec, m_debug, and tmp.
Referenced by RBCBasicConfig::preprocess().
void RBCInput::mask | ( | const std::vector< int > & | maskvec | ) |
Definition at line 38 of file RBCInput.cc.
Referenced by RBCBasicConfig::preprocess().
Definition at line 46 of file RBCInput.h.
References gather_cfg::cout, hasData, i, input, input_sec, m_debug, m_wheelId, and needmapping.
{ if (this == &rhs) { std::cout << "RBCInput:(this=rhs)" << '\n'; return (*this); }; for(int i=0; i < 30; ++i) (*this).input[i] = rhs.input[i]; for(int i=0; i < 2; ++i) (*this).input_sec[i] = rhs.input_sec[i]; (*this).needmapping = rhs.needmapping; (*this).m_debug = rhs.m_debug; (*this).hasData = rhs.hasData; (*this).m_wheelId = rhs.m_wheelId; return (*this); };
void RBCInput::printinfo | ( | ) | [inline] |
Definition at line 67 of file RBCInput.h.
References gather_cfg::cout.
{ std::cout << "RBCInput: " << (*this); };
void RBCInput::setWheelId | ( | int | wid | ) | [inline] |
Definition at line 78 of file RBCInput.h.
References m_wheelId.
Referenced by RBCEmulator::emulate().
{ m_wheelId = wid; };
int RBCInput::wheelId | ( | ) | const [inline] |
Definition at line 82 of file RBCInput.h.
References m_wheelId.
Referenced by RBCChamberORLogic::process().
{ return m_wheelId; };
std::ostream& operator<< | ( | std::ostream & | ostr, |
RBCInput & | rhs | ||
) | [friend] |
std::istream& operator>> | ( | std::istream & | istr, |
RBCInput & | rhs | ||
) | [friend] |
bool RBCInput::hasData |
Definition at line 75 of file RBCInput.h.
Referenced by RBCProcessRPCSimDigis::initialize(), RBCProcessRPCDigis::initialize(), operator=(), RBCInput(), RBCProcessRPCSimDigis::setDigiAt(), and RBCProcessRPCDigis::setDigiAt().
bool RBCInput::input[30] |
Definition at line 64 of file RBCInput.h.
Referenced by operator=(), operator>>(), and RBCInput().
std::bitset<15>* RBCInput::input_sec |
Definition at line 65 of file RBCInput.h.
Referenced by force(), RBCProcessRPCSimDigis::initialize(), RBCProcessRPCDigis::initialize(), mask(), operator<<(), operator=(), operator>>(), RBCChamberORLogic::process(), RBCTestLogic::process(), RBCInput(), RBCProcessRPCSimDigis::setDigiAt(), RBCProcessRPCDigis::setDigiAt(), and ~RBCInput().
bool RBCInput::m_debug [private] |
Definition at line 84 of file RBCInput.h.
Referenced by force(), operator=(), and RBCInput().
int RBCInput::m_wheelId [private] |
Definition at line 91 of file RBCInput.h.
Referenced by operator=(), RBCInput(), setWheelId(), and wheelId().
Definition at line 76 of file RBCInput.h.
Referenced by RBCProcessRPCDigis::builddata(), RBCProcessRPCSimDigis::builddata(), ProcessTestSignal::builddata(), RBCProcessRPCSimDigis::initialize(), RBCProcessRPCDigis::initialize(), operator=(), RBCChamberORLogic::process(), and RBCInput().