#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 |
Standard constructor.
Definition at line 40 of file TTUEmulator.h.
References clearTriggerResponse(), emulate(), initialise(), printinfo(), processTtu(), setSpecifications(), and ~TTUEmulator().
TTUEmulator::TTUEmulator | ( | int | id, |
int | mxw | ||
) |
Definition at line 21 of file TTUEmulator.cc.
References triggerObjects_cff::id, 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 triggerObjects_cff::id, 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 triggerObjects_cff::id, 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.
Referenced by TTUEmulator().
void TTUEmulator::clearTriggerResponse | ( | ) |
Definition at line 324 of file TTUEmulator.cc.
References m_triggerBxVec.
Referenced by RPCTechnicalTrigger::produce(), and TTUEmulator().
void TTUEmulator::emulate | ( | ) |
Definition at line 154 of file TTUEmulator.cc.
References gen::k, m_maxWheels, and m_Wheels.
Referenced by TTUEmulator().
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 mps_update::status.
Referenced by RPCTechnicalTrigger::beginRun(), and TTUEmulator().
|
inline |
Definition at line 72 of file TTUEmulator.h.
References m_line, SetLineId(), and setSpecs().
Referenced by SetLineId().
|
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(), and TTUEmulator().
void TTUEmulator::processTtu | ( | RPCInputSignal * | signal | ) |
Definition at line 162 of file TTUEmulator.cc.
References gather_cfg::cout, RPCWheel::createWheelMap(), RPCWheel::getid(), createfilelist::int, 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(), generateDummyData::trg(), and tier0::unique().
Referenced by RPCTechnicalTrigger::produce(), and TTUEmulator().
void TTUEmulator::processTtu | ( | RPCInputSignal * | signal, |
int | wedgeId | ||
) |
Definition at line 244 of file TTUEmulator.cc.
References gather_cfg::cout, RPCWheel::createWheelMap(), RPCWheel::getid(), createfilelist::int, 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(), generateDummyData::trg(), and tier0::unique().
void TTUEmulator::SetLineId | ( | int | line | ) |
Definition at line 149 of file TTUEmulator.cc.
References line(), and m_line.
Referenced by RPCTechnicalTrigger::beginRun(), and line().
|
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(), and TTUEmulator().
void TTUEmulator::setSpecs | ( | ) |
Referenced by line().
|
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().