CMS 3D CMS Logo

Public Member Functions | Private Attributes

RPCTriggerCrate Class Reference

#include <RPCTriggerCrate.h>

List of all members.

Public Member Functions

 RPCTriggerCrate (RPCTriggerConfiguration *triggerConfig, int tcNum)
void runCone (const RPCLogCone &cone)
L1RpcTBMuonsVec runTCGBSorter ()

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.

                                                                                 :
  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));
}

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 53 of file RPCTriggerCrate.cc.

References RPCLogCone::getConeCrdnts(), RPCTriggerConfiguration::getTBNum(), m_TBsVec, m_TriggerConfig, and m_WasMuon.

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);
}

Member Data Documentation

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

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

Definition at line 42 of file RPCTriggerCrate.h.

Referenced by RPCTriggerCrate(), runCone(), and runTCGBSorter().