QwAnalysis
QwRoot.cc File Reference

ROOT wrapper with Qweak functionality. More...

#include <TSystem.h>
#include <TROOT.h>
#include <TString.h>
#include "QwRint.h"
#include "QwOptions.h"
+ Include dependency graph for QwRoot.cc:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

ROOT wrapper with Qweak functionality.

Definition in file QwRoot.cc.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 20 of file QwRoot.cc.

References getenv_safe_TString().

21 {
22  // Start Qw-Root command prompt
23  QwRint* qwrint = new QwRint("Qweak-Root Analyzer", &argc, argv);
24  // Set some paths
25  TString path = getenv_safe_TString("QWANALYSIS");
26  gROOT->ProcessLine(".include " + path + "/Analysis/include");
27  gROOT->ProcessLine(".include " + path + "/Parity/include");
28  gROOT->ProcessLine(".include " + path + "/Tracking/include");
29  gROOT->ProcessLine("gSystem->Load(\"libCint.so\");");
30  // Run the interface
31  qwrint->Run();
32  // Delete object
33  delete qwrint;
34 }
const TString getenv_safe_TString(const char *name)
Definition: QwOptions.h:40
A ROOT command line interface.
Definition: QwRint.h:25

+ Here is the call graph for this function: