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/RBCTestLogic.h"
0005 
0006 //-----------------------------------------------------------------------------
0007 // Implementation file for class : RBCTestLogic
0008 //
0009 // 2008-10-13 : Andres Osorio
0010 //-----------------------------------------------------------------------------
0011 
0012 //=============================================================================
0013 // Standard constructor, initializes variables
0014 //=============================================================================
0015 RBCTestLogic::RBCTestLogic() {}
0016 //=============================================================================
0017 // Destructor
0018 //=============================================================================
0019 RBCTestLogic::~RBCTestLogic() {}
0020 
0021 //=============================================================================
0022 void RBCTestLogic::process(const RBCInput& _input, std::bitset<2>& _decision) {
0023   std::cout << "RBCTestLogic> Implementing just a plain OR" << '\n';
0024 
0025   std::bitset<15> _data[2];
0026 
0027   _data[0] = _input.input_sec[0];
0028   _data[1] = _input.input_sec[1];
0029 
0030   bool _ds = true;
0031   for (int i = 0; i < 15; ++i)
0032     _ds = _ds | _data[0][i];
0033   _decision.set(0, _ds);
0034 
0035   _ds = true;
0036   for (int i = 0; i < 15; ++i)
0037     _ds = _ds | _data[1][i];
0038   _decision.set(1, _ds);
0039 
0040   //...Layer information:
0041   for (int k = 0; k < 6; ++k) {
0042     m_testlayer[0].set(k, true);
0043     m_testlayer[1].set(k, false);
0044   }
0045 
0046   //....
0047 }
0048 
0049 void RBCTestLogic::setBoardSpecs(const RBCBoardSpecs::RBCBoardConfig& specs) {}