ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
G4UserActions
src
LengthIntegratorTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef G4USERACTIONS_G4UA_LENGTHINTEGRATOR_H
6
#define G4USERACTIONS_G4UA_LENGTHINTEGRATOR_H
7
8
// Framework includes
9
#include "GaudiKernel/ServiceHandle.h"
10
#include "GaudiKernel/ITHistSvc.h"
11
12
// Infrastructure includes
13
#include "
G4AtlasTools/UserActionToolBase.h
"
14
15
// Local includes
16
#include "
LengthIntegrator.h
"
17
18
namespace
G4UA
19
{
20
26
class
LengthIntegratorTool
:
public
UserActionToolBase
<LengthIntegrator>
27
{
28
29
public
:
30
32
LengthIntegratorTool
(
const
std::string&
type
,
const
std::string& name,
33
const
IInterface* parent);
34
36
virtual
StatusCode
initialize
()
override
;
37
38
protected
:
39
41
virtual
std::unique_ptr<LengthIntegrator>
42
makeAndFillAction
(
G4AtlasUserActions
&)
override
final
;
43
44
private
:
45
47
ServiceHandle<ITHistSvc>
m_hSvc
;
48
49
//do we fill histograms as well as TTree?
50
//(very large filesize...)
51
bool
m_doHistos
;
52
53
};
// class LengthIntegratorTool
54
55
}
// namespace G4UA
56
57
#endif
LengthIntegrator.h
UserActionToolBase.h
G4UA::LengthIntegratorTool::LengthIntegratorTool
LengthIntegratorTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
LengthIntegratorTool.cxx:13
G4UA::LengthIntegratorTool::initialize
virtual StatusCode initialize() override
Initialize the tool.
Definition
LengthIntegratorTool.cxx:27
G4UA::LengthIntegratorTool::makeAndFillAction
virtual std::unique_ptr< LengthIntegrator > makeAndFillAction(G4AtlasUserActions &) override final
Create aciton for this thread.
Definition
LengthIntegratorTool.cxx:40
G4UA::LengthIntegratorTool::m_doHistos
bool m_doHistos
Definition
LengthIntegratorTool.h:51
G4UA::LengthIntegratorTool::m_hSvc
ServiceHandle< ITHistSvc > m_hSvc
Handle to the histogram service.
Definition
LengthIntegratorTool.h:47
G4UA::UserActionToolBase< LengthIntegrator >::UserActionToolBase
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
UserActionToolBase.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
G4UA
for nSW
Definition
CalibrationDefaultProcessing.h:19
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition
IUserActionTool.h:35
type
Generated on
for ATLAS Offline Software by
1.17.0