FairRoot/PandaRoot
Functions
flConfig.C File Reference

Go to the source code of this file.

Functions

void Config ()
 Configuration macro for Geant3 VirtualMC. More...
 

Function Documentation

void Config ( )

Configuration macro for Geant3 VirtualMC.

Definition at line 3 of file flConfig.C.

References cut, cuts, PndStack::SetMinPoints(), and TString.

4 {
5 
6  new TFluka("C++ Interface to Fluka", 1/*verbositylevel*/);
7 
8  cout << "GConfig: Fluka has been created." << endl;
9 
10  PndStack *st = new PndStack();
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)gInterpreter->ProcessLine("SetCuts()");
21 }
TString cuts[MAX]
Definition: autocutx.C:35
void SetMinPoints(Int_t min)
Definition: PndStack.h:171
double cut[MAX]
Definition: autocutx.C:36