ROOTANA
Functions | Variables
TRootanaEventLoop.cxx File Reference
#include "TRootanaEventLoop.hxx"
#include "TMidasOnline.h"
#include "TPeriodicClass.hxx"
#include "MainWindow.hxx"
#include <TSystem.h>
#include <TROOT.h>
#include <TH1D.h>
#include <stdio.h>
#include <sys/time.h>
#include <iostream>
#include <assert.h>
#include <signal.h>
#include "midasio.h"
Include dependency graph for TRootanaEventLoop.cxx:

Go to the source code of this file.

Functions

void PrintCurrentStats ()
 
int ss_daemon_init ()
 
void onlineEventHandler (const void *pheader, const void *pdata, int size)
 
void onlineBeginRunHandler (int transition, int run, int time)
 
void onlineEndRunHandler (int transition, int run, int time)
 
void MidasPollHandlerLocal ()
 

Variables

struct timeval raLastTime
 Little function for printing the number of processed events and processing rate. More...
 
int raTotalEventsProcessed = 0
 
int raTotalEventsSkippedForAge = 0
 
bool gUseOnlyRecent
 
static bool onlineEventLock = false
 
int numberConsSkipped =0
 
double nextWarn = 1.0
 
int numberOldTimestamps =0
 
double nextWarnTimestamps = 1.0
 
bool disableOnlyRecentMode = false
 
struct timeval lastTimeProcessed
 

Function Documentation

◆ MidasPollHandlerLocal()

void MidasPollHandlerLocal ( )

Definition at line 713 of file TRootanaEventLoop.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onlineBeginRunHandler()

void onlineBeginRunHandler ( int  transition,
int  run,
int  time 
)

Definition at line 690 of file TRootanaEventLoop.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onlineEndRunHandler()

void onlineEndRunHandler ( int  transition,
int  run,
int  time 
)

Definition at line 704 of file TRootanaEventLoop.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onlineEventHandler()

void onlineEventHandler ( const void *  pheader,
const void *  pdata,
int  size 
)

We need to use a regular function, so that it can be passed to the TMidasOnline event handler. This function calles the event loop singleton, allowing the user to add their own function code.

Set the midas event pointer in the physics event.

Definition at line 578 of file TRootanaEventLoop.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrintCurrentStats()

void PrintCurrentStats ( )

Definition at line 45 of file TRootanaEventLoop.cxx.

Here is the caller graph for this function:

◆ ss_daemon_init()

int ss_daemon_init ( )

Definition at line 203 of file TRootanaEventLoop.cxx.

Here is the caller graph for this function:

Variable Documentation

◆ disableOnlyRecentMode

bool disableOnlyRecentMode = false

Definition at line 571 of file TRootanaEventLoop.cxx.

◆ gUseOnlyRecent

bool gUseOnlyRecent

Definition at line 43 of file TRootanaEventLoop.cxx.

◆ lastTimeProcessed

struct timeval lastTimeProcessed

Definition at line 571 of file TRootanaEventLoop.cxx.

◆ nextWarn

double nextWarn = 1.0

Definition at line 566 of file TRootanaEventLoop.cxx.

◆ nextWarnTimestamps

double nextWarnTimestamps = 1.0

Definition at line 570 of file TRootanaEventLoop.cxx.

◆ numberConsSkipped

int numberConsSkipped =0

Definition at line 565 of file TRootanaEventLoop.cxx.

◆ numberOldTimestamps

int numberOldTimestamps =0

Definition at line 569 of file TRootanaEventLoop.cxx.

◆ onlineEventLock

bool onlineEventLock = false
static



The following code is only applicable for online MIDAS programs

Definition at line 561 of file TRootanaEventLoop.cxx.

◆ raLastTime

struct timeval raLastTime

Little function for printing the number of processed events and processing rate.

Definition at line 1 of file TRootanaEventLoop.cxx.

◆ raTotalEventsProcessed

int raTotalEventsProcessed = 0

Definition at line 39 of file TRootanaEventLoop.cxx.

◆ raTotalEventsSkippedForAge

int raTotalEventsSkippedForAge = 0

Definition at line 40 of file TRootanaEventLoop.cxx.