ATLAS Offline Software
AddPhysicsDecayTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef G4ATLASTOOLS_ADDPHYSICSDECAYTOOL_H
6 #define G4ATLASTOOLS_ADDPHYSICSDECAYTOOL_H
7 
8 // Include files
11 #include "G4VPhysicsConstructor.hh"
12 
13 #include <string>
14 #include <vector>
15 
23 class AddPhysicsDecayTool : public G4VPhysicsConstructor, public extends<AthAlgTool, IPhysicsOptionTool>
24 {
25 public:
27  AddPhysicsDecayTool( const std::string& type , const std::string& name,
28  const IInterface* parent );
29 
30  virtual ~AddPhysicsDecayTool( );
31 
33  virtual StatusCode initialize( ) override;
34 
35  virtual void ConstructProcess() override;
36  virtual AddPhysicsDecayTool* GetPhysicsOption() override;
37 
38  virtual void ConstructParticle() override;
39 
40 protected:
41  Gaudi::Property<std::string> m_ParticleName{this, "ParticleName", "NoFile", "Particle name"};
42  Gaudi::Property<double> m_BR{this, "BR", 0, "Branching Ratio"};
43  Gaudi::Property<std::string> m_Daughters{this, "Daughters", "NoFile", "Daughters"};
44  std::vector<std::string> m_Daughters_vec;
45 
46 };
47 
48 #endif //G4ATLASTOOLS_ADDPHYSICSDECAYTOOL_H
AddPhysicsDecayTool::m_ParticleName
Gaudi::Property< std::string > m_ParticleName
Definition: AddPhysicsDecayTool.h:41
AddPhysicsDecayTool
Definition: AddPhysicsDecayTool.h:24
AddPhysicsDecayTool::initialize
virtual StatusCode initialize() override
Initialize method.
Definition: AddPhysicsDecayTool.cxx:55
AddPhysicsDecayTool::m_Daughters_vec
std::vector< std::string > m_Daughters_vec
Definition: AddPhysicsDecayTool.h:44
IPhysicsOptionTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
AddPhysicsDecayTool::GetPhysicsOption
virtual AddPhysicsDecayTool * GetPhysicsOption() override
Definition: AddPhysicsDecayTool.cxx:126
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AddPhysicsDecayTool::~AddPhysicsDecayTool
virtual ~AddPhysicsDecayTool()
Destructor.
Definition: AddPhysicsDecayTool.cxx:48
AddPhysicsDecayTool::ConstructParticle
virtual void ConstructParticle() override
Definition: AddPhysicsDecayTool.cxx:134
AddPhysicsDecayTool::AddPhysicsDecayTool
AddPhysicsDecayTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition: AddPhysicsDecayTool.cxx:37
AddPhysicsDecayTool::ConstructProcess
virtual void ConstructProcess() override
Definition: AddPhysicsDecayTool.cxx:71
AddPhysicsDecayTool::m_Daughters
Gaudi::Property< std::string > m_Daughters
Definition: AddPhysicsDecayTool.h:43
AddPhysicsDecayTool::m_BR
Gaudi::Property< double > m_BR
Definition: AddPhysicsDecayTool.h:42