BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
flConfig.C
Go to the documentation of this file.
1/// Configuration macro for Geant3 VirtualMC
2
3void Config()
4{
5
6 new TFluka("C++ Interface to Fluka", 1 /*verbositylevel*/);
7
8 cout << "GConfig: Fluka has been created." << endl;
9
10 CbmStack* st = new CbmStack();
11 st->SetMinPoints(0);
12 gMC->SetStack(st);
13 gMC->SetProcess("CKOV", 1);
14
15 // set the common cuts
16 TString configm(gSystem->Getenv("VMCWORKDIR"));
17 TString cuts = configm + "/gconfig/SetCuts.C";
18 cout << "Physics cuts with script \n " << cuts.Data() << endl;
19 Int_t cut = gROOT->LoadMacro(cuts.Data());
20 if (cut == 0)
21 gInterpreter->ProcessLine("SetCuts()");
22}
int Int_t
#define gInterpreter
#define gROOT
R__EXTERN TSystem * gSystem
CbmStack.h.
Definition CbmStack.h:43
void SetMinPoints(Int_t min)
Definition CbmStack.h:173
const char * Data() const
void Config()
Configuration macro for Geant3 VirtualMC.
Definition flConfig.C:3