ATLAS Offline Software
|
the interface for algorithms to access IWorker More...
#include <IWorker.h>
Public Member Functions | |
virtual void | addOutputList (const std::string &name, TObject *output_swallow)=0 |
effects: add a given object to the output. More... | |
virtual TFile * | getOutputFile (const std::string &label) const =0 |
effects: get the output file that goes into the dataset with the given label. More... | |
virtual TFile * | getOutputFileNull (const std::string &label) const =0 |
effects: get the output file that goes into the dataset with the given label. More... | |
virtual const SH::MetaObject * | metaData () const =0 |
description: the sample meta-data we are working on guarantee: no-fail invariant: metaData != 0 rationale: this can be used for accessing sample meta-data More... | |
virtual TTree * | tree () const =0 |
description: the tree we are running on guarantee: no-fail More... | |
virtual Long64_t | treeEntry () const =0 |
description: the entry in the tree we are reading guarantee: no-fail More... | |
virtual TFile * | inputFile () const =0 |
description: the file we are reading the current tree from guarantee: no-fail More... | |
virtual std::string | inputFileName () const =0 |
the name of the file we are reading the current tree from, without the path component More... | |
virtual TTree * | triggerConfig () const =0 |
description: the trigger config tree from the input file, or NULL if we did not find it guarantee: strong failures: i/o errors More... | |
virtual xAOD::TEvent * | xaodEvent () const =0 |
description: the xAOD event and store guarantee: strong failures: out of memory I failures: TEventSvc not configured postcondition: result != 0 More... | |
virtual xAOD::TStore * | xaodStore () const =0 |
virtual EL::Algorithm * | getAlg (const std::string &name) const =0 |
effects: returns the algorithms with the given name or NULL if there is none guarantee: strong failures: out of memory II More... | |
virtual void | skipEvent ()=0 |
effects: skip the current event, i.e. More... | |
virtual bool | filterPassed () const noexcept=0 |
whether the current algorithm passed its filter criterion for the current event More... | |
virtual void | setFilterPassed (bool val_filterPassed) noexcept=0 |
set the value of filterPassed More... | |
virtual void | addOutput (TObject *output_swallow)=0 |
effects: add an object to the output. More... | |
virtual TObject * | getOutputHist (const std::string &name) const =0 |
get the output histogram with the given name More... | |
virtual ::StatusCode | addTree (const TTree &tree, const std::string &stream)=0 |
Add a tree to the output, into an output stream/file. More... | |
virtual TTree * | getOutputTree (const std::string &name, const std::string &stream) const =0 |
Get the pointer to an output tree with a given name/stream. More... | |
the interface for algorithms to access IWorker
Up to now (16 Jan 19) algorithms could directly access the worker object. However, there is no good reason for algorithms to access the worker directly, so I now put an interface between the two.
|
pure virtualinherited |
effects: add an object to the output.
the worker takes over ownership of the object, but the caller may maintain a reference to it guarantee: basic, argument is always swallowed failures: out of memory I requires: output_swallow != 0 warning: so far I placed no requirements on the output objects. I may do that at a later stage though, possibly breaking existing code.
Implemented in EL::Worker.
|
pure virtual |
effects: add a given object to the output.
instead of trying to merge the outputs from multiple jobs the output file will contain a TList of the given name with the objects from all the output. guarantee: basic, argument is always swallowed failures: out of memory II requires: output_swallow != 0 rationale: This was primarily build to allow the GRL output to be collected from EventLoop jobs, but it can be used for any kind of output that can not or should not be merged.
Implemented in EL::Worker.
|
pure virtualinherited |
Add a tree to the output, into an output stream/file.
tree | The tree to put into the output stream/file |
stream | The name of the stream/file to put the tree into. |
Implemented in EL::Worker.
|
pure virtualnoexceptinherited |
whether the current algorithm passed its filter criterion for the current event
Implemented in EL::Worker.
|
pure virtual |
effects: returns the algorithms with the given name or NULL if there is none guarantee: strong failures: out of memory II
Implemented in EL::Worker.
|
pure virtual |
effects: get the output file that goes into the dataset with the given label.
this dataset has to be registered before the job is submitted. typically that happens in the doSetupJob method. guarantee: strong failures: no dataset with the given label postcondition: result != 0 note: the default value for the argument corresponds to the default label value in the OutputInfo class.
Implemented in EL::Worker.
|
pure virtual |
effects: get the output file that goes into the dataset with the given label.
this dataset has to be registered before the job is submitted. typically that happens in the doSetupJob method. guarantee: strong failures: internal errors note: the default value for the argument corresponds to the default label value in the OutputInfo class. rationale: this method was added to support optional output files, i.e.: the algorithm leaves it to the user whether or not the output file gets configured. then the algorithm just checks whether the output file is there. if so it fills it, otherwise it ignores it.
Implemented in EL::Worker.
|
pure virtualinherited |
get the output histogram with the given name
This is mostly meant, so that I can emulate the Athena histogram mechanism.
Implemented in EL::Worker.
|
pure virtualinherited |
Get the pointer to an output tree with a given name/stream.
name | The name of the tree to find |
stream | The stream/file to find the tree in |
nullptr
if not Implemented in EL::Worker.
|
pure virtual |
description: the file we are reading the current tree from guarantee: no-fail
Implemented in EL::Worker.
|
pure virtual |
the name of the file we are reading the current tree from, without the path component
Implemented in EL::Worker.
|
pure virtual |
description: the sample meta-data we are working on guarantee: no-fail invariant: metaData != 0 rationale: this can be used for accessing sample meta-data
Implemented in EL::Worker.
|
pure virtualnoexceptinherited |
|
pure virtual |
effects: skip the current event, i.e.
skip the rest of the algorithms for this event guarantee: no-fail rationale: if you have an analysis strategy in which you divide work into multiple algorithms you may want to have dedicated algorithms for event selection that then skip later algorithms that fill histograms
Implemented in EL::Worker.
|
pure virtual |
description: the tree we are running on guarantee: no-fail
Implemented in EL::Worker.
|
pure virtual |
description: the entry in the tree we are reading guarantee: no-fail
Implemented in EL::Worker.
|
pure virtual |
description: the trigger config tree from the input file, or NULL if we did not find it guarantee: strong failures: i/o errors
Implemented in EL::Worker.
|
pure virtual |
description: the xAOD event and store guarantee: strong failures: out of memory I failures: TEventSvc not configured postcondition: result != 0
Implemented in EL::Worker.
|
pure virtual |
Implemented in EL::Worker.