47 printf(
"EqAnalyzer::ctor!\n");
51 fEqConfReadConfigFromOdb =
false;
53 fEqConfPeriodMilliSec = 0;
55 fEqConfBuffer =
"ANAA";
60 printf(
"EqAnalyzer::dtor!\n");
65 printf(
"EqAnalyzer::HandleUsage!\n");
68 TMFeResult
HandleInit(
const std::vector<std::string>& args)
70 printf(
"EqAnalyzer::HandleInit!\n");
71 fEqConfReadOnlyWhenRunning =
false;
102 printf(
"ExampleFrontend::ctor, run %d, file %s\n", runinfo->
fRunNo, runinfo->
fFileName.c_str());
109 printf(
"ExampleFrontend::dtor!\n");
123 printf(
"ExampleFrontend::AnalyzeFlowEvent, run %d\n", runinfo->
fRunNo);
133 uint32_t anaa_bank[] = { 1, 2, 3, 4 };
141 fEq->EqWriteStatistics();
153 void Init(
const std::vector<std::string> &args)
155 printf(
"ExampleFrontendFactory::Init!\n");
163 TMFeResult r =
fFe->FeInitEquipments(args);
166 fprintf(stderr,
"Cannot initialize equipments, error message: %s, bye.\n", r.error_message.c_str());
167 fFe->fMfe->Disconnect();
174 printf(
"ExampleFrontendFactory::Finish!\n");
TMFeResult HandleInit(const std::vector< std::string > &args)
EqAnalyzer(const char *eqname, const char *eqfilename)
void Init(const std::vector< std::string > &args)
ExampleFrontend * NewRunObject(TARunInfo *runinfo)
TAFlowEvent * Analyze(TARunInfo *runinfo, TMEvent *event, TAFlags *flags, TAFlowEvent *flow)
TAFlowEvent * AnalyzeFlowEvent(TARunInfo *runinfo, TAFlags *flags, TAFlowEvent *flow)
ExampleFrontend(TARunInfo *runinfo, EqAnalyzer *eq)
TMEventFlow(TAFlowEvent *flow, const TMEvent &event)
void AddBank(const char *bank_name, int tid, const char *buf, size_t size)
add new MIDAS bank
std::vector< char > data
MIDAS event bytes.
uint32_t serial_number
MIDAS event serial number.
uint32_t data_size
MIDAS event data size.
uint16_t event_id
MIDAS event ID.
static TARegister tar(new ExampleFrontendFactory)