FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
flConfig.C
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
9 
10 void Config()
11 {
12 
13  new TFluka("C++ Interface to Fluka", 1 /*verbositylevel*/);
14 
15  cout << "GConfig: Fluka has been created." << endl;
16 
17  FairStack *st = new FairStack();
18  st->SetMinPoints(0);
19  TVirtual::GetMC()->SetStack(st);
20  TVirtual::GetMC()->SetProcess("CKOV", 1);
21 
22  // set the common cuts
23  TString configm(gSystem->Getenv("VMCWORKDIR"));
24  TString cuts = configm + "/gconfig/SetCuts.C";
25  cout << "Physics cuts with script \n " << cuts.Data() << endl;
26  Int_t cut = gROOT->LoadMacro(cuts.Data());
27  if (cut == 0)
28  gInterpreter->ProcessLine("SetCuts()");
29 }
void SetMinPoints(Int_t min)
Definition: FairStack.h:183
void Config()
Configuration macro for Geant3 VirtualMC.
Definition: flConfig.C:10