BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
StepDecision Class Reference

#include <StepDecision.h>

+ Inheritance diagram for StepDecision:

Public Member Functions

 StepDecision (const std::string &name, ISvcLocator *pSvcLocator)
 
 ~StepDecision ()
 
virtual bool isEnabled () const
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode finalize ()
 
StatusCode initDecision (HltProcessor::Signature *)
 
int execDecision (const std::string &sigID)
 
const std::string & getBehaviour () const
 
const std::string & getContinue () const
 
 StepDecision (const std::string &name, ISvcLocator *pSvcLocator)
 
 ~StepDecision ()
 
virtual bool isEnabled () const
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode finalize ()
 
StatusCode initDecision (HltProcessor::Signature *)
 
int execDecision (const std::string &sigID)
 
const std::string & getBehaviour () const
 
const std::string & getContinue () const
 

Detailed Description

Constructor & Destructor Documentation

◆ StepDecision() [1/2]

StepDecision::StepDecision ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 20 of file StepDecision.cxx.

20 :
21 Algorithm(name, pSvcLocator) {
22 m_isEnabled = false;
23}

◆ ~StepDecision() [1/2]

StepDecision::~StepDecision ( )

Definition at line 26 of file StepDecision.cxx.

26{ }

◆ StepDecision() [2/2]

StepDecision::StepDecision ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

◆ ~StepDecision() [2/2]

StepDecision::~StepDecision ( )

Member Function Documentation

◆ execDecision() [1/2]

int StepDecision::execDecision ( const std::string &  sigID)

Definition at line 49 of file StepDecision.cxx.

49 {
50
51 MsgStream log( messageService(), name() );
52 //log << MSG::DEBUG << "Starting Execution StepDecision" << endreq;
53
54 Signature* sig = m_SigMap[sigID];
55 int decision = sig->isCriteriaMatched();
56
57 m_continue =sig->midresult();
58 m_behaviour = sig->result();
59 //cout << "----"<< m_behaviour<< " "<<m_continue<<endl;
60 return decision;
61}
int isCriteriaMatched()
For trigger.
Definition: Signature.cxx:117

Referenced by StepHandler::execute().

◆ execDecision() [2/2]

int StepDecision::execDecision ( const std::string &  sigID)

◆ execute() [1/2]

StatusCode StepDecision::execute ( )
inline

Definition at line 21 of file EventFilter/HltProcessor/HltSteering/HltSteering-01-01-05/HltSteering/StepDecision.h.

21{return StatusCode::SUCCESS;};

◆ execute() [2/2]

StatusCode StepDecision::execute ( )
inline

Definition at line 21 of file InstallArea/include/HltSteering/HltSteering/StepDecision.h.

21{return StatusCode::SUCCESS;};

◆ finalize() [1/2]

StatusCode StepDecision::finalize ( )
inline

Definition at line 22 of file EventFilter/HltProcessor/HltSteering/HltSteering-01-01-05/HltSteering/StepDecision.h.

22{return StatusCode::SUCCESS;};

◆ finalize() [2/2]

StatusCode StepDecision::finalize ( )
inline

Definition at line 22 of file InstallArea/include/HltSteering/HltSteering/StepDecision.h.

22{return StatusCode::SUCCESS;};

◆ getBehaviour() [1/2]

const std::string & StepDecision::getBehaviour ( ) const
inline

Definition at line 26 of file EventFilter/HltProcessor/HltSteering/HltSteering-01-01-05/HltSteering/StepDecision.h.

26{ return m_behaviour; }

Referenced by StepHandler::execute().

◆ getBehaviour() [2/2]

const std::string & StepDecision::getBehaviour ( ) const
inline

Definition at line 26 of file InstallArea/include/HltSteering/HltSteering/StepDecision.h.

26{ return m_behaviour; }

◆ getContinue() [1/2]

const std::string & StepDecision::getContinue ( ) const
inline

Definition at line 27 of file EventFilter/HltProcessor/HltSteering/HltSteering-01-01-05/HltSteering/StepDecision.h.

27{ return m_continue; }

Referenced by StepHandler::execute().

◆ getContinue() [2/2]

const std::string & StepDecision::getContinue ( ) const
inline

Definition at line 27 of file InstallArea/include/HltSteering/HltSteering/StepDecision.h.

27{ return m_continue; }

◆ initDecision() [1/2]

StatusCode StepDecision::initDecision ( HltProcessor::Signature signature)

Definition at line 30 of file StepDecision.cxx.

30 {
31
32 MsgStream log( messageService(), name() );
33
34 StatusCode sc = service( "HltStoreSvc", m_HltStoreSvc);
35 if( sc.isFailure() ) {
36 log << MSG::FATAL << name() << ": Unable to locate Service HltStoreSvc" << endreq;
37 return sc;
38 }
39
40 std::string sigID = signature->label();
41 m_SigMap[sigID] = signature;
42 log << MSG::INFO << name() << " Find Signature with ID: " << sigID << endreq;
43
44 return StatusCode::SUCCESS;
45}
std::string label() const
Definition: Signature.cxx:113

Referenced by StepHandler::beginRun().

◆ initDecision() [2/2]

StatusCode StepDecision::initDecision ( HltProcessor::Signature )

◆ initialize() [1/2]

StatusCode StepDecision::initialize ( )
inline

Definition at line 20 of file EventFilter/HltProcessor/HltSteering/HltSteering-01-01-05/HltSteering/StepDecision.h.

20{return StatusCode::SUCCESS;};

◆ initialize() [2/2]

StatusCode StepDecision::initialize ( )
inline

Definition at line 20 of file InstallArea/include/HltSteering/HltSteering/StepDecision.h.

20{return StatusCode::SUCCESS;};

◆ isEnabled() [1/2]

virtual bool StepDecision::isEnabled ( ) const
inlinevirtual

◆ isEnabled() [2/2]

virtual bool StepDecision::isEnabled ( ) const
inlinevirtual

Definition at line 19 of file InstallArea/include/HltSteering/HltSteering/StepDecision.h.

19{return m_isEnabled;};

The documentation for this class was generated from the following files: