BOSS 7.1.1
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 21 of file StepDecision.cxx.

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

◆ ~StepDecision()

StepDecision::~StepDecision ( )

Definition at line 27 of file StepDecision.cxx.

27{ }

Member Function Documentation

◆ execDecision()

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

Definition at line 50 of file StepDecision.cxx.

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

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 31 of file StepDecision.cxx.

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

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: