47 void BeginRun(
int transition,
int run,
int time){
50 fTree =
new TTree(
"midas_data",
"MIDAS data");
59 void EndRun(
int transition,
int run,
int time){
76 std::cout <<
"Found BRV1 bank" << std::endl;
77 std::cout <<
"Bank size: " << data->
GetSize() << std::endl;
78 for(
int i = 0; i < data->
GetSize() ; i++){
79 std::cout <<
"Data["<<i<<
"] is " << data->
GetFloat()[i] << std::endl;
103 int main(
int argc,
char *argv[])
106 Analyzer::CreateSingleton<Analyzer>();
void BeginRun(int transition, int run, int time)
bool ProcessMidasEvent(TDataContainer &dataContainer)
float current_readings[9]
void EndRun(int transition, int run, int time)
float voltage_readings[9]
T * GetEventData(const char *name)
Add a templated function that returns event data in the format that we want.
TMidasEvent & GetMidasEvent() const
const float * GetFloat() const
uint32_t GetTimeStamp() const
return the time stamp (unix time in seconds)
static TRootanaEventLoop & Get(void)
void UseBatchMode()
Use a batch mode, where we don't check ROOT status.
int ExecuteLoop(int argc, char *argv[])
Method to actually process the Midas information, either as file or online.
int main(int argc, char *argv[])