62 printf(
"Example1::ctor, run %d, file %s\n", runinfo->
fRunNo, runinfo->
fFileName.c_str());
69 printf(
"Example1::dtor!\n");
77 flow =
new Object2(flow,
"some text");
97 printf(
"Example2::ctor, run %d, file %s\n", runinfo->
fRunNo, runinfo->
fFileName.c_str());
104 printf(
"Example2::dtor!\n");
111 printf(
"Example2::PreEndRun, run %d\n", runinfo->
fRunNo);
113 double *dptr =
new double;
116 flow =
new Object3(flow, dptr);
125 double *dptr =
new double;
128 flow =
new Object3(flow, dptr);
135 printf(
"Example2::AnalyzeFlowEvent, run %d\n", runinfo->
fRunNo);
146 printf(
"flow event %p, o1: %p, o2: %p, o3: %p\n", f, o1, o2, o3);
149 printf(
"object1 int value: %d\n", o1->
fIntValue);
152 printf(
"object2 string value: %s\n", o2->
fStringValue.c_str());
155 printf(
"object3 pointer to double value: %f\n", *o3->
fPtrValue);
171 printf(
"find object1 int value: %d\n", o1->
fIntValue);
174 printf(
"find object2 string value: %s\n", o2->fStringValue.c_str());
177 printf(
"find object3 pointer to double value: %f\n", *o3->fPtrValue);
190 printf(
"Do some function here... maybe some fitting function from root that isn't threadsafe\n");
Example1(TARunInfo *runinfo)
TAFlowEvent * Analyze(TARunInfo *runinfo, TMEvent *event, TAFlags *flags, TAFlowEvent *flow)
TAFlowEvent * AnalyzeFlowEvent(TARunInfo *runinfo, TAFlags *flags, TAFlowEvent *flow)
void PreEndRun(TARunInfo *runinfo)
TAFlowEvent * AnalyzeFlowEvent(TARunInfo *runinfo, TAFlags *flags, TAFlowEvent *flow)
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 >)