ATLAS Offline Software
SG_StepNtupleTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef RHADRONS_G4UA__SG_STEPNTUPLETOOL_H
6 #define RHADRONS_G4UA__SG_STEPNTUPLETOOL_H
7 
8 // Base class
10 
11 // UA to be constructed
12 #include "SG_StepNtuple.h"
13 
14 #include <vector>
15 
16 namespace G4UA
17 {
18 
24  class SG_StepNtupleTool : public UserActionToolBase<SG_StepNtuple>
25  {
26 
27  public:
28 
30  SG_StepNtupleTool(const std::string& type, const std::string& name,
31  const IInterface* parent);
32  protected:
33 
35  virtual std::unique_ptr<SG_StepNtuple>
36  makeAndFillAction(G4AtlasUserActions&) override final;
37 
38  private:
39  std::vector<int> m_pdgids;
40 
41  }; // class SG_StepNtupleTool
42 
43 } // namespace G4UA
44 
45 #endif
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition: IUserActionTool.h:32
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::SG_StepNtupleTool
Tool which manages the SG_StepNtuple user action. creates one SG_StepNtuple instance per thread.
Definition: SG_StepNtupleTool.h:25
UserActionToolBase.h
G4UA::SG_StepNtupleTool::m_pdgids
std::vector< int > m_pdgids
Definition: SG_StepNtupleTool.h:39
test_pyathena.parent
parent
Definition: test_pyathena.py:15
G4UA::SG_StepNtupleTool::SG_StepNtupleTool
SG_StepNtupleTool(const std::string &type, const std::string &name, const IInterface *parent)
standard tool ctor
Definition: SG_StepNtupleTool.cxx:10
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
G4UA::UserActionToolBase
abstract template utility base-class for G4 user-action tools.
Definition: UserActionToolBase.h:33
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
SG_StepNtuple.h
G4UA::SG_StepNtupleTool::makeAndFillAction
virtual std::unique_ptr< SG_StepNtuple > makeAndFillAction(G4AtlasUserActions &) override final
creates the action instances
Definition: SG_StepNtupleTool.cxx:19