22 printf(
"ExampleRoot::ctor!\n");
28 printf(
"ExampleRoot::dtor!\n");
33 printf(
"BeginRun, run %d, file %s\n", runinfo->
fRunNo, runinfo->
fFileName.c_str());
34 uint32_t run_start_time_binary = 0;
35 runinfo->
fOdb->
RU32(
"/Runinfo/Start time binary", &run_start_time_binary);
36 time_t run_start_time = run_start_time_binary;
37 printf(
"ODB Run start time: %d: %s", (
int)run_start_time, ctime(&run_start_time));
40 hperrun =
new TH1D(
"hperrun",
"hperrun", 200, -100, 100);
46 uint32_t run_stop_time_binary = 0;
47 runinfo->
fOdb->
RU32(
"/Runinfo/Stop time binary", &run_stop_time_binary);
48 time_t run_stop_time = run_stop_time_binary;
49 printf(
"ODB Run stop time: %d: %s", (
int)run_stop_time, ctime(&run_stop_time));
50 hperrun->SaveAs(
"hperrun.root");
56 printf(
"PauseRun, run %d\n", runinfo->
fRunNo);
61 printf(
"ResumeRun, run %d\n", runinfo->
fRunNo);
70 TMBank* bslow =
event->FindBank(
"SLOW");
97 void Init(
const std::vector<std::string> &args)
109 printf(
"NewRunObject, run %d, file %s\n", runinfo->
fRunNo, runinfo->
fFileName.c_str());
void Init(const std::vector< std::string > &args)
TARunObject * NewRunObject(TARunInfo *runinfo)
virtual void RU32(const char *varname, uint32_t *value, bool create=false, MVOdbError *error=NULL)=0
uint32_t serial_number
MIDAS event serial number.
uint32_t data_size
MIDAS event data size.
uint16_t event_id
MIDAS event ID.
char * GetBankData(const TMBank *)
get pointer to MIDAS data bank
static TARegister tar(new ExampleRootFactory)
void EndRun(TARunInfo *runinfo)
void ResumeRun(TARunInfo *runinfo)
TAFlowEvent * Analyze(TARunInfo *runinfo, TMEvent *event, TAFlags *flags, TAFlowEvent *flow)
void BeginRun(TARunInfo *runinfo)
ExampleRoot(TARunInfo *runinfo)
void AnalyzeSpecialEvent(TARunInfo *runinfo, TMEvent *event)
void PauseRun(TARunInfo *runinfo)