Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:30:33

0001 #ifndef TTULOGICUNIT_H
0002 #define TTULOGICUNIT_H 1
0003 
0004 // Include files
0005 #include "L1Trigger/RPCTechnicalTrigger/interface/LogicTool.h"
0006 #include "L1Trigger/RPCTechnicalTrigger/interface/RPCLogicUnit.h"
0007 #include "L1Trigger/RPCTechnicalTrigger/interface/TTULogic.h"
0008 #include "L1Trigger/RPCTechnicalTrigger/interface/TTUInput.h"
0009 
0010 #include "CondFormats/RPCObjects/interface/TTUBoardSpecs.h"
0011 
0012 #include <bitset>
0013 
0014 /** @class TTULogicUnit TTULogicUnit.h
0015  *  
0016  *
0017  *  @author Andres Osorio
0018  *  @date   2008-10-25
0019  */
0020 
0021 class TTULogicUnit : public RPCLogicUnit {
0022 public:
0023   /// Standard constructor
0024   TTULogicUnit();
0025 
0026   TTULogicUnit(const char*);
0027 
0028   bool initialise();
0029 
0030   void setlogic(const char*);
0031 
0032   void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig&);
0033 
0034   void run(const TTUInput&);
0035 
0036   void run(const TTUInput&, int);
0037 
0038   bool isTriggered() { return m_logic->m_triggersignal; };
0039 
0040 protected:
0041 private:
0042   std::string m_logtype;
0043 
0044   std::unique_ptr<TTULogic> m_logic;
0045 
0046   bool m_debug;
0047 };
0048 #endif  // TTUPAC_H