JAPAn
Just Another Parity Analyzer
Loading...
Searching...
No Matches
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

◆ main()

int main ( int argc,
char ** argv )

Definition at line 20 of file QwRoot.cc.

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 #if ROOT_VERSION_CODE < ROOT_VERSION(6,0,0)
30 gROOT->ProcessLine("gSystem->Load(\"libCint.so\");");
31 #endif
32 // Run the interface
33 qwrint->Run();
34 // Delete object
35 delete qwrint;
36}
const TString getenv_safe_TString(const char *name)
Definition QwOptions.h:46
A ROOT command line interface.
Definition QwRint.h:29

References getenv_safe_TString().

+ Here is the call graph for this function: