This class performs the following tasks [ref 2]:
- find a single or multiple muon tracks
- find length of each track
- produce a wheel level trigger
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
- Author
- Andres Osorio
email: aosor.nosp@m.io@u.nosp@m.niand.nosp@m.es.e.nosp@m.du.co
- Date
- 2008-10-15
Definition at line 39 of file TTUEmulator.h.
Definition at line 88 of file TTUEmulator.cc.
References l1GtPatternGenerator_cfi::bx, reco::ceil(), gather_cfg::cout, createfilelist::int, dqmdumpme::k, m_debug, m_id, m_maxWheels, m_trigger, m_triggerBx, m_triggerBxVec, m_ttuconf, m_ttuin, m_Wheels, LaserDQM_cfg::process, and tier0::unique().
94 std::cout <<
"TTUEmulator::processTtu starts" <<
'\n';
99 std::vector<int> bxVec;
100 std::vector<int>::iterator bxItr;
101 std::map<int, RBCInput*>* linkboardin;
102 std::map<int, RBCInput*>::iterator inItr;
106 for (inItr = (*linkboardin).begin(); inItr != (*linkboardin).end(); ++inItr) {
107 if ((*inItr).first < 0)
108 bx = (
int)
ceil((*inItr).first / 1000000.0);
110 bx = (
int)floor((*inItr).first / 1000000.0);
114 bxItr =
unique(bxVec.begin(), bxVec.end());
115 bxVec.resize(bxItr - bxVec.begin());
118 for (bxItr = bxVec.begin(); bxItr != bxVec.end(); ++bxItr) {
129 trg =
m_ttuconf->ttulogic()->isTriggered();
134 std::cout <<
"TTUEmulator::processTtu ttuid: " <<
m_id <<
" bx: " << (*bxItr)
135 <<
" wheel: " <<
m_Wheels[
k].getid() <<
" response: " << trg << std::endl;
141 triggerResponse.setTriggerBits((*bxItr),
m_trigger);
146 std::cout <<
"TTUEmulator::processTtu> size of trigger map " <<
m_triggerBx.size() << std::endl;
149 std::cout <<
"TTUEmulator::processTtu> done with this TTU: " <<
m_id << std::endl;
154 std::cout <<
"TTUEmulator::processTtu ends" <<
'\n';
constexpr int32_t ceil(float num)
std::bitset< 2 > m_trigger
std::array< RPCWheel, 2 > m_Wheels
std::vector< TriggerResponse > m_triggerBxVec
std::unique_ptr< TTUConfiguration > m_ttuconf
def unique(seq, keepstr=True)
std::map< int, std::bitset< 2 > > m_triggerBx
std::array< TTUInput, 2 > m_ttuin
Definition at line 157 of file TTUEmulator.cc.
References l1GtPatternGenerator_cfi::bx, reco::ceil(), gather_cfg::cout, createfilelist::int, dqmdumpme::k, m_debug, m_id, m_maxWheels, m_trigger, m_triggerBx, m_triggerBxVec, m_ttuconf, m_ttuin, m_Wheels, LaserDQM_cfg::process, and tier0::unique().
163 std::cout <<
"TTUEmulator::processTtu( Pointing ) starts " <<
'\n';
168 std::vector<int> bxVec;
169 std::vector<int>::iterator bxItr;
170 std::map<int, RBCInput*>* linkboardin;
171 std::map<int, RBCInput*>::iterator inItr;
175 for (inItr = (*linkboardin).begin(); inItr != (*linkboardin).end(); ++inItr) {
176 if ((*inItr).first < 0)
177 bx = (
int)
ceil((*inItr).first / 1000000.0);
179 bx = (
int)floor((*inItr).first / 1000000.0);
183 bxItr =
unique(bxVec.begin(), bxVec.end());
184 bxVec.resize(bxItr - bxVec.begin());
188 for (bxItr = bxVec.begin(); bxItr != bxVec.end(); ++bxItr) {
191 (*bxItr), (*linkboardin))) {
201 trg =
m_ttuconf->ttulogic()->isTriggered();
206 std::cout <<
"TTUEmulator::processTtu( Pointing ) ttuid: " <<
m_id <<
" bx: " << (*bxItr)
207 <<
" wheel: " <<
m_Wheels[
k].getid() <<
" response: " << trg << std::endl;
212 triggerResponse.setTriggerBits((*bxItr), wedgeId,
m_trigger);
217 std::cout <<
"TTUEmulator::processTtu (Pointing) > size of trigger map " <<
m_triggerBx.size() << std::endl;
220 std::cout <<
"TTUEmulator::processTtu (Pointing) > done with this TTU: " <<
m_id << std::endl;
225 std::cout <<
"TTUEmulator::processTtu( Pointing ) end" <<
'\n';
constexpr int32_t ceil(float num)
std::bitset< 2 > m_trigger
std::array< RPCWheel, 2 > m_Wheels
std::vector< TriggerResponse > m_triggerBxVec
std::unique_ptr< TTUConfiguration > m_ttuconf
def unique(seq, keepstr=True)
std::map< int, std::bitset< 2 > > m_triggerBx
std::array< TTUInput, 2 > m_ttuin