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/TTUTwoORLogic.h"
0005 
0006 //-----------------------------------------------------------------------------
0007 // Implementation file for class : TTUTwoORLogic
0008 //
0009 // This logic implements the OR of the two logics TTU or RBC
0010 //
0011 //
0012 // 2009-06-15 : Andres Felipe Osorio Oliveros
0013 //-----------------------------------------------------------------------------
0014 
0015 //=============================================================================
0016 // Standard constructor, initializes variables
0017 //=============================================================================
0018 TTUTwoORLogic::TTUTwoORLogic() : m_ttuLogic{}, m_rbcLogic{}, m_debug{false} { m_triggersignal = false; }
0019 
0020 //=============================================================================
0021 
0022 void TTUTwoORLogic::setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig& boardspecs) {
0023   m_ttuLogic.setBoardSpecs(boardspecs);
0024 
0025   m_rbcLogic.setBoardSpecs(boardspecs);
0026 }
0027 
0028 bool TTUTwoORLogic::process(const TTUInput& inmap) {
0029   if (m_debug)
0030     std::cout << "TTUTwoORLogic::process starts" << std::endl;
0031 
0032   m_triggersignal = false;
0033 
0034   m_ttuLogic.process(inmap);
0035   m_rbcLogic.process(inmap);
0036 
0037   bool triggerFromTTU = m_ttuLogic.m_triggersignal;
0038 
0039   bool triggerFromRBC = m_rbcLogic.m_triggersignal;
0040 
0041   m_triggersignal = triggerFromTTU || triggerFromRBC;
0042 
0043   if (m_debug)
0044     std::cout << "TTUTwoORLogic>process ends" << std::endl;
0045 
0046   return true;
0047 }