|
ATLAS Offline Software
|
Go to the documentation of this file.
13 #ifndef ATHANALYSISBASECOMPS_ATHANALYSISALGORITHM_H
14 #define ATHANALYSISBASECOMPS_ATHANALYSISALGORITHM_H 1
27 #include "GaudiKernel/ToolHandle.h"
28 #include "GaudiKernel/IIncidentSvc.h"
70 return StatusCode::FAILURE;
81 return StatusCode::FAILURE;
93 virtual void handle(
const Incident& inc )
override;
112 virtual TFile*
currentFile(
const char* evtSelName=
"EventSelector") final;
125 #endif //> !ATHANALYSISBASECOMPS_ATHANALYSISALGORITHM_H
virtual StatusCode endInputFile()
Function called as an input file is being closed.
const ServiceHandle< StoreGateSvc > & outputMetaStore() const
Const accessor for the output metadata store.
virtual StatusCode firstExecute()
Function called when first execute is encountered user can read event information with evtStore()
virtual StatusCode sysInitialize() override
Function initialising the tool in the correct way in Athena.
StatusCode retrieveMetadata(const std::string &folder, const std::string &key, T &out, const IOVTime &time, int channel=-1)
Helper function to access IOVMetaDataContainer information held in InputMetaDataStore,...
virtual ~AthAnalysisAlgorithm() override
ServiceHandle< StoreGateSvc > m_inputMetaStore
Object accessing the input metadata store.
void updateEvtStore(Gaudi::Details::PropertyBase &prop)
StatusCode retrieveMetadata(const std::string &folder, const std::string &key, T &out)
Helper function to access IOVMetaDataContainer information helped in the MetaDataStore.
virtual void handle(const Incident &inc) override
Function receiving incidents from IncidentSvc/TEvent Experts can override but they should ensure they...
const ServiceHandle< StoreGateSvc > & inputMetaStore() const
Const accessor for the input metadata store.
AthAnalysisAlgorithm(const std::string &name)
Constructor taking just a name.
Basic time unit for IOVSvc. Hold time as a combination of run and event numbers.
The Athena Transient Store API.
ServiceHandle< StoreGateSvc > & inputMetaStore()
Accessor for the input metadata store.
::StatusCode StatusCode
StatusCode definition for legacy code.
ServiceHandle< StoreGateSvc > & outputMetaStore()
Accessor for the output metadata store.
virtual StatusCode metaDataStop()
Function called before finalize user can read output metadata from outputMetaStore()
virtual StatusCode beginInputFile()
Function called when a new input file is opened user can read input metadata from inputMetaStore()
def time(flags, cells_name, *args, **kw)
#define ATH_MSG_WARNING(x)
virtual TFile * currentFile(const char *evtSelName="EventSelector") final
Function returning the TFile pointer of the currently open file of the given EventSelector (in athena...
ServiceHandle< StoreGateSvc > m_outputMetaStore
Object accessing the output metadata store.
static std::string retrieveMetadata(const std::string &folder, const std::string &key, const ServiceHandle< StoreGateSvc > &inputMetaStore)
method that always returns as a string you can use from, e.g, pyROOT with evt = ROOT....
virtual StatusCode sysExecute(const EventContext &) override
override to do firstEvent method