62 printf(
"Example1::ctor, run %d, file %s\n", runinfo->
fRunNo, runinfo->
fFileName.c_str());
68 printf(
"Example1::dtor!\n");
76 flow =
new Object2(flow,
"some text");
96 printf(
"Example2::ctor, run %d, file %s\n", runinfo->
fRunNo, runinfo->
fFileName.c_str());
102 printf(
"Example2::dtor!\n");
109 printf(
"Example2::PreEndRun, run %d\n", runinfo->
fRunNo);
111 double *dptr =
new double;
114 flow =
new Object3(flow, dptr);
123 double *dptr =
new double;
126 flow =
new Object3(flow, dptr);
133 printf(
"Example2::AnalyzeFlowEvent, run %d\n", runinfo->
fRunNo);
144 printf(
"flow event %p, o1: %p, o2: %p, o3: %p\n", f, o1, o2, o3);
147 printf(
"object1 int value: %d\n", o1->
fIntValue);
150 printf(
"object2 string value: %s\n", o2->
fStringValue.c_str());
153 printf(
"object3 pointer to double value: %f\n", *o3->
fPtrValue);
169 printf(
"find object1 int value: %d\n", o1->
fIntValue);
172 printf(
"find object2 string value: %s\n", o2->fStringValue.c_str());
175 printf(
"find object3 pointer to double value: %f\n", *o3->fPtrValue);
188 printf(
"Do some function here... maybe some fitting function from root that isn't threadsafe\n");
Example1(TARunInfo *runinfo)
TAFlowEvent * AnalyzeFlowEvent(TARunInfo *runinfo, TAFlags *flags, TAFlowEvent *flow)
TAFlowEvent * Analyze(TARunInfo *runinfo, TMEvent *event, TAFlags *flags, TAFlowEvent *flow)
TAFlowEvent * AnalyzeFlowEvent(TARunInfo *runinfo, TAFlags *flags, TAFlowEvent *flow)
void PreEndRun(TARunInfo *runinfo)
TAFlowEvent * Analyze(TARunInfo *runinfo, TMEvent *event, TAFlags *flags, TAFlowEvent *flow)
Example2(TARunInfo *runinfo)
Object1(TAFlowEvent *flow, int value)
Object2(TAFlowEvent *flow, const std::string &stringValue)
Object3(TAFlowEvent *flow, double *doublePtr)
void AddToFlowQueue(TAFlowEvent *)
TAMultithreadHelper * fMtInfo
uint32_t serial_number
MIDAS event serial number.
uint32_t data_size
MIDAS event data size.
uint16_t event_id
MIDAS event ID.
std::chrono::high_resolution_clock::time_point TAClock
#define TAFlag_SKIP_PROFILE
static TARegister tar1(new TAFactoryTemplate< Example1 >)
static TARegister tar2(new TAFactoryTemplate< Example2 >)