FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
20
FairVMCConfig::FairVMCConfig
()
21
:
FairYamlVMCConfig
()
22
{}
23
24
FairVMCConfig::~FairVMCConfig
() {}
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
36
ClassImp
(
FairVMCConfig
);
FairYamlVMCConfig::fYamlConfig
YAML::Node fYamlConfig
Definition:
FairYamlVMCConfig.h:50
FairVMCConfig::FairVMCConfig
FairVMCConfig()
Definition:
FairVMCConfig.cxx:20
ClassImp
ClassImp(FairEventBuilder)
FairStack::SetMinPoints
void SetMinPoints(Int_t min)
Definition:
FairStack.h:183
FairRunSim.h
FairVMCConfig.h
FairVMCConfig::~FairVMCConfig
virtual ~FairVMCConfig()
Definition:
FairVMCConfig.cxx:24
FairVMCConfig
Definition:
FairVMCConfig.h:18
FairStack
Definition:
FairStack.h:51
FairStack.h
FairYamlVMCConfig
Definition:
FairYamlVMCConfig.h:23
FairStack::StoreSecondaries
void StoreSecondaries(Bool_t choice=kTRUE)
Definition:
FairStack.h:182
FairLogger.h
FairRoot
examples
common
gconfig
FairVMCConfig.cxx
Generated on Mon Mar 8 2021 12:14:05 for FairRoot by
1.8.5