27 printf(
"ExampleGRoot::ctor!\n");
29 fCanvas =
new TCanvas(
"example",
"example", 500, 500);
30 fRndm =
new TRandom3();
35 printf(
"ExampleGRoot::dtor!\n");
43 printf(
"BeginRun, run %d, file %s\n", runinfo->
fRunNo, runinfo->
fFileName.c_str());
44 uint32_t run_start_time_binary = 0;
45 runinfo->
fOdb->
RU32(
"/Runinfo/Start time binary", &run_start_time_binary);
46 time_t run_start_time = run_start_time_binary;
47 printf(
"ODB Run start time: %d: %s", (
int)run_start_time, ctime(&run_start_time));
50 hperrun =
new TH1D(
"hperrun",
"hperrun", 200, -100, 100);
51 hExample =
new TH1D(
"hexample",
"hexample", 100, -5, 5);
62 uint32_t run_stop_time_binary = 0;
63 runinfo->
fOdb->
RU32(
"/Runinfo/Stop time binary", &run_stop_time_binary);
64 time_t run_stop_time = run_stop_time_binary;
65 printf(
"ODB Run stop time: %d: %s", (
int)run_stop_time, ctime(&run_stop_time));
66 hperrun->SaveAs(
"hperrun.root");
72 printf(
"NextSubrun, run %d, file %s\n", runinfo->
fRunNo, runinfo->
fFileName.c_str());
77 printf(
"PauseRun, run %d\n", runinfo->
fRunNo);
82 printf(
"ResumeRun, run %d\n", runinfo->
fRunNo);
90 for (
int i=0; i<12; i++)
97 TMBank* bslow =
event->FindBank(
"SLOW");
130 void Init(
const std::vector<std::string> &args)
142 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 ExampleGRootFactory)
void AnalyzeSpecialEvent(TARunInfo *runinfo, TMEvent *event)
void ResumeRun(TARunInfo *runinfo)
void EndRun(TARunInfo *runinfo)
ExampleGRoot(TARunInfo *runinfo)
TAFlowEvent * Analyze(TARunInfo *runinfo, TMEvent *event, TAFlags *flags, TAFlowEvent *flow)
void BeginRun(TARunInfo *runinfo)
void PauseRun(TARunInfo *runinfo)
void NextSubrun(TARunInfo *runinfo)