FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairVMCConfig.cxx
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  ********************************************************************************/
8 // -------------------------------------------------------------------------
9 // ----- FairVMCConfig source file -----
10 // ----- Created 2019.02.19 by R. Karabowicz -----
11 // -------------------------------------------------------------------------
12 #include "FairVMCConfig.h"
13 
14 #include "FairLogger.h"
15 #include "FairRunSim.h"
16 #include "FairStack.h"
17 
18 #include <TVirtualMC.h>
19 
22 {}
23 
25 
26 void FairVMCConfig::SetupStack()
27 {
28  FairStack *stack = new FairStack(1000);
29  if (fYamlConfig["FairStack_StoreSecondaries"])
30  stack->StoreSecondaries(fYamlConfig["FairStack_StoreSecondaries"].as<bool>());
31  if (fYamlConfig["FairStack_MinPoints"])
32  stack->SetMinPoints(fYamlConfig["FairStack_MinPoints"].as<int>());
33  TVirtualMC::GetMC()->SetStack(stack);
34 }
35 
ClassImp(FairEventBuilder)
void SetMinPoints(Int_t min)
Definition: FairStack.h:183
virtual ~FairVMCConfig()
void StoreSecondaries(Bool_t choice=kTRUE)
Definition: FairStack.h:182