ROOTANA
Data Structures | Macros | Functions | Variables
manalyzer.cxx File Reference
#include <stdio.h>
#include <unistd.h>
#include <assert.h>
#include "manalyzer.h"
#include "midasio.h"
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <signal.h>
#include <TSystem.h>
#include "TH1D.h"
#include <map>
#include "TMidasOnline.h"
#include <TGMenu.h>
#include <TGButton.h>
#include <TBrowser.h>
Include dependency graph for manalyzer.cxx:

Go to the source code of this file.

Data Structures

class  Profiler
 
class  RunHandler
 
class  OnlineHandler
 
class  EventDumpModule
 
class  EventDumpModuleFactory
 
class  ValueHolder
 
class  TextButton
 
class  MainWindow
 
class  InteractiveModule
 
class  InteractiveModuleFactory
 

Macros

#define CTRL_QUIT   1
 
#define CTRL_NEXT   2
 
#define CTRL_CONTINUE   3
 
#define CTRL_PAUSE   4
 
#define CTRL_NEXT_FLOW   5
 
#define CTRL_TBROWSER   11
 

Functions

static void WaitForAllQueuesEmpty (TAMultithreadHelper *mt)
 
static void WaitForAllThreadsShutdown (TAMultithreadHelper *mt)
 
static void MtQueueFlowEvent (TAMultithreadHelper *mt, int i, TAFlags *flag, TAFlowEvent *flow, bool wait)
 
static int ProcessMidasOnlineOld (const std::vector< std::string > &args, const char *hostname, const char *exptname, int num_analyze, TMWriterInterface *writer, bool multithread, bool profiler, int queue_interval_check)
 
static int ProcessMidasFiles (const std::vector< std::string > &files, const std::vector< std::string > &args, int num_skip, int num_analyze, TMWriterInterface *writer, bool multithread, bool profiler, int queue_interval_check)
 
static int ProcessDemoMode (const std::vector< std::string > &args, int num_skip, int num_analyze, TMWriterInterface *writer, bool multithread, bool profiler, int queue_interval_check)
 
static void help ()
 
static bool starts_with (const std::string &s, const char *prefix)
 
int manalyzer_main (int argc, char *argv[])
 

Variables

static bool gTrace = false
 
static int gDefaultMultithreadQueueLength = 100
 
static int gDefaultMultithreadWaitEmpty = 100
 
static int gDefaultMultithreadWaitFull = 100
 
std::vector< TAFactory * > * gModules = NULL
 
static bool gEnableShowMem = false
 

Macro Definition Documentation

◆ CTRL_CONTINUE

#define CTRL_CONTINUE   3

Definition at line 2074 of file manalyzer.cxx.

◆ CTRL_NEXT

#define CTRL_NEXT   2

Definition at line 2073 of file manalyzer.cxx.

◆ CTRL_NEXT_FLOW

#define CTRL_NEXT_FLOW   5

Definition at line 2076 of file manalyzer.cxx.

◆ CTRL_PAUSE

#define CTRL_PAUSE   4

Definition at line 2075 of file manalyzer.cxx.

◆ CTRL_QUIT

#define CTRL_QUIT   1

Definition at line 2072 of file manalyzer.cxx.

◆ CTRL_TBROWSER

#define CTRL_TBROWSER   11

Definition at line 2078 of file manalyzer.cxx.

Function Documentation

◆ help()

static void help ( )
static

Definition at line 2551 of file manalyzer.cxx.

Here is the caller graph for this function:

◆ manalyzer_main()

int manalyzer_main ( int  argc,
char *  argv[] 
)

Definition at line 2614 of file manalyzer.cxx.

◆ MtQueueFlowEvent()

static void MtQueueFlowEvent ( TAMultithreadHelper mt,
int  i,
TAFlags flag,
TAFlowEvent flow,
bool  wait 
)
static

Definition at line 409 of file manalyzer.cxx.

Here is the caller graph for this function:

◆ ProcessDemoMode()

static int ProcessDemoMode ( const std::vector< std::string > &  args,
int  num_skip,
int  num_analyze,
TMWriterInterface writer,
bool  multithread,
bool  profiler,
int  queue_interval_check 
)
static

Definition at line 1881 of file manalyzer.cxx.

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

◆ ProcessMidasFiles()

static int ProcessMidasFiles ( const std::vector< std::string > &  files,
const std::vector< std::string > &  args,
int  num_skip,
int  num_analyze,
TMWriterInterface writer,
bool  multithread,
bool  profiler,
int  queue_interval_check 
)
static

Definition at line 1721 of file manalyzer.cxx.

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

◆ ProcessMidasOnlineOld()

static int ProcessMidasOnlineOld ( const std::vector< std::string > &  args,
const char *  hostname,
const char *  exptname,
int  num_analyze,
TMWriterInterface writer,
bool  multithread,
bool  profiler,
int  queue_interval_check 
)
static

Definition at line 1647 of file manalyzer.cxx.

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

◆ starts_with()

static bool starts_with ( const std::string &  s,
const char *  prefix 
)
static

Definition at line 2607 of file manalyzer.cxx.

Here is the caller graph for this function:

◆ WaitForAllQueuesEmpty()

static void WaitForAllQueuesEmpty ( TAMultithreadHelper mt)
static

Definition at line 277 of file manalyzer.cxx.

Here is the caller graph for this function:

◆ WaitForAllThreadsShutdown()

static void WaitForAllThreadsShutdown ( TAMultithreadHelper mt)
static

Definition at line 323 of file manalyzer.cxx.

Here is the caller graph for this function:

Variable Documentation

◆ gDefaultMultithreadQueueLength

int gDefaultMultithreadQueueLength = 100
static

Definition at line 273 of file manalyzer.cxx.

◆ gDefaultMultithreadWaitEmpty

int gDefaultMultithreadWaitEmpty = 100
static

Definition at line 274 of file manalyzer.cxx.

◆ gDefaultMultithreadWaitFull

int gDefaultMultithreadWaitFull = 100
static

Definition at line 275 of file manalyzer.cxx.

◆ gEnableShowMem

bool gEnableShowMem = false
static

Definition at line 1963 of file manalyzer.cxx.

◆ gModules

std::vector<TAFactory*>* gModules = NULL

Definition at line 455 of file manalyzer.cxx.

◆ gTrace

bool gTrace = false
static

Definition at line 18 of file manalyzer.cxx.