BOSS 7.0.6
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
 

Detailed Description

Definition at line 12 of file StepDecision.h.

Constructor & Destructor Documentation

◆ StepDecision()

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()

StepDecision::~StepDecision ( )

Definition at line 26 of file StepDecision.cxx.

26{ }

Member Function Documentation

◆ execDecision()

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}
const std::string & result() const
Definition: Signature.h:42
const std::string & midresult() const
Definition: Signature.h:45
int isCriteriaMatched()
For trigger.
Definition: Signature.cxx:117

Referenced by StepHandler::execute().

◆ execute()

StatusCode StepDecision::execute ( )
inline

Definition at line 21 of file StepDecision.h.

21{return StatusCode::SUCCESS;};

◆ finalize()

StatusCode StepDecision::finalize ( )
inline

Definition at line 22 of file StepDecision.h.

22{return StatusCode::SUCCESS;};

◆ getBehaviour()

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

Definition at line 26 of file StepDecision.h.

26{ return m_behaviour; }

Referenced by StepHandler::execute().

◆ getContinue()

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

Definition at line 27 of file StepDecision.h.

27{ return m_continue; }

Referenced by StepHandler::execute().

◆ initDecision()

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().

◆ initialize()

StatusCode StepDecision::initialize ( )
inline

Definition at line 20 of file StepDecision.h.

20{return StatusCode::SUCCESS;};

◆ isEnabled()

virtual bool StepDecision::isEnabled ( ) const
inlinevirtual

Definition at line 19 of file StepDecision.h.

19{return m_isEnabled;};

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