#include <RBCChamberORLogic.h>
Public Types | |
typedef std::map< std::string, bool >::iterator | itr2chambers |
typedef std::vector < std::string >::iterator | itr2names |
Public Member Functions | |
void | copymap (const std::bitset< 15 > &) |
void | createmap (const std::bitset< 15 > &) |
bool | evaluateLayerOR (const char *, const char *) |
std::bitset< 6 > * | getlayersignal (int _idx) |
void | process (const RBCInput &, std::bitset< 2 > &) |
RBCChamberORLogic () | |
Standard constructor. More... | |
void | reset () |
void | setBoardSpecs (const RBCBoardSpecs::RBCBoardConfig &) |
void | setmaxlevel (int _mx) |
virtual | ~RBCChamberORLogic () |
Destructor. More... | |
Public Member Functions inherited from RBCLogic | |
virtual | ~RBCLogic () |
Public Attributes | |
std::bitset< 6 > * | m_layersignal |
Public Attributes inherited from RBCLogic | |
bool | m_triggersignal |
Private Attributes | |
std::map< std::string, bool > | m_chamber |
int | m_maxcb |
int | m_maxlevel |
std::vector< std::string > | m_rbname |
This class works out the mapping of inputs to chambers and applies a Coincidence Logic. The criteria for coincidence is set by the parameter m_maxlevel.
email: aosor io@u niand es.e du.co
Definition at line 28 of file RBCChamberORLogic.h.
typedef std::map<std::string,bool>::iterator RBCChamberORLogic::itr2chambers |
Definition at line 42 of file RBCChamberORLogic.h.
typedef std::vector<std::string>::iterator RBCChamberORLogic::itr2names |
Definition at line 39 of file RBCChamberORLogic.h.
RBCChamberORLogic::RBCChamberORLogic | ( | ) |
Standard constructor.
Definition at line 17 of file RBCChamberORLogic.cc.
References m_chamber, m_layersignal, m_maxcb, m_maxlevel, and m_rbname.
|
virtual |
void RBCChamberORLogic::copymap | ( | const std::bitset< 15 > & | _input | ) |
Definition at line 146 of file RBCChamberORLogic.cc.
References m_chamber, and m_rbname.
Referenced by process().
void RBCChamberORLogic::createmap | ( | const std::bitset< 15 > & | _input | ) |
Definition at line 165 of file RBCChamberORLogic.cc.
References m_chamber, and m_rbname.
Referenced by process().
bool RBCChamberORLogic::evaluateLayerOR | ( | const char * | _chA, |
const char * | _chB | ||
) |
Definition at line 203 of file RBCChamberORLogic.cc.
References gather_cfg::cout, and m_chamber.
Referenced by process().
|
inlinevirtual |
|
virtual |
Implements RBCLogic.
Definition at line 61 of file RBCChamberORLogic.cc.
References abs, copymap(), prof2calltree::count, createmap(), evaluateLayerOR(), RBCInput::input_sec, gen::k, m_layersignal, m_maxlevel, RBCInput::needmapping, reset(), ntuplemaker::status, and RBCInput::wheelId().
Referenced by ConfigBuilder.ConfigBuilder.PrintAllModules::leave().
void RBCChamberORLogic::reset | ( | void | ) |
Definition at line 184 of file RBCChamberORLogic.cc.
References m_chamber, and m_rbname.
Referenced by process().
|
virtual |
Implements RBCLogic.
Definition at line 139 of file RBCChamberORLogic.cc.
References m_maxlevel, and RBCBoardSpecs::RBCBoardConfig::m_MayorityLevel.
|
inline |
|
private |
Definition at line 62 of file RBCChamberORLogic.h.
Referenced by copymap(), createmap(), evaluateLayerOR(), RBCChamberORLogic(), and reset().
std::bitset<6>* RBCChamberORLogic::m_layersignal |
Definition at line 52 of file RBCChamberORLogic.h.
Referenced by process(), RBCChamberORLogic(), and ~RBCChamberORLogic().
|
private |
Definition at line 64 of file RBCChamberORLogic.h.
Referenced by RBCChamberORLogic().
|
private |
Definition at line 66 of file RBCChamberORLogic.h.
Referenced by process(), RBCChamberORLogic(), setBoardSpecs(), and setmaxlevel().
|
private |
Definition at line 60 of file RBCChamberORLogic.h.
Referenced by copymap(), createmap(), RBCChamberORLogic(), and reset().