Class Reference for E1039 Core & Analysis Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
int_run.C
Go to the documentation of this file.
1 void int_run() {
2  gROOT->ProcessLine(".x Fun4All_Test.C\(-1\)");
3  //gROOT->ProcessLine(".x Fun4All_G4_E1039_R2.C\(-1\)");
4  gROOT->ProcessLine(".L DisplayOn.C");
5  PHG4Reco* g4 = DisplayOn();
6  g4->ApplyCommand("/vis/modeling/trajectories/generic-0/default/setAuxPtsVisible true");
7  g4->ApplyCommand("/vis/viewer/set/background white");
8  g4->ApplyCommand("/vis/scene/add/axes 0 0 0 14. cm");
9  g4->ApplyCommand("/vis/viewer/set/viewpointThetaPhi 270 90");
10  g4->ApplyCommand("/vis/viewer/zoom 0.5");
11  g4->ApplyCommand("/tracking/verbose 100");
13  se->run(1);
14  se->End();
15 }
virtual int End()
Runs G4 as a subsystem.
Definition: PHG4Reco.h:38
void int_run()
Definition: int_run.C:1
static Fun4AllServer * instance()
Fun4AllServer * se
PHG4Reco * DisplayOn(const char *mac="vis.mac")
Definition: DisplayOn.C:9
int run(const int nevnts=0, const bool require_nevents=false)
run n events (0 means up to end of file)
int ApplyCommand(const std::string &cmd)
interface to G4 cmd interpreter
Definition: PHG4Reco.cc:566