Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:39

0001 // Include files
0002 
0003 // local
0004 #include "L1Trigger/RPCTechnicalTrigger/interface/TTUSectorORLogic.h"
0005 
0006 //-----------------------------------------------------------------------------
0007 // Implementation file for class : TTUSectorORLogic
0008 //
0009 // 2009-06-10 : Andres Felipe Osorio Oliveros
0010 //-----------------------------------------------------------------------------
0011 
0012 //=============================================================================
0013 // Standard constructor, initializes variables
0014 //=============================================================================
0015 TTUSectorORLogic::TTUSectorORLogic() {
0016   m_triggersignal = false;
0017 
0018   m_maxsectors = 12;
0019 
0020   m_debug = false;
0021 }
0022 //=============================================================================
0023 // Destructor
0024 //=============================================================================
0025 TTUSectorORLogic::~TTUSectorORLogic() {}
0026 
0027 //=============================================================================
0028 void TTUSectorORLogic::setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig& boardspecs) {}
0029 
0030 bool TTUSectorORLogic::process(const TTUInput& inmap) {
0031   if (m_debug)
0032     std::cout << "TTUSectorORLogic::process starts" << std::endl;
0033 
0034   m_triggersignal = false;
0035 
0036   for (int i = 0; i < m_maxsectors; ++i)
0037     m_triggersignal |= inmap.m_rbcDecision[i];
0038 
0039   if (m_debug)
0040     std::cout << "TTUSectorORLogic " << m_triggersignal << std::endl;
0041 
0042   if (m_debug)
0043     std::cout << "TTUSectorORLogic>process ends" << std::endl;
0044 
0045   return true;
0046 }