13 TGeoMedium *m = gGeoManager->GetMedium(
"air");
15 m->SetParam(6, 0.005);
16 TGeoMedium *m2 = gGeoManager->GetMedium(
"FscScint");
18 m2->SetParam(6, 0.005);
19 TGeoMedium *m3 = gGeoManager->GetMedium(
"lead");
21 m3->SetParam(6, 0.005);
23 gMC3 =
new TGeant3TGeo(
"C++ Interface to Geant3");
24 cout <<
"-I- G3Config: Geant3 with TGeo has been created for Geane." << endl;
26 PndStack *st =
new PndStack(10);
32 if (gROOT->GetVersionCode() >= 334848) {
33 Ertrio1_t *fErtrio1 = gMC3->fErtrio1;
35 cout <<
"-I- Geane.C: NOPRNT flag set to " << fErtrio1->noprnt << endl;
36 if (fErtrio1->noprnt == 1) {
37 cout <<
"-I- Geane.C: IERR flags are not printed. If you want to switch them on, please set "
38 "fErtrio1->noprnt = 0 in Geane.C"
45 gMC3->SetDEBU(0, 0, 1);
78 Float_t tofmax = 1.e10;
79 Float_t usrcuts[5] = {0., 0., 0., 0., 0.};
80 Float_t gcalpha = 0.999;
82 cout <<
"Energy straggling area parameter from user set to: " << gcalpha << endl;
85 cout <<
"User alpha parameter too low: forced to 0.9" << endl;
103 gMC3->SetECut(gcalpha);
void Config()
Configuration macro for Geant3 VirtualMC.