FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
g4ConfigPostInit.C
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2021 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  ********************************************************************************/
8 // Configuration macro for Geant4 VirtualMC PostInit
10 {
11  cout << "Loading Geant4 PostInit Config." << endl;
12  TString configm(gSystem->Getenv("VMCWORKDIR"));
13  TString configm1 = configm + "/common/gconfig/g4configPostInit.in";
14  cout << " -I g4ConfigPostInit using g4configPostInit macro: " << configm1 << endl;
15 
16  // set geant4 specific stuff
17  TGeant4 *geant4 = (TGeant4*)(TVirtualMC::GetMC());
18  geant4->ProcessGeantMacro(configm1.Data());
19 }
void ConfigPostInit()