|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #ifndef ANA_ALGORITHM__ANA_ALGORITHM_H
11 #define ANA_ALGORITHM__ANA_ALGORITHM_H
15 #ifdef XAOD_STANDALONE
25 #include <GaudiKernel/IIncidentListener.h>
26 #include <GaudiKernel/ServiceHandle.h>
38 #ifdef XAOD_STANDALONE
68 #ifdef XAOD_STANDALONE
69 :
public asg::AsgComponent
90 ISvcLocator* pSvcLocator);
104 #ifdef XAOD_STANDALONE
112 #endif // XAOD_STANDALONE
126 #ifdef XAOD_STANDALONE
162 template<
typename T=TH1>
163 T *
hist (
const std::string&
name)
const;
194 TEfficiency *histeff (
const std::string&
name)
const;
223 TTree *
tree (
const std::string&
name)
const;
257 void setFilterPassed (
bool val_filterPassed);
336 virtual void print ()
const;
423 #ifdef XAOD_STANDALONE
499 bool hasFileExecute ()
const noexcept;
507 bool hasBeginInputFile ()
const noexcept;
515 bool hasEndInputFile ()
const noexcept;
519 #ifndef XAOD_STANDALONE
526 void handle (
const Incident& inc);
535 #ifdef XAOD_STANDALONE
541 #ifdef XAOD_STANDALONE
547 #endif // XAOD_STANDALONE
557 #ifdef XAOD_STANDALONE
563 #ifdef XAOD_STANDALONE
569 std::string m_treeStreamName;
572 #ifdef XAOD_STANDALONE
578 #ifdef XAOD_STANDALONE
::StatusCode requestFileExecute()
register this algorithm to have an implementation of fileexecute
bool m_hasBeginInputFile
the value of hasBeginInputFile
TH2 * hist2d(const std::string &histName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered 2-d histograms.
const ServiceHandle< StoreGateSvc > & ConstMetaStorePtr_t
the interface to the filter functions in the algorithm sequence
virtual ::StatusCode endInputFile()
perform the action for the end of an input file
StatusCode book(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
TEfficiency * efficiency(const std::string &effName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered TEfficiency.
MetaStore_t m_inputMetaStore
Object accessing the input metadata store.
MetaStore_t m_outputMetaStore
Object accessing the output metadata store.
ConstMetaStorePtr_t inputMetaStore() const
the interface to histogram storage on the worker
virtual ::StatusCode execute()
execute this algorithm
virtual ::StatusCode beginInputFile()
perform the action for the beginning of an input file
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
virtual ~AnaAlgorithm() noexcept
standard (virtual) destructor
virtual void print() const
print the state of the algorithm
bool const RAWDATA *ch2 const
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
virtual ::StatusCode fileExecute()
perform the action exactly once for each file in the dataset
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
TH3 * hist3d(const std::string &histName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered 3-d histograms.
the (new) base class for EventLoop algorithms
void handle(const Incident &inc)
receive the given incident
virtual ::StatusCode finalize()
finalize this algorithm
::StatusCode StatusCode
StatusCode definition for legacy code.
The interface to TTree storage on the worker.
the interface for algorithms to access IWorker
::StatusCode requestBeginInputFile()
register this algorithm to have an implementation of beginInputFile
This module defines the arguments passed from the BATCH driver to the BATCH worker.
bool m_hasFileExecute
the value of hasFileExecute
ServiceHandle< StoreGateSvc > MetaStore_t
Type of the metadata store variable in Athena.
::StatusCode requestEndInputFile()
register this algorithm to have an implementation of endInputFile
virtual StatusCode sysInitialize()
Initialization method invoked by the framework.
Wrapper for TEvent to make it look like StoreGate.
ServiceHandle< StoreGateSvc > & MetaStorePtr_t
Type of the metadata store pointer in standalone mode.
bool m_hasEndInputFile
the value of hasEndInputFile
filterPassed
now, add a sequencer: it will only execute seqalg1 and 2 and never 3
TH1 * hist(const std::string &histName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered histograms of any type.
virtual ::StatusCode initialize()
initialize this algorithm
ConstMetaStorePtr_t outputMetaStore() const
TTree * tree(const std::string &treeName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered TTrees.