3 #include <TOADatabase.hxx>
4 #include <nd280EventLoop.hxx>
9 namespace AnalysisLoopGlobals {
51 virtual bool SetOption(std::string, std::string);
71 virtual void BeginFile(ND::TVInputFile* input);
77 virtual void EndFile(ND::TVInputFile*);
83 using ND::TND280EventLoopFunction::Finalize;
84 virtual void Finalize(ND::TND280Output*
const output);
103 std::vector<TAnalysisLoop::ModDescriptor>& ModMap,
104 std::string ModuleName);
111 std::vector<TAnalysisLoop::ModDescriptor>
const& ModMap,
112 std::string ModuleName);
bool fGeometry
Flag to control saving ND280 geometry.
std::string CurrentlyProcessingModule
Holds the name of the module that is currently executing TAnalysisBase::Process.
bool fEnableAll
Enables All modules, if a given module isn't disabled in fUserEnabled.
OA_EXCEPTION(EeventAnalysis, EoaCore)
Generate a base exception for the Analysis library.
bool fExit
If set to true during execution will result in execution termination at the end of the next event...
std::vector< ModDescriptor > fAnalysisModules
Internal map of all modules.
bool fSaveOutputOaEventTree
Set automatically if the oaEvent tree needs to be saved in output file.
TGeoManager * fGeom
The ND280 geometry to be saved.
TAnalysisLoop()
Initialize any class specific variables.
int EventNumber
Holds the number of processed events.
std::pair< std::string, ND::TAnalysisModuleBase * > ModDescriptor
Private typedef which makes talking to fAnalysisModules slightly nicer.
void SetModuleDefaults()
Method to set the the default enable/disable values for all modules in fAnalysisModules map...
int fEventCount
Keep track of the events that have been read.
bool fSaveOriginalFullEvent
Flag if the full event (not the analysis format) is also to be saved This overrides any -preselection...
bool operator()(ND::TND280Event &event)
Called for each event inside the event loop, and returns true if the event should be saved to the out...
std::map< std::string, bool > fUserEnabled
Store whether a module has been set to disabled/enables by user as well as whether the disable/enable...
bool fProduction
Controls production mode.
virtual void BeginFile(ND::TVInputFile *input)
Called before the first event of a file is read, but you should prefer TAnalysisLoop::Initialize for ...
virtual void Finalize(ND::TND280Output *const output)
virtual void EndFile(ND::TVInputFile *)
Called after the last event of a file is read, but you should prefer TAnalysisLoop: Finalize() for ge...
void Usage(void)
Print a usage message.
std::vector< ModDescriptor >::iterator ModDescripterator
Private typedef which makes talking to fAnalysisModules slightly nicer.
bool fDisableAll
This is overridden by fEnableAll.
Generate an analysis tree to summarize the event reconstruction.
virtual void Initialize(void)
Called after the arguments are processes by before reading the first event.
bool StopProcessing
Used to notify the event loop to stop processing events and finish quickly.
bool fValidation
Control validation mode.
ModDescripterator FindNamedModule(std::vector< TAnalysisLoop::ModDescriptor > &ModMap, std::string ModuleName)
Searches through TAnalysisLoop::fAnalysisModules for a street module named Bob.
std::vector< ModDescriptor >::const_iterator CModDescripterator
Private typedef which makes talking to fAnalysisModules slightly nicer.
virtual bool SetOption(std::string, std::string)
Set an option and return true if it is valid.