|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef EVENT_LOOP_ALGORITHM_HH
6 #define EVENT_LOOP_ALGORITHM_HH
21 class Algorithm :
public TNamed,
public INamedInterface
283 virtual const std::string&
name()
const;
void sysSetupJob(Job &job)
effects: give the algorithm a chance to intialize the job with anything this algorithm needs.
virtual StatusCode fileExecute()
effects: do all the processing that needs to be done once per file
void testInvariant() const
effects: test the invariant of this object guarantee: no-fail
void setMsgLevel(int level)
set the message level for the message stream for this object
virtual StatusCode execute()
effects: process the next event guarantee: basic failures: algorithm dependent
std::string m_msgName
the algorithm name for which the message stream has been instantiated
bool msgLvl(int lvl) const
whether we are configured to print messages at the given level
asg::SgTEvent * m_evtStorePtr
the value of evtStore
virtual StatusCode postExecute()
effects: do the post-processing for the event guarantee: basic failures: algorithm dependent rational...
TH1 * hist(const std::string &name) const
get the histogram with the given name
virtual StatusCode changeInput(bool firstFile)
effects: do all changes to work with a new input file, e.g.
virtual StatusCode finalize()
effects: do everything that needs to be done after completing work on this worker guarantee: basic fa...
MsgStream * m_msg
the message stream, if it has been instantiated
asg::SgTEvent * evtStore() const
get the (main) event store for this algorithm
std::string m_nameCache
the cache for name
::StatusCode StatusCode
StatusCode definition for legacy code.
the interface for algorithms to access IWorker
virtual StatusCode initialize()
effects: do everything that needs to be done before running the algorithm, e.g.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
IWorker * wk() const
description: the worker that is controlling us guarantee: no-fail
virtual const std::string & name() const
MsgStream & msg() const
messaging interface
int m_msgLevel
the message level configured
Wrapper for TEvent to make it look like StoreGate.
Algorithm()
effects: standard default constructor guarantee: strong failures: low level errors I
~Algorithm()
effects: standard destructor guarantee: no-fail
virtual StatusCode histInitialize()
effects: this is a pre-initialization routine that is called before changeInput is called.
void book(const TH1 &hist)
book the given histogram
MsgStream & msg(int level) const
the message stream for this object, configured for the given level
virtual bool hasName(const std::string &name) const
returns: whether this algorithm has the given name guarantee: basic failures: algorithm dependent rat...
virtual StatusCode histFinalize()
effects: this is a post-initialization routine that is called after finalize has been called.
virtual StatusCode endOfFile()
effects: do the post-processing for each input file guarantee: basic failures: algorithm dependent ra...
virtual StatusCode setupJob(Job &job)
effects: give the algorithm a chance to intialize the job with anything this algorithm needs.
asg::SgTEvent m_evtStore
when configured, the object returned by evtStore
an IAlgorithmWrapper for AnaAlgorithm