1 #ifndef MACRO_FUN4ALLG4MYDETECTOR_C
2 #define MACRO_FUN4ALLG4MYDETECTOR_C
4 #include <mydetector/MyDetectorSubsystem.h>
25 R__LOAD_LIBRARY(libfun4all.so)
26 R__LOAD_LIBRARY(libg4detectors.so)
27 R__LOAD_LIBRARY(libMyDetector.so)
28 R__LOAD_LIBRARY(libg4histos.so)
54 gen->
set_phi_range(-14.5 / 180 * TMath::Pi(), 14.5 / 180 * TMath::Pi());
77 MyDetectorSubsystem *mydet =
new MyDetectorSubsystem(
"MyDetector1");
96 hits->
AddNode(
"MyDetector1_0", 0);
116 cout <<
"Print out Detector parameters" << endl;
122 cout <<
"Now open the ntuple file with " << endl;
123 cout <<
" root.exe G4HitNtuple.root" << endl;
124 cout <<
"and draw the 3d hit distribution," << endl;
125 cout <<
"exit hits in black, entry hits in red:" << endl;
126 cout <<
" hitntup->Draw(\"x1:y1:z1\")" << endl;
127 cout <<
" hitntup->SetMarkerColor(2)" << endl;
128 cout <<
" hitntup->Draw(\"x0:y0:z0\",\"\",\"same\")" << endl;