#include <TTUEmulator.h>
Classes | |
class | TriggerResponse |
Public Member Functions | |
void | clearTriggerResponse () |
void | emulate () |
bool | initialise () |
int | line () |
int | mode () |
void | printinfo () |
void | processTtu (RPCInputSignal *) |
void | processTtu (RPCInputSignal *, int) |
void | SetLineId (int) |
void | setmode (int mode) |
void | setSpecifications (const TTUBoardSpecs *, const RBCBoardSpecs *) |
void | setSpecs () |
TTUEmulator () | |
Standard constructor. More... | |
TTUEmulator (int, int) | |
TTUEmulator (int, const char *, const char *, int) | |
TTUEmulator (int, const char *, const char *, const char *, int) | |
virtual | ~TTUEmulator () |
Destructor. More... | |
Public Attributes | |
int | m_maxWheels |
std::bitset< 2 > | m_trigger |
std::map< int, std::bitset< 2 > > | m_triggerBx |
std::vector< TriggerResponse * > | m_triggerBxVec |
RPCWheel * | m_Wheels |
Private Attributes | |
int | m_bx |
bool | m_debug |
int | m_id |
int | m_line |
std::string | m_logtype |
int | m_mode |
TTUConfiguration * | m_ttuconf |
TTUInput * | m_ttuin |
int * | m_wheelIds |
This class performs the following tasks [ref 2]:
The default algorithm is implemented is TrackingAlg [ref 2].
ref 2: "A configurable Tracking Algorithm to detect cosmic muon tracks for the CMS-RPC based Technical Trigger", R.T.Rajan et al
email: aosor io@u niand es.e du.co
Definition at line 37 of file TTUEmulator.h.
|
inline |
TTUEmulator::TTUEmulator | ( | int | id, |
int | mxw | ||
) |
Definition at line 21 of file TTUEmulator.cc.
References gen::k, m_debug, m_id, m_line, m_maxWheels, m_mode, m_trigger, m_ttuin, m_wheelIds, m_Wheels, and tmp.
TTUEmulator::TTUEmulator | ( | int | id, |
const char * | rbclogic_type, | ||
const char * | ttulogic_type, | ||
int | mxw | ||
) |
Definition at line 48 of file TTUEmulator.cc.
References gen::k, m_debug, m_id, m_line, m_maxWheels, m_mode, m_trigger, m_ttuconf, m_ttuin, m_wheelIds, m_Wheels, and tmp.
TTUEmulator::TTUEmulator | ( | int | id, |
const char * | f_name, | ||
const char * | rbclogic_type, | ||
const char * | ttulogic_type, | ||
int | mxw | ||
) |
Definition at line 76 of file TTUEmulator.cc.
References gen::k, m_debug, m_id, m_line, m_maxWheels, m_mode, m_trigger, m_ttuconf, m_ttuin, m_wheelIds, m_Wheels, and tmp.
|
virtual |
Destructor.
Definition at line 108 of file TTUEmulator.cc.
References m_ttuconf, m_ttuin, m_wheelIds, and m_Wheels.
void TTUEmulator::clearTriggerResponse | ( | ) |
Definition at line 324 of file TTUEmulator.cc.
References m_triggerBxVec.
Referenced by RPCTechnicalTrigger::produce().
void TTUEmulator::emulate | ( | ) |
bool TTUEmulator::initialise | ( | ) |
Definition at line 133 of file TTUEmulator.cc.
References gather_cfg::cout, TTUConfiguration::initialise(), gen::k, m_debug, m_id, m_line, m_maxWheels, m_ttuconf, m_Wheels, and ntuplemaker::status.
Referenced by RPCTechnicalTrigger::beginRun().
|
inline |
|
inline |
void TTUEmulator::printinfo | ( | ) |
Definition at line 336 of file TTUEmulator.cc.
References gather_cfg::cout, gen::k, m_id, m_maxWheels, and m_Wheels.
Referenced by RPCTechnicalTrigger::printinfo().
void TTUEmulator::processTtu | ( | RPCInputSignal * | signal | ) |
Definition at line 162 of file TTUEmulator.cc.
References gather_cfg::cout, RPCWheel::createWheelMap(), RPCWheel::getid(), TTULogicUnit::isTriggered(), gen::k, m_debug, m_id, m_maxWheels, m_trigger, m_triggerBx, m_triggerBxVec, m_ttuconf, m_ttuin, TTUConfiguration::m_ttulogic, m_Wheels, LaserDQM_cfg::process, RPCWheel::retrieveWheelMap(), TTULogicUnit::run(), TTUEmulator::TriggerResponse::setTriggerBits(), and generateDummyData::trg().
Referenced by RPCTechnicalTrigger::produce().
void TTUEmulator::processTtu | ( | RPCInputSignal * | signal, |
int | wedgeId | ||
) |
Definition at line 244 of file TTUEmulator.cc.
References gather_cfg::cout, RPCWheel::createWheelMap(), RPCWheel::getid(), TTULogicUnit::isTriggered(), gen::k, m_debug, m_id, m_maxWheels, m_trigger, m_triggerBx, m_triggerBxVec, m_ttuconf, m_ttuin, TTUConfiguration::m_ttulogic, m_Wheels, LaserDQM_cfg::process, RPCWheel::retrieveWheelMap(), TTULogicUnit::run(), TTUEmulator::TriggerResponse::setTriggerBits(), and generateDummyData::trg().
void TTUEmulator::SetLineId | ( | int | line | ) |
Definition at line 149 of file TTUEmulator.cc.
References line(), and m_line.
Referenced by RPCTechnicalTrigger::beginRun().
|
inline |
void TTUEmulator::setSpecifications | ( | const TTUBoardSpecs * | ttuspecs, |
const RBCBoardSpecs * | rbcspecs | ||
) |
Definition at line 118 of file TTUEmulator.cc.
References gen::k, TTUBoardSpecs::m_boardspecs, m_maxWheels, m_mode, TTUConfiguration::m_ttuboardspecs, m_ttuconf, and m_Wheels.
Referenced by RPCTechnicalTrigger::beginRun().
void TTUEmulator::setSpecs | ( | ) |
|
private |
Definition at line 119 of file TTUEmulator.h.
|
private |
Definition at line 131 of file TTUEmulator.h.
Referenced by initialise(), processTtu(), and TTUEmulator().
|
private |
Definition at line 118 of file TTUEmulator.h.
Referenced by initialise(), printinfo(), processTtu(), and TTUEmulator().
|
private |
Definition at line 121 of file TTUEmulator.h.
Referenced by initialise(), line(), SetLineId(), and TTUEmulator().
|
private |
Definition at line 125 of file TTUEmulator.h.
int TTUEmulator::m_maxWheels |
Definition at line 80 of file TTUEmulator.h.
Referenced by emulate(), initialise(), printinfo(), processTtu(), setSpecifications(), and TTUEmulator().
|
private |
Definition at line 120 of file TTUEmulator.h.
Referenced by mode(), setmode(), setSpecifications(), and TTUEmulator().
std::bitset<2> TTUEmulator::m_trigger |
Definition at line 83 of file TTUEmulator.h.
Referenced by processTtu(), and TTUEmulator().
std::map<int, std::bitset<2> > TTUEmulator::m_triggerBx |
Definition at line 84 of file TTUEmulator.h.
Referenced by processTtu().
std::vector<TriggerResponse*> TTUEmulator::m_triggerBxVec |
Definition at line 112 of file TTUEmulator.h.
Referenced by clearTriggerResponse(), processTtu(), and RPCTechnicalTrigger::produce().
|
private |
Definition at line 129 of file TTUEmulator.h.
Referenced by initialise(), processTtu(), setSpecifications(), TTUEmulator(), and ~TTUEmulator().
|
private |
Definition at line 127 of file TTUEmulator.h.
Referenced by processTtu(), TTUEmulator(), and ~TTUEmulator().
|
private |
Definition at line 123 of file TTUEmulator.h.
Referenced by TTUEmulator(), and ~TTUEmulator().
RPCWheel* TTUEmulator::m_Wheels |
Definition at line 82 of file TTUEmulator.h.
Referenced by emulate(), initialise(), printinfo(), processTtu(), setSpecifications(), TTUEmulator(), and ~TTUEmulator().