Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
InterStageModule.cxx
Go to the documentation of this file.
1//*-- Author : Ole Hansen 10-Oct-19
2
4//
5// InterStageModule
6//
7// Abstract base class for an "inter-stage" processing module.
8//
9// Similar to a THaPhysicsModule, but with processing after a given
10// analysis stage (Decode, CoarseReconstruct, etc.) This can be used
11// to combine data from different apparatuses early in the processing.
12//
13// Like physics modules, these modules live in the gHaPhysics list.
14//
16
17#include "InterStageModule.h"
18
19namespace Podd {
20
21//_____________________________________________________________________________
22InterStageModule::InterStageModule( const char* name, const char* description,
23 Int_t stage ) :
24 THaAnalysisObject(name, description), fStage(stage), fDataValid(false)
25{
26 // Constructor
27}
28
29//_____________________________________________________________________________
34
35//_____________________________________________________________________________
37{
39 fDataValid = false;
40}
41
42//_____________________________________________________________________________
44{
45 Error(Here(here), "Cannot set. Module already initialized.");
46}
47
48//_____________________________________________________________________________
50{
51 // Define/delete global variables for this module
52
53 static const RVarDef vars[] = {
54 { "good", "Data valid (1=ok)", "fDataValid" },
55 { nullptr }
56 };
57
58 return DefineVarsFromList( vars, mode );
59
60}
61//_____________________________________________________________________________
62
63} // namespace Podd
64
int Int_t
const char Option_t
Option_t Option_t TPoint TPoint const char mode
char name[80]
static const char *const here
Definition THaVar.cxx:64
virtual void Clear(Option_t *opt="")
InterStageModule(const char *name, const char *description, Int_t stage)
virtual Int_t DefineVariables(EMode mode=kDefine)
void PrintInitError(const char *here)
static Int_t DefineVarsFromList(const void *list, EType type, EMode mode, const char *def_prefix, const TObject *obj, const char *prefix, const char *here, const char *comment_subst="")
virtual const char * Here(const char *) const
virtual void Clear(Option_t *="")
virtual void Error(const char *method, const char *msgfmt,...) const
ClassImp(TPyArg)