CMS 3D CMS Logo

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