![]() |
ATLAS Offline Software
|
This allows user libraries (and TopEventSelectionTools and TopEventReconstructionTools) to supply event selection-like tools to the main top-xaod executable. More...
#include <ToolLoaderBase.h>
Public Member Functions | |
ToolLoaderBase () | |
Constructor doesn't do anything. More... | |
virtual | ~ToolLoaderBase () |
Destructor doesn't do anything. More... | |
virtual top::EventSelectorBase * | initTool (const std::string &name, const std::string &line, TFile *outputFile, std::shared_ptr< top::TopConfig > config, EL::Worker *wk=nullptr)=0 |
If you make a new library and you want it to contain some event selection tools you must implement this method. More... | |
ClassDef (top::ToolLoaderBase, 0) | |
This allows user libraries (and TopEventSelectionTools and TopEventReconstructionTools) to supply event selection-like tools to the main top-xaod executable.
To add one of these to your own library you must inherit from this class and implement initTool. The source code for this (or the getting started twiki) should act as a good reference. Basically you want an if (blah == "mytool") then new MyTool().
Definition at line 33 of file ToolLoaderBase.h.
|
inline |
|
inlinevirtual |
top::ToolLoaderBase::ClassDef | ( | top::ToolLoaderBase | , |
0 | |||
) |
|
pure virtual |
If you make a new library and you want it to contain some event selection tools you must implement this method.
This is the only important method for this class and is loaded at the start of top-xaod when constructor the event selection.
name | The name of the event selection used when saving histograms. |
line | This should be a line of text like "JET_N 25000 >= 2". The exact format of the line depends on which tool you are trying to setup. |
outputFile | Some of the tools (histograms for example) need access to the output file. |
wk | Used by EventLoop, try not to worry about it too much. |
Implemented in top::TopEventSelectionToolsLoader, and top::TopEventReconstructionToolsLoader.