ATLAS Offline Software
Loading...
Searching...
No Matches
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
9#include "StepHistogram.h"
10#include "GaudiKernel/ITHistSvc.h"
11
12namespace 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>
40
41 private:
43
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::Config m_config
virtual std::unique_ptr< StepHistogram > makeAndFillAction(G4AtlasUserActions &) override final
Create action for this thread.
ServiceHandle< ITHistSvc > m_histSvc
void BookHistograms(StepHistogram::HistoMapMap_t &hMap, const char *suffix, const char *subfolder="")
virtual StatusCode initialize() override
return the event action
virtual StatusCode finalize() override
StepHistogramTool(const std::string &type, const std::string &name, const IInterface *parent)
standard tool ctor
std::map< G4String, HistoMap_t > HistoMapMap_t
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Struct for passing around user actions.