CMS 3D CMS Logo

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

#include <interface/TTUTwoORLogic.h>

Inheritance diagram for TTUTwoORLogic:
TTULogic

Public Member Functions

bool process (const TTUInput &) override
 
void setBoardSpecs (const TTUBoardSpecs::TTUBoardConfig &) override
 
 TTUTwoORLogic ()
 Standard constructor. More...
 
 ~TTUTwoORLogic () override
 Destructor. More...
 
- Public Member Functions inherited from TTULogic
virtual void setOption (int option)
 
virtual ~TTULogic ()
 

Private Attributes

bool m_debug
 
TTUSectorORLogicm_rbcLogic
 
TTUTrackingAlgm_ttuLogic
 

Additional Inherited Members

- Public Attributes inherited from TTULogic
int m_option
 
bool m_triggersignal
 

Detailed Description

Author
Andres Felipe Osorio Oliveros
Date
2009-06-16

Definition at line 22 of file TTUTwoORLogic.h.

Constructor & Destructor Documentation

TTUTwoORLogic::TTUTwoORLogic ( )

Standard constructor.

Definition at line 20 of file TTUTwoORLogic.cc.

References m_debug, m_rbcLogic, TTULogic::m_triggersignal, and m_ttuLogic.

20  {
21 
22  m_triggersignal = false;
23 
24  m_debug = false;
25 
26  m_ttuLogic = new TTUTrackingAlg();
27 
29 
30 }
bool m_triggersignal
Definition: TTULogic.h:34
TTUTrackingAlg * m_ttuLogic
Definition: TTUTwoORLogic.h:43
TTUSectorORLogic * m_rbcLogic
Definition: TTUTwoORLogic.h:45
TTUTwoORLogic::~TTUTwoORLogic ( )
override

Destructor.

Definition at line 34 of file TTUTwoORLogic.cc.

References m_rbcLogic, and m_ttuLogic.

34  {
35 
36  if ( m_ttuLogic ) delete m_ttuLogic;
37 
38  if ( m_rbcLogic ) delete m_rbcLogic;
39 
40 }
TTUTrackingAlg * m_ttuLogic
Definition: TTUTwoORLogic.h:43
TTUSectorORLogic * m_rbcLogic
Definition: TTUTwoORLogic.h:45

Member Function Documentation

bool TTUTwoORLogic::process ( const TTUInput inmap)
overridevirtual

Implements TTULogic.

Definition at line 53 of file TTUTwoORLogic.cc.

References gather_cfg::cout, m_debug, m_rbcLogic, TTULogic::m_triggersignal, m_ttuLogic, TTUSectorORLogic::process(), and TTUTrackingAlg::process().

Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare(), ConfigBuilder.ConfigBuilder::prepare_ALCA(), ConfigBuilder.ConfigBuilder::prepare_DQM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_PATFILTER(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().

54 {
55 
56  if( m_debug) std::cout << "TTUTwoORLogic::process starts" << std::endl;
57 
58  m_triggersignal = false;
59 
60 
61  m_ttuLogic->process( inmap );
62  m_rbcLogic->process( inmap );
63 
64  bool triggerFromTTU = m_ttuLogic->m_triggersignal;
65 
66  bool triggerFromRBC = m_rbcLogic->m_triggersignal;
67 
68  m_triggersignal = triggerFromTTU || triggerFromRBC;
69 
70  if( m_debug ) std::cout << "TTUTwoORLogic>process ends" << std::endl;
71 
72  return true;
73 
74 }
bool process(const TTUInput &) override
bool process(const TTUInput &) override
bool m_triggersignal
Definition: TTULogic.h:34
TTUTrackingAlg * m_ttuLogic
Definition: TTUTwoORLogic.h:43
TTUSectorORLogic * m_rbcLogic
Definition: TTUTwoORLogic.h:45
void TTUTwoORLogic::setBoardSpecs ( const TTUBoardSpecs::TTUBoardConfig boardspecs)
overridevirtual

Implements TTULogic.

Definition at line 44 of file TTUTwoORLogic.cc.

References m_rbcLogic, m_ttuLogic, TTUSectorORLogic::setBoardSpecs(), and TTUTrackingAlg::setBoardSpecs().

45 {
46 
47  m_ttuLogic->setBoardSpecs( boardspecs );
48 
49  m_rbcLogic->setBoardSpecs( boardspecs );
50 
51 }
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override
TTUTrackingAlg * m_ttuLogic
Definition: TTUTwoORLogic.h:43
TTUSectorORLogic * m_rbcLogic
Definition: TTUTwoORLogic.h:45
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override

Member Data Documentation

bool TTUTwoORLogic::m_debug
private

Definition at line 41 of file TTUTwoORLogic.h.

Referenced by process(), and TTUTwoORLogic().

TTUSectorORLogic* TTUTwoORLogic::m_rbcLogic
private

Definition at line 45 of file TTUTwoORLogic.h.

Referenced by process(), setBoardSpecs(), TTUTwoORLogic(), and ~TTUTwoORLogic().

TTUTrackingAlg* TTUTwoORLogic::m_ttuLogic
private

Definition at line 43 of file TTUTwoORLogic.h.

Referenced by process(), setBoardSpecs(), TTUTwoORLogic(), and ~TTUTwoORLogic().