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