CMS 3D CMS Logo

RPCTriggerCrate Class Reference

Class describing the Trigger Crate. More...

#include <L1Trigger/RPCTrigger/interface/RPCTriggerCrate.h>

List of all members.

Public Member Functions

 RPCTriggerCrate (RPCTriggerConfiguration *triggerConfig, int tcNum)
void runCone (const RPCLogCone &cone)
 Runs RPCTriggerBoard::runCone() for every TB.
L1RpcTBMuonsVec runTCGBSorter ()
 If in runCone() any muons were found, runs RPCTriggerBoard::runTBGB() for every TB.

Private Attributes

std::vector< RPCTriggerBoardm_TBsVec
 Here TB belonging to thie TC are stored.
RPCTCGhostBusterSorter m_TCGhostBusterSorter
int m_TCNumber
 The number of this TriggerCrate (0 - 11).
RPCTriggerConfigurationm_TriggerConfig
bool m_WasMuon


Detailed Description

Class describing the Trigger Crate.

In one Trigger Crate thera are Trigger Boards fro one sector.

Author:
Karol Bunkowski (Warsaw)

Definition at line 21 of file RPCTriggerCrate.h.


Constructor & Destructor Documentation

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.

00006                                                                                  :
00007   m_TCGhostBusterSorter(triggerConfig)
00008 {
00009   //m_TCGhostBusterSorter = tcGhostBusterSorter;
00010   m_TriggerConfig = triggerConfig;
00011   m_WasMuon = false;
00012 
00013   m_TCNumber = tcNum;
00014 
00015   for(int iTB = 0; iTB < triggerConfig->getTBsInTC(); iTB++)
00016     m_TBsVec.push_back(RPCTriggerBoard(triggerConfig, iTB, tcNum));
00017 }
//----------------------------------------


Member Function Documentation

void RPCTriggerCrate::runCone ( const RPCLogCone cone  ) 

Runs RPCTriggerBoard::runCone() for every TB.

Cheks, if any non empty muons were found

Definition at line 51 of file RPCTriggerCrate.cc.

00052                                                     {
00053   if(m_TBsVec[m_TriggerConfig->getTBNum(cone.getConeCrdnts())].runCone(cone))
00054     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 GenMuonPlsPt100GeV_cfg::cout, lat::endl(), RPCTriggerConfiguration::getDebugLevel(), LogDebug, m_TBsVec, m_TCGhostBusterSorter, m_TriggerConfig, m_WasMuon, and RPCTCGhostBusterSorter::run().

00019                                                {
00020   if(!m_WasMuon)
00021     return L1RpcTBMuonsVec();
00022 
00023   L1RpcTBMuonsVec2 tbMuonsVec2;
00024   for(unsigned int iTB = 0; iTB < m_TBsVec.size(); iTB++) {
00025     tbMuonsVec2.push_back(m_TBsVec[iTB].runTBGB());
00026   }
00027 
00028   m_WasMuon = false;
00029 
00030   if ( m_TriggerConfig->getDebugLevel()!=0){
00031 
00032     for (unsigned  int iTC = 0; iTC < tbMuonsVec2.size(); iTC++){
00033         for (unsigned  int iTB = 0; iTB < tbMuonsVec2[iTC].size(); iTB++){
00034 #ifndef _STAND_ALONE
00035             LogDebug("RPCHwDebug") << "GB 1 " << iTB << " "
00036               <<tbMuonsVec2[iTC][iTB].printDebugInfo(m_TriggerConfig->getDebugLevel());
00037 #else
00038           std::cout << "GB 1 " << "GB 1 " << iTB << " "
00039                   <<tbMuonsVec2[iTC][iTB].printDebugInfo(m_TriggerConfig->getDebugLevel())
00040                   << std::endl;
00041 #endif //_STAND_ALONE
00042         }
00043     }
00044 
00045   }
00046 
00047   return m_TCGhostBusterSorter.run(tbMuonsVec2);


Member Data Documentation

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(), and runTCGBSorter().

RPCTCGhostBusterSorter RPCTriggerCrate::m_TCGhostBusterSorter [private]

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().

RPCTriggerConfiguration* RPCTriggerCrate::m_TriggerConfig [private]

Definition at line 36 of file RPCTriggerCrate.h.

Referenced by RPCTriggerCrate(), and runTCGBSorter().

bool RPCTriggerCrate::m_WasMuon [private]

Definition at line 42 of file RPCTriggerCrate.h.

Referenced by RPCTriggerCrate(), and runTCGBSorter().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:31:13 2009 for CMSSW by  doxygen 1.5.4