9 #include "TGeoManager.h"
11 #include "TGeoManager.h"
12 #include "TVirtualMC.h"
28 fUserConfig(UserConfig),
32 new TGeoManager(
"Geometry",
"Geane geometry");
34 TGeoManager::Import(name);
43 fUserConfig(UserConfig),
53 cout <<
"------------------------FairGeane::SetParTask()------------------------------" << endl;
59 cout <<
"------------------------FairGeane::Init ()------------------------------" << endl;
65 if(cuts== TString(
"")) { cuts=
"SetCuts.C"; }
67 TString work = getenv(
"VMCWORKDIR");
68 TString work_config=work+
"/gconfig/";
69 TString config_dir= getenv(
"CONFIG_DIR");
70 Bool_t AbsPath=kFALSE;
71 if (!config_dir.EndsWith(
"/")) { config_dir+=
"/"; }
82 cout <<
"---------------User config is used : " << geaneMacro.Data() <<
"-----------------"<< endl;
92 if (!AbsPath && TString(gSystem->FindFile(config_dir.Data(),geaneMacro)) != TString(
"")) {
93 cout <<
"---User path for Configuration (Geane.C) is used : " << config_dir.Data() << endl;
94 ConfigMacro =geaneMacro;
100 if (!AbsPath &&TString(gSystem->FindFile(config_dir.Data(),cuts)) != TString(
"")) {
101 cout <<
"---User path for Cuts and Processes (SetCuts.C) is used : " << config_dir.Data() << endl;
103 cuts =work_config+
"SetCuts.C";
109 gROOT->LoadMacro(ConfigMacro.Data());
110 gROOT->ProcessLine(
"Config()");
113 gROOT->LoadMacro(cuts);
114 gROOT->ProcessLine(
"SetCuts()");
118 fApp->SetField(field);
120 fApp->InitMC(ConfigMacro.Data(),
"");
122 cout <<
"I- FairGeane::FairGeane: Geane is Initialized " << endl;
142 cout<<
"\033[5m\033[31m -W- FairGeane::SetField This method is not used anymore, use FairRunAna::SetField instead \033[0m " << endl;