ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
G4DebuggingTools
src
StepHistogramTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef G4DEBUGGINGTOOLS_G4UA__STEPHISTOGRAMTOOL_H
6
#define G4DEBUGGINGTOOLS_G4UA__STEPHISTOGRAMTOOL_H
7
8
#include "
G4AtlasTools/UserActionToolBase.h
"
9
#include "
StepHistogram.h
"
10
#include "GaudiKernel/ITHistSvc.h"
11
12
namespace
G4UA
{
13
14
22
23
class
StepHistogramTool
:
public
UserActionToolBase
<StepHistogram>
24
{
25
26
public
:
28
StepHistogramTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent);
30
31
// initialize
32
virtual
StatusCode
initialize
()
override
;
33
// finalize
34
virtual
StatusCode
finalize
()
override
;
35
36
protected
:
38
virtual
std::unique_ptr<StepHistogram>
39
makeAndFillAction
(
G4AtlasUserActions
&)
override
final
;
40
41
private
:
42
StepHistogram::Config
m_config
;
43
44
ServiceHandle<ITHistSvc>
m_histSvc
;
45
46
void
BookHistograms
(
StepHistogram::HistoMapMap_t
&hMap,
const
char
* suffix,
const
char
* subfolder =
""
);
47
48
};
// class StepHistogramTool
49
50
51
}
// namespace G4UA
52
#endif
StepHistogram.h
UserActionToolBase.h
G4UA::StepHistogramTool::m_config
StepHistogram::Config m_config
Definition
StepHistogramTool.h:42
G4UA::StepHistogramTool::makeAndFillAction
virtual std::unique_ptr< StepHistogram > makeAndFillAction(G4AtlasUserActions &) override final
Create action for this thread.
Definition
StepHistogramTool.cxx:21
G4UA::StepHistogramTool::m_histSvc
ServiceHandle< ITHistSvc > m_histSvc
Definition
StepHistogramTool.h:44
G4UA::StepHistogramTool::BookHistograms
void BookHistograms(StepHistogram::HistoMapMap_t &hMap, const char *suffix, const char *subfolder="")
Definition
StepHistogramTool.cxx:36
G4UA::StepHistogramTool::initialize
virtual StatusCode initialize() override
return the event action
Definition
StepHistogramTool.cxx:31
G4UA::StepHistogramTool::finalize
virtual StatusCode finalize() override
Definition
StepHistogramTool.cxx:53
G4UA::StepHistogramTool::StepHistogramTool
StepHistogramTool(const std::string &type, const std::string &name, const IInterface *parent)
standard tool ctor
Definition
StepHistogramTool.cxx:9
G4UA::StepHistogram::HistoMapMap_t
std::map< G4String, HistoMap_t > HistoMapMap_t
Definition
StepHistogram.h:40
G4UA::UserActionToolBase< StepHistogram >::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
G4UA::StepHistogram::Config
Definition
StepHistogram.h:108
type
Generated on
for ATLAS Offline Software by
1.17.0