ATLAS Offline Software
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 
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:
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
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition: IUserActionTool.h:32
hotSpotInTAG.suffix
string suffix
Definition: hotSpotInTAG.py:186
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::StepHistogram::HistoMapMap_t
std::map< G4String, HistoMap_t > HistoMapMap_t
Definition: StepHistogram.h:39
UserActionToolBase.h
G4UA::StepHistogramTool::StepHistogramTool
StepHistogramTool(const std::string &type, const std::string &name, const IInterface *parent)
standard tool ctor
Definition: StepHistogramTool.cxx:9
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
G4UA::StepHistogramTool::m_config
StepHistogram::Config m_config
Definition: StepHistogramTool.h:42
G4UA::StepHistogramTool
Tool which manages the StepHistogram action.
Definition: StepHistogramTool.h:24
G4UA::StepHistogramTool::finalize
virtual StatusCode finalize() override
Definition: StepHistogramTool.cxx:53
G4UA::StepHistogram::Config
Definition: StepHistogram.h:107
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
G4UA::StepHistogramTool::makeAndFillAction
virtual std::unique_ptr< StepHistogram > makeAndFillAction(G4AtlasUserActions &) override final
Create action for this thread.
Definition: StepHistogramTool.cxx:21
G4UA::UserActionToolBase
abstract template utility base-class for G4 user-action tools.
Definition: UserActionToolBase.h:33
G4UA::StepHistogramTool::BookHistograms
void BookHistograms(StepHistogram::HistoMapMap_t &hMap, const char *suffix, const char *subfolder="")
Definition: StepHistogramTool.cxx:36
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
StepHistogram.h
G4UA::StepHistogramTool::m_histSvc
ServiceHandle< ITHistSvc > m_histSvc
Definition: StepHistogramTool.h:44
G4UA::StepHistogramTool::initialize
virtual StatusCode initialize() override
return the event action
Definition: StepHistogramTool.cxx:31
ServiceHandle< ITHistSvc >