ATLAS Offline Software
Loading...
Searching...
No Matches
Simulation
G4Sim
MCTruth
src
TruthController.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
MCTruth/TruthController.h
"
6
#include "
SimHelpers/TrackVisualizationHelper.h
"
7
8
const
TruthController
*
TruthController::getTruthController
()
9
{
10
static
const
TruthController
tc
;
11
return
&
tc
;
12
}
13
14
TruthController::TruthController
()
15
{
16
m_theVisHelper
=
new
TrackVisualizationHelper
;
17
}
18
19
TruthController::~TruthController
()
20
{
21
if
(
m_theVisHelper
)
delete
m_theVisHelper
;
22
}
23
void
TruthController::setVisualizationHelper
(
TrackVisualizationHelper
*
h
)
24
{
25
if
(
m_theVisHelper
==
h
)
return
;
26
delete
m_theVisHelper
;
27
m_theVisHelper
=
h
;
28
}
tc
static Double_t tc
Definition
LArPhysWaveHECTool.cxx:38
TrackVisualizationHelper.h
TruthController.h
h
Header file for AthHistogramAlgorithm.
TrackVisualizationHelper
Definition
TrackVisualizationHelper.h:8
TruthController::getTruthController
static const TruthController * getTruthController()
Definition
TruthController.cxx:8
TruthController::m_theVisHelper
TrackVisualizationHelper * m_theVisHelper
Definition
TruthController.h:24
TruthController::setVisualizationHelper
void setVisualizationHelper(TrackVisualizationHelper *)
Definition
TruthController.cxx:23
TruthController::TruthController
TruthController()
Definition
TruthController.cxx:14
TruthController::~TruthController
~TruthController()
Definition
TruthController.cxx:19
Generated on
for ATLAS Offline Software by
1.14.0