ATLAS Offline Software
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
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 
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
G4UA::LengthIntegratorTool::LengthIntegratorTool
LengthIntegratorTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition: LengthIntegratorTool.cxx:13
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition: IUserActionTool.h:32
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::LengthIntegratorTool::makeAndFillAction
virtual std::unique_ptr< LengthIntegrator > makeAndFillAction(G4AtlasUserActions &) override final
Create aciton for this thread.
Definition: LengthIntegratorTool.cxx:40
UserActionToolBase.h
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::LengthIntegratorTool::m_hSvc
ServiceHandle< ITHistSvc > m_hSvc
Handle to the histogram service.
Definition: LengthIntegratorTool.h:47
G4UA::LengthIntegratorTool::initialize
virtual StatusCode initialize() override
Initialize the tool.
Definition: LengthIntegratorTool.cxx:27
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
LengthIntegrator.h
G4UA::LengthIntegratorTool
Tool which manages the LengthIntegrator action.
Definition: LengthIntegratorTool.h:27
G4UA::UserActionToolBase
abstract template utility base-class for G4 user-action tools.
Definition: UserActionToolBase.h:33
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
G4UA::LengthIntegratorTool::m_doHistos
bool m_doHistos
Definition: LengthIntegratorTool.h:51
ServiceHandle< ITHistSvc >