3 #ifndef Gw_FrameDispatcher
4 #define Gw_FrameDispatcher
16 #ifndef ADF_NarvalInterface
22 #include "TStopwatch.h"
80 static Short_t gDoTimer;
91 static const UInt_t kMaxCycle = 1000u;
104 std::vector< std::pair<Double_t, Double_t> > fCurrentValues;
108 virtual void DoCanvas(TCanvas *c, Option_t *);
116 FrameDispatcher(
const char *,
const char *, TDirectory *mother_watcher_dir = 0x0, TDirectory *mother_tag_watcher_dir = 0x0);
127 Short_t old = gDoTimer;
161 template<
typename Watcher_T> Watcher_T *
Add(
const Char_t *name,
const Char_t *title,
ADF::DFTrigger *t = 0x0)
164 Watcher_T *watcher =
new Watcher_T(name,title);
189 virtual void SetDirectory(TDirectory *mother_dir_of_watcher, TDirectory *mother_dir_for_tag, Bool_t load_objects =
true);
192 virtual void Add(TTask *);
201 virtual void Zero(Option_t * hname =
"pool", Option_t *binning=
"");
203 virtual void Print(Option_t * =
"")
const {;}
virtual void DoCanvas(TCanvas *c, Option_t *)
To be overwritten by real implementation if a canvas is produced.
virtual ~FrameDispatcher()
virtual UInt_t ProcessBlock(ADF::FrameBlock &)
look for a Frame using the Trigger and dispatch it to sustasks
Process a buffer, trigg and dispachs the work to sub-watchers.
TStopwatch fTimeControl
Histograms that displays some statistics.
virtual Bool_t SetTrigger(ADF::DFTrigger *)
This is the default trigger for any added watcher.
Base class for a Watcher.
header file for Trigger.cpp
Watcher_T * Add(const Char_t *name, const Char_t *title, ADF::DFTrigger *t=0x0)
allocate a new watcher so that it creates corectly its directory under the dispatcher directory ...
It defines the interface needed to be a consumer.
virtual void Print(Option_t *="") const
TTreeMaster * AddTreeMaster(const Char_t *name, const Char_t *title, Bool_t Overwrite=false, ADF::DFTrigger *t=0x0)
virtual void Zero(Option_t *hname="pool", Option_t *binning="")
call Zero for all the watchers
Base class for a trigger on a data flow.
Watcher to build a tree with branches processed in several watchers.
virtual void process_initialise(UInt_t *)
do nothing ... not a complete consumer
header file for NarvalInterface.cpp
virtual void process_reset(UInt_t *)
do nothing ... not a complete consumer
static Short_t DoTimer(Short_t dotimer)
To set on/off stopwatch that gives informations about cpu/user time to execute. Switch on only if ask...
virtual void SetDirectory(TDirectory *mother_dir_of_watcher, TDirectory *mother_dir_for_tag, Bool_t load_objects=true)
change directories and Load objects if required