CMS 3D CMS Logo

RPCTriggerCrate.cc
Go to the documentation of this file.
1 //---------------------------------------------------------------------------
4 
5 //---------------------------------------------------------------------------
7  : m_TCGhostBusterSorter(triggerConfig) {
8  //m_TCGhostBusterSorter = tcGhostBusterSorter;
9  m_TriggerConfig = triggerConfig;
10  m_WasMuon = false;
11 
12  m_TCNumber = tcNum;
13 
14  for (int iTB = 0; iTB < triggerConfig->getTBsInTC(); iTB++)
15  m_TBsVec.push_back(RPCTriggerBoard(triggerConfig, iTB, tcNum));
16 }
17 //----------------------------------------
19  if (!m_WasMuon)
20  return L1RpcTBMuonsVec();
21 
22  L1RpcTBMuonsVec2 tbMuonsVec2;
23  for (unsigned int iTB = 0; iTB < m_TBsVec.size(); iTB++) {
24  tbMuonsVec2.push_back(m_TBsVec[iTB].runTBGB());
25  }
26 
27  m_WasMuon = false;
28 
29  if (m_TriggerConfig->getDebugLevel() != 0) {
30  for (unsigned int iTC = 0; iTC < tbMuonsVec2.size(); iTC++) {
31  for (unsigned int iTB = 0; iTB < tbMuonsVec2[iTC].size(); iTB++) {
32 #ifndef _STAND_ALONE
33  // LogDebug("RPCHwDebug") << "GB 1 " << iTB << " "
34  // <<tbMuonsVec2[iTC][iTB].printDebugInfo(m_TriggerConfig->getDebugLevel());
35  MuonsGrabber::Instance().addMuon(tbMuonsVec2[iTC][iTB], 1, -1, -1, iTB);
36 #else
37  std::cout << "GB 1 "
38  << "GB 1 " << iTB << " " << tbMuonsVec2[iTC][iTB].printDebugInfo(m_TriggerConfig->getDebugLevel())
39  << std::endl;
40 #endif //_STAND_ALONE
41  }
42  }
43  }
44 
45  return m_TCGhostBusterSorter.run(tbMuonsVec2);
46 }
47 
50  if (m_TBsVec[m_TriggerConfig->getTBNum(cone.getConeCrdnts())].runCone(cone))
51  m_WasMuon = true;
52 }
RPCTriggerConfiguration::getDebugLevel
int getDebugLevel() const
Definition: RPCTriggerConfiguration.h:41
RPCTriggerCrate::runCone
void runCone(const RPCLogCone &cone)
Definition: RPCTriggerCrate.cc:49
gather_cfg.cout
cout
Definition: gather_cfg.py:144
MuonsGrabber::Instance
static MuonsGrabber & Instance()
Definition: MuonsGrabber.cc:48
RPCTriggerConfiguration::getTBsInTC
virtual int getTBsInTC()=0
returns number og Trigger Boards in one Trigger Crate.
L1RpcTBMuonsVec
std::vector< RPCTBMuon > L1RpcTBMuonsVec
Definition: RPCTBMuon.h:218
RPCLogCone
Definition: RPCLogCone.h:23
RPCTriggerCrate::runTCGBSorter
L1RpcTBMuonsVec runTCGBSorter()
Definition: RPCTriggerCrate.cc:18
hltPFPuppi_cfi.cone
cone
Definition: hltPFPuppi_cfi.py:32
RPCTriggerConfiguration::getTBNum
virtual int getTBNum(const RPCConst::l1RpcConeCrdnts &coneCrdnts)=0
Returns the index of TB (in TC) that should run given LogCone.
RPCTriggerCrate::m_TCGhostBusterSorter
RPCTCGhostBusterSorter m_TCGhostBusterSorter
Definition: RPCTriggerCrate.h:40
RPCTriggerCrate::RPCTriggerCrate
RPCTriggerCrate(RPCTriggerConfiguration *triggerConfig, int tcNum)
Definition: RPCTriggerCrate.cc:6
RPCTriggerCrate::m_TBsVec
std::vector< RPCTriggerBoard > m_TBsVec
Here TB belonging to thie TC are stored.
Definition: RPCTriggerCrate.h:38
RPCTriggerCrate.h
RPCTriggerBoard
Definition: RPCTriggerBoard.h:20
L1RpcTBMuonsVec2
std::vector< L1RpcTBMuonsVec > L1RpcTBMuonsVec2
Definition: RPCTBMuon.h:219
MuonsGrabber::addMuon
void addMuon(RPCTBMuon &mu, int lvl, int region, int hs, int index)
Definition: MuonsGrabber.cc:118
RPCTriggerCrate::m_WasMuon
bool m_WasMuon
Definition: RPCTriggerCrate.h:42
RPCTriggerCrate::m_TriggerConfig
RPCTriggerConfiguration * m_TriggerConfig
Definition: RPCTriggerCrate.h:36
RPCTriggerConfiguration
Definition: RPCTriggerConfiguration.h:13
RPCTriggerCrate::m_TCNumber
int m_TCNumber
The number of this TriggerCrate (0 - 11)
Definition: RPCTriggerCrate.h:34
RPCTCGhostBusterSorter::run
L1RpcTBMuonsVec run(L1RpcTBMuonsVec2 &tbMuonsVec)
Definition: RPCTCGhostBusterSorter.cc:12
MuonsGrabber.h