24 TDirectory *MainDir = gROOT;
31 if ( ! emulator.
Init() ) {
32 std::cout <<
"Cannot Init emulator" <<
std::endl;
return;
38 AgataFrameTrigger *trig = AgataFrameTrigger::Build(
"FullEvent",
"event:data event:data:psa data:tracked data:ranc1");
45 rootmaster->
Add<
DoMyKeyTree>(
"KeyTree",
"Branch on event number and timestam");
54 #if !defined(__CINT__)
55 int main(
int argc,
char **argv)
virtual Bool_t Run(UInt_t max_loop=kMaxUInt_t)
loop
built a root tree for the tracked part
built a root tree for the ancillary part
Watcher_T * Add(const Char_t *name, const Char_t *title, Short_t do_spectra, Short_t do_tree)
Allocate a watcher in charge of filling one part of the tree ==> Should inherits from TreeBuilder...
virtual Bool_t SetTrigger(ADF::DFTrigger *)
This is the default trigger for any added watcher.
Cons_actor * GetConsumer()
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 ...
built a root tree for the tracked part
To be used for Agata Data Flow.
built a tree with the event # and the timestamp of the main Frame
int main(int argc, char **argv)
virtual Bool_t Init(const Char_t *rootafp)
Init the emulator using a different root afp file for the producer.
header file for RootAFP.cpp
Watcher to build a tree with branches processed in several watchers.
ADF::LogMessage & endl(ADF::LogMessage &log)
void DoMyTree(TFile *file=0x0)