3 #ifndef _EmulatorControl
4 #define _EmulatorControl
10 #include "BashColor.h"
25 TString DoROOTAFPConf(Int_t which_run,
const char *path,
const char *which_adf_data,
const char *run_pat, Option_t *opt_adf_pattern,
const char *tmp_rootafp_filename);
51 virtual Bool_t
Init(
const Char_t *rootafp);
52 virtual Bool_t
Init(Int_t which_run,
const char *path,
const char *which_adf_data,
const char *run_name_pattern, Option_t *opt_adf_pattern);
55 virtual Bool_t
Run(UInt_t = kMaxUInt)
85 virtual Bool_t HandleTimer(TTimer* timer);
89 TTask(
"_EmulatorControl",
"0"),
98 TTask(
"_EmulatorControl",
"0"),
103 fTimer(new TTimer()),
114 void Run(UInt_t max_loop = kMaxUInt);
119 virtual void Print(Option_t *option=
"")
const;
125 void Save(Option_t *opt =
"*");
TString GetRunDir() const
to get back the RunDirectory
virtual ADF::NarvalProducer * GetBaseProducer()
It defines the interface needed to be a narval actor (producer).
void Save(Option_t *opt="*")
Save the spectra.
Int_t GetRunNumber() const
to get back the run number
virtual void Print(Option_t *option="") const
virtual ~BaseEmulatorChain()
virtual Bool_t Run(UInt_t=kMaxUInt)
loop
virtual ~EmulatorControl()
virtual ADF::NarvalConsumer * GetBaseConsumer()
virtual Bool_t Init()
It should be overwritten !
It defines the interface needed to be a consumer.
to have a common base class to be able to control the emulator through a TTask
void Run(UInt_t max_loop=kMaxUInt)
Run the emulator.
EmulatorControl(BaseEmulatorChain *emulator)
header file for NarvalInterface.cpp