|
Gaudi Framework, version v23r9 |
| Home | Generated: Thu Jul 18 2013 |
#include <Sequencer.h>


Public Member Functions | |
| Sequencer (const std::string &name, ISvcLocator *svcloc) | |
| Constructor(s) | |
| virtual | ~Sequencer () |
| Destructor. | |
| virtual StatusCode | initialize () |
| Initialization of a sequencer. | |
| virtual StatusCode | reinitialize () |
| Sequencer Reinitialization. | |
| virtual StatusCode | start () |
| Sequencer finalization. | |
| virtual StatusCode | execute () |
| The actions to be performed by the sequencer on an event. | |
| virtual StatusCode | stop () |
| Sequencer finalization. | |
| virtual StatusCode | finalize () |
| Sequencer finalization. | |
| virtual StatusCode | beginRun () |
| Sequencer beginRun. | |
| virtual StatusCode | endRun () |
| Sequencer endRun. | |
| void | resetExecuted () |
| Reset the Sequencer executed state for the current event. | |
| virtual bool | branchFilterPassed () const |
| Was the branch filter passed for the last event? | |
| virtual StatusCode | setBranchFilterPassed (bool state) |
| Set the branch filter passed flag for the last event. | |
| virtual bool | isStopOverride () const |
| Has the StopOverride mode been set? | |
| StatusCode | append (Algorithm *pAlgorithm) |
| Append an algorithm to the sequencer. | |
| StatusCode | appendToBranch (Algorithm *pAlgorithm) |
| Append an algorithm to the sequencer branch. | |
| StatusCode | createAndAppend (const std::string &type, const std::string &name, Algorithm *&pAlgorithm) |
| Create a algorithm and append it to the sequencer. | |
| StatusCode | createAndAppendToBranch (const std::string &type, const std::string &name, Algorithm *&pAlgorithm) |
| Create a algorithm and append it to the sequencer branch. | |
| StatusCode | remove (Algorithm *pAlgorithm) |
| Remove the specified algorithm from the sequencer. | |
| StatusCode | remove (const std::string &name) |
| StatusCode | removeFromBranch (Algorithm *pAlgorithm) |
| StatusCode | removeFromBranch (const std::string &name) |
| std::vector< Algorithm * > * | branchAlgorithms () const |
| List of branch algorithms. | |
| StatusCode | decodeMemberNames () |
| Decode Member Name list. | |
| void | membershipHandler (Property &theProp) |
| "Members" property handler | |
| StatusCode | decodeBranchMemberNames () |
| Decode branch member name list. | |
| void | branchMembershipHandler (Property &theProp) |
| "BranchMembers" property handler | |
Public Member Functions inherited from Algorithm | |
| Algorithm (const std::string &name, ISvcLocator *svcloc, const std::string &version=PACKAGE_VERSION) | |
| Constructor. | |
| virtual | ~Algorithm () |
| Destructor. | |
| virtual StatusCode | sysStart () |
| Reinitialization method invoked by the framework. | |
| virtual StatusCode | sysInitialize () |
| Initialization method invoked by the framework. | |
| virtual StatusCode | sysReinitialize () |
| Reinitialization method invoked by the framework. | |
| virtual StatusCode | sysRestart () |
| Restart method invoked by the framework. | |
| virtual StatusCode | sysExecute () |
| The actions to be performed by the algorithm on an event. | |
| virtual StatusCode | sysStop () |
| System stop. | |
| virtual StatusCode | sysFinalize () |
| System finalization. | |
| virtual StatusCode | sysBeginRun () |
| beginRun method invoked by the framework. | |
| virtual StatusCode | sysEndRun () |
| endRun method invoked by the framework. | |
| virtual const std::string & | name () const |
| The identifying name of the algorithm object. | |
| virtual const std::string & | version () const |
| virtual StatusCode | configure () |
| Dummy implementation of IStateful::configure() method. | |
| virtual StatusCode | terminate () |
| Dummy implementation of IStateful::terminate() method. | |
| virtual StatusCode | restart () |
| the default (empty) implementation of IStateful::restart() method | |
| virtual bool | isExecuted () const |
| Has this algorithm been executed since the last reset? | |
| virtual void | setExecuted (bool state) |
| Set the executed flag to the specified state. | |
| virtual Gaudi::StateMachine::State | FSMState () const |
| returns the current state of the algorithm | |
| virtual Gaudi::StateMachine::State | targetFSMState () const |
| returns the state the algorithm will be in after the ongoing transition | |
| virtual bool | isEnabled () const |
| Is this algorithm enabled or disabled? | |
| virtual bool | filterPassed () const |
| Did this algorithm pass or fail its filter criterion for the last event? | |
| virtual void | setFilterPassed (bool state) |
| Set the filter passed flag to the specified state. | |
| template<class T > | |
| StatusCode | service (const std::string &name, T *&psvc, bool createIf=true) const |
| Access a service by name, creating it if it doesn't already exist. | |
| template<class T > | |
| StatusCode | service (const std::string &svcType, const std::string &svcName, T *&psvc) const |
| Access a service by name and type, creating it if it doesn't already exist. | |
| SmartIF< IService > | service (const std::string &name, const bool createIf=true, const bool quiet=false) const |
| Return a pointer to the service identified by name (or "type/name") | |
| void | setOutputLevel (int level) |
| Set the output level for current algorithm. | |
| SmartIF< IAuditorSvc > & | auditorSvc () const |
| The standard auditor service.May not be invoked before sysInitialize() has been invoked. | |
| SmartIF< IChronoStatSvc > & | chronoSvc () const |
| The standard Chrono & Stat service, Return a pointer to the service if present. | |
| SmartIF< IChronoStatSvc > & | chronoStatService () const |
| Obsoleted name, kept due to the backwards compatibility. | |
| SmartIF< IDataProviderSvc > & | detSvc () const |
| The standard detector data service. | |
| SmartIF< IDataProviderSvc > & | detDataService () const |
| Obsoleted name, kept due to the backwards compatibility. | |
| SmartIF< IConversionSvc > & | detCnvSvc () const |
| The standard detector data persistency conversion service. | |
| SmartIF< IConversionSvc > & | detDataCnvService () const |
| Obsoleted name, kept due to the backwards compatibility. | |
| SmartIF< IDataProviderSvc > & | eventSvc () const |
| The standard event data service. | |
| SmartIF< IDataProviderSvc > & | evtSvc () const |
| shortcut for method eventSvc | |
| SmartIF< IDataProviderSvc > & | eventDataService () const |
| Obsoleted name, kept due to the backwards compatibility. | |
| SmartIF< IConversionSvc > & | eventCnvSvc () const |
| The standard event data persistency conversion service. | |
| SmartIF< IConversionSvc > & | eventDataCnvService () const |
| Obsoleted name, kept due to the backwards compatibility. | |
| SmartIF< IHistogramSvc > & | histoSvc () const |
| The standard histogram service. | |
| SmartIF< IHistogramSvc > & | histogramDataService () const |
| Obsoleted name, kept due to the backwards compatibility. | |
| SmartIF< IMessageSvc > & | msgSvc () const |
| The standard message service. | |
| SmartIF< IMessageSvc > & | messageService () const |
| Obsoleted name, kept due to the backwards compatibility. | |
| SmartIF< INTupleSvc > & | ntupleSvc () const |
| The standard N tuple service. | |
| SmartIF< INTupleSvc > & | ntupleService () const |
| Obsoleted name, kept due to the backwards compatibility. | |
| SmartIF< IRndmGenSvc > & | randSvc () const |
| AIDA-based NTuple service Returns a pointer to the AIDATuple service if present. | |
| SmartIF< IToolSvc > & | toolSvc () const |
| The standard ToolSvc service, Return a pointer to the service if present. | |
| SmartIF< IExceptionSvc > & | exceptionSvc () const |
| Get the exception Service. | |
| SmartIF< IAlgContextSvc > & | contextSvc () const |
| get Algorithm Context Service | |
| SmartIF< ISvcLocator > & | serviceLocator () const |
| The standard service locator. | |
| SmartIF< ISvcLocator > & | svcLoc () const |
| shortcut for method serviceLocator | |
| bool | registerContext () const |
| register for Algorithm Context Service? | |
| StatusCode | createSubAlgorithm (const std::string &type, const std::string &name, Algorithm *&pSubAlg) |
| Create a sub algorithm. | |
| std::vector< Algorithm * > * | subAlgorithms () const |
| List of sub-algorithms. Returns a pointer to a vector of (sub) Algorithms. | |
| virtual StatusCode | setProperty (const Property &p) |
| Implementation of IProperty::setProperty. | |
| virtual StatusCode | setProperty (const std::string &s) |
| Implementation of IProperty::setProperty. | |
| virtual StatusCode | setProperty (const std::string &n, const std::string &v) |
| Implementation of IProperty::setProperty. | |
| virtual StatusCode | getProperty (Property *p) const |
| Implementation of IProperty::getProperty. | |
| virtual const Property & | getProperty (const std::string &name) const |
| Implementation of IProperty::getProperty. | |
| virtual StatusCode | getProperty (const std::string &n, std::string &v) const |
| Implementation of IProperty::getProperty. | |
| virtual const std::vector < Property * > & | getProperties () const |
| Implementation of IProperty::getProperties. | |
| StatusCode | setProperties () |
| Set the algorithm's properties. | |
| template<class T > | |
| Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const |
| Declare the named property. | |
| Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const |
| Declare remote named properties. | |
| SmartIF< IMonitorSvc > & | monitorSvc () const |
| Access the monitor service. | |
| template<class T > | |
| void | declareInfo (const std::string &name, const T &var, const std::string &desc) const |
| Declare monitoring information. | |
| void | declareInfo (const std::string &name, const std::string &format, const void *var, int size, const std::string &desc) const |
| Declare monitoring information (special case) | |
| template<class TYPE > | |
| StatusCode | setProperty (const std::string &name, const TYPE &value) |
| set the property form the value | |
Protected Member Functions | |
| StatusCode | append (Algorithm *pAlgorithm, std::vector< Algorithm * > *theAlgs) |
| Append an algorithm to the sequencer. | |
| StatusCode | createAndAppend (const std::string &type, const std::string &name, Algorithm *&pAlgorithm, std::vector< Algorithm * > *theAlgs) |
| Create a algorithm and append it to the sequencer. | |
| StatusCode | decodeNames (StringArrayProperty &theNames, std::vector< Algorithm * > *theAlgs, std::vector< bool > &theLogic) |
| Decode algorithm names, creating or appending algorithms as appropriate. | |
| StatusCode | execute (std::vector< Algorithm * > *theAlgs, std::vector< bool > &theLogic, Algorithm *&lastAlgorithm, unsigned int first=0) |
| Execute the members in the specified list. | |
| StatusCode | executeMember (Algorithm *theAlgorithm) |
| Execute member algorithm. | |
| StatusCode | remove (const std::string &algname, std::vector< Algorithm * > *theAlgs) |
| Remove the specified algorithm from the sequencer. | |
Protected Member Functions inherited from Algorithm | |
| bool | isInitialized () const |
| Has the Algorithm already been initialized? | |
| bool | isFinalized () const |
| Has the Algorithm already been finalized? | |
| int | outputLevel () const |
| retrieve the Algorithm output level | |
| IntegerProperty & | outputLevelProperty () |
| Accessor for the Message level property. | |
| void | initOutputLevel (Property &prop) |
| callback for output level property | |
Private Member Functions | |
| Sequencer (const Sequencer &a) | |
| Private Copy constructor: NO COPY ALLOWED. | |
| Sequencer & | operator= (const Sequencer &rhs) |
| Private assignment operator: NO ASSIGNMENT ALLOWED. | |
Private Attributes | |
| StringArrayProperty | m_names |
| std::vector< bool > | m_isInverted |
| StringArrayProperty | m_branchNames |
| std::vector< Algorithm * > * | m_branchAlgs |
| std::vector< bool > | m_isBranchInverted |
| BooleanProperty | m_stopOverride |
| bool | m_branchFilterPassed |
Additional Inherited Members | |
Public Types inherited from implements3< IAlgorithm, IProperty, IStateful > | |
| typedef implements3 | base_class |
| Typedef to this class. | |
| typedef extend_interfaces3 < IAlgorithm, IProperty, IStateful > | extend_interfaces_base |
| Typedef to the base of this class. | |
| typedef extend_interfaces_base::ext_iids | interfaces |
| MPL set of all the implemented interfaces. | |
ClassName: Sequencer.
Description: A Sequencer is essentially a list of Algorithms and is responsible for their management. Note that Sequences may themselves contain other Sequences. The default execute( ) implementation loops over the members of the sequence, calling their execute( ) methods. However, this can be modified if a member is disabled, has already been executed, or a member indicates that it's filter fails. The the former two cases the execution of the member is bypassed. In the latter case, the loop is terminated and the Sequencer assumes the same filtered state as the last member.
Definition at line 24 of file Sequencer.h.
| Sequencer::Sequencer | ( | const std::string & | name, |
| ISvcLocator * | svcloc | ||
| ) |
Constructor(s)
Definition at line 22 of file Sequencer.cpp.
|
virtual |
|
private |
Private Copy constructor: NO COPY ALLOWED.
| StatusCode Sequencer::append | ( | Algorithm * | pAlgorithm | ) |
Append an algorithm to the sequencer.
Definition at line 418 of file Sequencer.cpp.
|
protected |
Append an algorithm to the sequencer.
Protected Member Functions.
Definition at line 527 of file Sequencer.cpp.
| StatusCode Sequencer::appendToBranch | ( | Algorithm * | pAlgorithm | ) |
Append an algorithm to the sequencer branch.
Definition at line 425 of file Sequencer.cpp.
|
virtual |
Sequencer beginRun.
Reimplemented from Algorithm.
Definition at line 269 of file Sequencer.cpp.
| std::vector< Algorithm * > * Sequencer::branchAlgorithms | ( | ) | const |
List of branch algorithms.
These are the algorithms that would get executed if a filter algorithm indicated a failure. The branch is located within the main sequence by the first element, which is the filter algorithm.
Definition at line 480 of file Sequencer.cpp.
|
virtual |
Was the branch filter passed for the last event?
Definition at line 399 of file Sequencer.cpp.
| void Sequencer::branchMembershipHandler | ( | Property & | theProp | ) |
"BranchMembers" property handler
Definition at line 517 of file Sequencer.cpp.
| StatusCode Sequencer::createAndAppend | ( | const std::string & | type, |
| const std::string & | name, | ||
| Algorithm *& | pAlgorithm | ||
| ) |
Create a algorithm and append it to the sequencer.
A call to this method creates a child algorithm object. Note that the returned pointer is to Algorithm (as opposed to IAlgorithm), and thus the methods of IProperty are also available for the direct setting of the algorithm's properties. Using this mechanism instead of creating algorithms directly via the new operator is preferred since then the framework may take care of all of the necessary book-keeping.
Definition at line 432 of file Sequencer.cpp.
|
protected |
Create a algorithm and append it to the sequencer.
A call to this method creates a child algorithm object. Note that the returned pointer is to Algorithm (as opposed to IAlgorithm), and thus the methods of IProperty are also available for the direct setting of the algorithm's properties. Using this mechanism instead of creating algorithms directly via the new operator is preferred since then the framework may take care of all of the necessary book-keeping.
Definition at line 549 of file Sequencer.cpp.
| StatusCode Sequencer::createAndAppendToBranch | ( | const std::string & | type, |
| const std::string & | name, | ||
| Algorithm *& | pAlgorithm | ||
| ) |
Create a algorithm and append it to the sequencer branch.
A call to this method creates a child algorithm object. Note that the returned pointer is to Algorithm (as opposed to IAlgorithm), and thus the methods of IProperty are also available for the direct setting of the algorithm's properties. Using this mechanism instead of creating algorithms directly via the new operator is preferred since then the framework may take care of all of the necessary book-keeping.
Definition at line 441 of file Sequencer.cpp.
| StatusCode Sequencer::decodeBranchMemberNames | ( | ) |
Decode branch member name list.
Definition at line 504 of file Sequencer.cpp.
| StatusCode Sequencer::decodeMemberNames | ( | ) |
Decode Member Name list.
Definition at line 485 of file Sequencer.cpp.
|
protected |
Decode algorithm names, creating or appending algorithms as appropriate.
Definition at line 574 of file Sequencer.cpp.
|
virtual |
Sequencer endRun.
Reimplemented from Algorithm.
Definition at line 340 of file Sequencer.cpp.
|
virtual |
The actions to be performed by the sequencer on an event.
This method is invoked once per event.
Definition at line 130 of file Sequencer.cpp.
|
protected |
Execute the members in the specified list.
Definition at line 686 of file Sequencer.cpp.
|
protected |
Execute member algorithm.
Definition at line 726 of file Sequencer.cpp.
|
virtual |
Sequencer finalization.
Reimplemented from Algorithm.
Definition at line 179 of file Sequencer.cpp.
|
virtual |
Initialization of a sequencer.
Typically things like histogram creation, setting up of data structures etc, should be done here. If a sequence has properties specified in the job options file, they will be set to the requested values BEFORE the initialize() method is invoked.
Reimplemented from Algorithm.
Definition at line 50 of file Sequencer.cpp.
|
virtual |
Has the StopOverride mode been set?
Definition at line 412 of file Sequencer.cpp.
| void Sequencer::membershipHandler | ( | Property & | theProp | ) |
"Members" property handler
Definition at line 498 of file Sequencer.cpp.
Private assignment operator: NO ASSIGNMENT ALLOWED.
|
virtual |
Sequencer Reinitialization.
Reimplemented from Algorithm.
Definition at line 98 of file Sequencer.cpp.
| StatusCode Sequencer::remove | ( | Algorithm * | pAlgorithm | ) |
Remove the specified algorithm from the sequencer.
Definition at line 450 of file Sequencer.cpp.
| StatusCode Sequencer::remove | ( | const std::string & | name | ) |
Definition at line 458 of file Sequencer.cpp.
|
protected |
Remove the specified algorithm from the sequencer.
Definition at line 742 of file Sequencer.cpp.
| StatusCode Sequencer::removeFromBranch | ( | Algorithm * | pAlgorithm | ) |
Definition at line 465 of file Sequencer.cpp.
| StatusCode Sequencer::removeFromBranch | ( | const std::string & | name | ) |
Definition at line 473 of file Sequencer.cpp.
|
virtual |
Reset the Sequencer executed state for the current event.
Reimplemented from Algorithm.
Definition at line 371 of file Sequencer.cpp.
|
virtual |
Set the branch filter passed flag for the last event.
Definition at line 405 of file Sequencer.cpp.
|
virtual |
Sequencer finalization.
Reimplemented from Algorithm.
Definition at line 199 of file Sequencer.cpp.
|
virtual |
Sequencer finalization.
Reimplemented from Algorithm.
Definition at line 236 of file Sequencer.cpp.
|
private |
Definition at line 247 of file Sequencer.h.
|
private |
Definition at line 250 of file Sequencer.h.
|
private |
Definition at line 246 of file Sequencer.h.
|
private |
Definition at line 248 of file Sequencer.h.
|
private |
Definition at line 245 of file Sequencer.h.
|
private |
Definition at line 244 of file Sequencer.h.
|
private |
Definition at line 249 of file Sequencer.h.