CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TTULogicUnit Class Reference

#include <TTULogicUnit.h>

Inheritance diagram for TTULogicUnit:
RPCLogicUnit

Public Member Functions

bool initialise ()
 
bool isTriggered ()
 
void run (const TTUInput &)
 
void run (const TTUInput &, int)
 
void setBoardSpecs (const TTUBoardSpecs::TTUBoardConfig &)
 
void setlogic (const char *)
 
 TTULogicUnit ()
 Standard constructor. More...
 
 TTULogicUnit (const char *)
 
- Public Member Functions inherited from RPCLogicUnit
 RPCLogicUnit ()
 Standard constructor. More...
 
 RPCLogicUnit (int, int, int)
 
virtual ~RPCLogicUnit ()
 Destructor. More...
 

Private Attributes

bool m_debug
 
std::unique_ptr< TTULogicm_logic
 
std::string m_logtype
 

Additional Inherited Members

- Public Attributes inherited from RPCLogicUnit
int m_propA
 
int m_propB
 
int m_propC
 

Detailed Description

Author
Andres Osorio
Date
2008-10-25

Definition at line 21 of file TTULogicUnit.h.

Constructor & Destructor Documentation

TTULogicUnit::TTULogicUnit ( )

Standard constructor.

Definition at line 17 of file TTULogicUnit.cc.

References m_debug.

17  : RPCLogicUnit () {
18 
19  m_debug = false;
20 
21 }
RPCLogicUnit()
Standard constructor.
Definition: RPCLogicUnit.h:16
TTULogicUnit::TTULogicUnit ( const char *  logic_type)

Definition at line 23 of file TTULogicUnit.cc.

References m_debug, m_logtype, and AlCaHLTBitMon_QueryRunRegistry::string.

23  : RPCLogicUnit () {
24 
25  m_logtype = std::string( logic_type );
26  m_debug = false;
27 
28 }
std::string m_logtype
Definition: TTULogicUnit.h:40
RPCLogicUnit()
Standard constructor.
Definition: RPCLogicUnit.h:16

Member Function Documentation

bool TTULogicUnit::initialise ( )

Definition at line 31 of file TTULogicUnit.cc.

References gather_cfg::cout, m_debug, m_logic, m_logtype, and LogicTool< GenLogic >::retrieve().

Referenced by TTUBasicConfig::initialise().

32 {
33 
34  LogicTool<TTULogic> logtool;
35  m_logic = logtool.retrieve(m_logtype);
36 
37  if ( ! m_logic ) {
38  if( m_debug ) std::cout << "TTULogicUnit> No logic found \n";
39  return false; };
40 
41  return true;
42 
43 }
std::string m_logtype
Definition: TTULogicUnit.h:40
std::unique_ptr< TTULogic > m_logic
Definition: TTULogicUnit.h:48
std::unique_ptr< GenLogic > retrieve(const std::string &_logic_name)
...
Definition: LogicTool.h:29
bool TTULogicUnit::isTriggered ( )
inline

Definition at line 38 of file TTULogicUnit.h.

References m_logic.

38  {
39  return m_logic->m_triggersignal;
40  };
std::unique_ptr< TTULogic > m_logic
Definition: TTULogicUnit.h:48
void TTULogicUnit::run ( const TTUInput input)

Definition at line 59 of file TTULogicUnit.cc.

References m_logic.

60 {
61 
62  //... check the thresholds
63 
64  //... by Sector
65 
66  //... by Tower
67 
68  //... by Wheel
69 
70  m_logic->process( input );
71 
72  //m_logic->m_triggersignal = false;
73 
74 
75 }
std::unique_ptr< TTULogic > m_logic
Definition: TTULogicUnit.h:48
void TTULogicUnit::run ( const TTUInput input,
int  option 
)

Definition at line 77 of file TTULogicUnit.cc.

References m_logic.

78 {
79 
80  m_logic->setOption( option );
81  m_logic->process( input );
82 
83  //m_logic->m_triggersignal = false;
84 
85 }
std::unique_ptr< TTULogic > m_logic
Definition: TTULogicUnit.h:48
void TTULogicUnit::setBoardSpecs ( const TTUBoardSpecs::TTUBoardConfig boardSpcs)

Definition at line 52 of file TTULogicUnit.cc.

References m_logic.

Referenced by TTUBasicConfig::initialise().

53 {
54 
55  m_logic->setBoardSpecs ( boardSpcs );
56 
57 }
std::unique_ptr< TTULogic > m_logic
Definition: TTULogicUnit.h:48
void TTULogicUnit::setlogic ( const char *  logic)

Definition at line 45 of file TTULogicUnit.cc.

References m_logtype, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by TTUBasicConfig::initialise().

46 {
47 
48  m_logtype = std::string( logic );
49 
50 }
std::string m_logtype
Definition: TTULogicUnit.h:40

Member Data Documentation

bool TTULogicUnit::m_debug
private

Definition at line 50 of file TTULogicUnit.h.

Referenced by initialise(), and TTULogicUnit().

std::unique_ptr<TTULogic> TTULogicUnit::m_logic
private

Definition at line 48 of file TTULogicUnit.h.

Referenced by initialise(), isTriggered(), run(), and setBoardSpecs().

std::string TTULogicUnit::m_logtype
private

Definition at line 40 of file TTULogicUnit.h.

Referenced by initialise(), setlogic(), and TTULogicUnit().