#include <RPCTriggerCrate.h>
Public Member Functions | |
RPCTriggerCrate (RPCTriggerConfiguration *triggerConfig, int tcNum) | |
void | runCone (const RPCLogCone &cone) |
L1RpcTBMuonsVec | runTCGBSorter () |
Private Attributes | |
std::vector< RPCTriggerBoard > | m_TBsVec |
Here TB belonging to thie TC are stored. | |
RPCTCGhostBusterSorter | m_TCGhostBusterSorter |
int | m_TCNumber |
The number of this TriggerCrate (0 - 11) | |
RPCTriggerConfiguration * | m_TriggerConfig |
bool | m_WasMuon |
Class describing the Trigger Crate. In one Trigger Crate thera are Trigger Boards fro one sector.
Definition at line 21 of file RPCTriggerCrate.h.
RPCTriggerCrate::RPCTriggerCrate | ( | RPCTriggerConfiguration * | triggerConfig, |
int | tcNum | ||
) |
Definition at line 6 of file RPCTriggerCrate.cc.
References RPCTriggerConfiguration::getTBsInTC(), m_TBsVec, m_TCNumber, m_TriggerConfig, and m_WasMuon.
: m_TCGhostBusterSorter(triggerConfig) { //m_TCGhostBusterSorter = tcGhostBusterSorter; m_TriggerConfig = triggerConfig; m_WasMuon = false; m_TCNumber = tcNum; for(int iTB = 0; iTB < triggerConfig->getTBsInTC(); iTB++) m_TBsVec.push_back(RPCTriggerBoard(triggerConfig, iTB, tcNum)); }
void RPCTriggerCrate::runCone | ( | const RPCLogCone & | cone | ) |
Runs RPCTriggerBoard::runCone() for every TB. Cheks, if any non empty muons were found
Definition at line 53 of file RPCTriggerCrate.cc.
References RPCLogCone::getConeCrdnts(), RPCTriggerConfiguration::getTBNum(), m_TBsVec, m_TriggerConfig, and m_WasMuon.
{ if(m_TBsVec[m_TriggerConfig->getTBNum(cone.getConeCrdnts())].runCone(cone)) m_WasMuon = true; }
L1RpcTBMuonsVec RPCTriggerCrate::runTCGBSorter | ( | ) |
If in runCone() any muons were found, runs RPCTriggerBoard::runTBGB() for every TB. Then runs RPCTCGhostBusterSorter::run().
Definition at line 19 of file RPCTriggerCrate.cc.
References MuonsGrabber::addMuon(), gather_cfg::cout, RPCTriggerConfiguration::getDebugLevel(), MuonsGrabber::Instance(), m_TBsVec, m_TCGhostBusterSorter, m_TriggerConfig, m_WasMuon, and RPCTCGhostBusterSorter::run().
{ if(!m_WasMuon) return L1RpcTBMuonsVec(); L1RpcTBMuonsVec2 tbMuonsVec2; for(unsigned int iTB = 0; iTB < m_TBsVec.size(); iTB++) { tbMuonsVec2.push_back(m_TBsVec[iTB].runTBGB()); } m_WasMuon = false; if ( m_TriggerConfig->getDebugLevel()!=0){ for (unsigned int iTC = 0; iTC < tbMuonsVec2.size(); iTC++){ for (unsigned int iTB = 0; iTB < tbMuonsVec2[iTC].size(); iTB++){ #ifndef _STAND_ALONE // LogDebug("RPCHwDebug") << "GB 1 " << iTB << " " // <<tbMuonsVec2[iTC][iTB].printDebugInfo(m_TriggerConfig->getDebugLevel()); MuonsGrabber::Instance().addMuon(tbMuonsVec2[iTC][iTB], 1, -1, -1, iTB); #else std::cout << "GB 1 " << "GB 1 " << iTB << " " <<tbMuonsVec2[iTC][iTB].printDebugInfo(m_TriggerConfig->getDebugLevel()) << std::endl; #endif //_STAND_ALONE } } } return m_TCGhostBusterSorter.run(tbMuonsVec2); }
std::vector<RPCTriggerBoard> RPCTriggerCrate::m_TBsVec [private] |
Here TB belonging to thie TC are stored.
Definition at line 38 of file RPCTriggerCrate.h.
Referenced by RPCTriggerCrate(), runCone(), and runTCGBSorter().
Definition at line 40 of file RPCTriggerCrate.h.
Referenced by runTCGBSorter().
int RPCTriggerCrate::m_TCNumber [private] |
The number of this TriggerCrate (0 - 11)
Definition at line 34 of file RPCTriggerCrate.h.
Referenced by RPCTriggerCrate().
Definition at line 36 of file RPCTriggerCrate.h.
Referenced by RPCTriggerCrate(), runCone(), and runTCGBSorter().
bool RPCTriggerCrate::m_WasMuon [private] |
Definition at line 42 of file RPCTriggerCrate.h.
Referenced by RPCTriggerCrate(), runCone(), and runTCGBSorter().