ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Atlas
G4AtlasTools
G4AtlasTools
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
9
#include <string>
10
#include <vector>
11
12
#include "
AthenaBaseComps/AthAlgTool.h
"
13
#include "
G4AtlasInterfaces/IPhysicsOptionTool.h
"
14
#include "
G4AtlasInterfaces/IPhysicsConstructor.h
"
15
23
class
AddPhysicsDecayTool
:
public
extends<AthAlgTool, IPhysicsOptionTool> {
24
public
:
26
AddPhysicsDecayTool
(
const
std::string&
type
,
const
std::string& name,
27
const
IInterface* parent );
28
29
virtual
~AddPhysicsDecayTool
();
30
32
virtual
StatusCode
initialize
()
override
;
33
34
virtual
UPPhysicsConstructor
GetPhysicsOption
()
override
;
35
36
class
PhysicsConstructor
:
public
IPhysicsContructor
{
37
public
:
38
PhysicsConstructor
(
const
std::string& name, MSG::Level level,
39
const
std::string& particle_name,
double
br,
40
const
std::vector<std::string>& daughters_vec)
41
:
IPhysicsContructor
(name, level),
42
m_ParticleName
(particle_name),
43
m_BR
(br),
44
m_Daughters_vec
(daughters_vec) {}
45
46
virtual
void
ConstructParticle
()
override
;
47
virtual
void
ConstructProcess
()
override
;
48
49
private
:
50
std::string
m_ParticleName
;
51
double
m_BR
;
52
std::vector<std::string>
m_Daughters_vec
;
53
};
54
55
protected
:
56
Gaudi::Property<std::string>
m_ParticleName
{
this
,
"ParticleName"
,
"NoFile"
,
"Particle name"
};
57
Gaudi::Property<double>
m_BR
{
this
,
"BR"
, 0,
"Branching Ratio"
};
58
Gaudi::Property<std::string>
m_Daughters
{
this
,
"Daughters"
,
"NoFile"
,
"Daughters"
};
59
std::vector<std::string>
m_Daughters_vec
;
60
};
61
62
#endif
//G4ATLASTOOLS_ADDPHYSICSDECAYTOOL_H
AthAlgTool.h
IPhysicsConstructor.h
IPhysicsOptionTool.h
AddPhysicsDecayTool::PhysicsConstructor::m_ParticleName
std::string m_ParticleName
Definition
AddPhysicsDecayTool.h:50
AddPhysicsDecayTool::PhysicsConstructor::ConstructProcess
virtual void ConstructProcess() override
Definition
AddPhysicsDecayTool.cxx:73
AddPhysicsDecayTool::PhysicsConstructor::PhysicsConstructor
PhysicsConstructor(const std::string &name, MSG::Level level, const std::string &particle_name, double br, const std::vector< std::string > &daughters_vec)
Definition
AddPhysicsDecayTool.h:38
AddPhysicsDecayTool::PhysicsConstructor::m_Daughters_vec
std::vector< std::string > m_Daughters_vec
Definition
AddPhysicsDecayTool.h:52
AddPhysicsDecayTool::PhysicsConstructor::ConstructParticle
virtual void ConstructParticle() override
Definition
AddPhysicsDecayTool.cxx:133
AddPhysicsDecayTool::PhysicsConstructor::m_BR
double m_BR
Definition
AddPhysicsDecayTool.h:51
AddPhysicsDecayTool::m_Daughters
Gaudi::Property< std::string > m_Daughters
Definition
AddPhysicsDecayTool.h:58
AddPhysicsDecayTool::initialize
virtual StatusCode initialize() override
Initialize method.
Definition
AddPhysicsDecayTool.cxx:57
AddPhysicsDecayTool::m_ParticleName
Gaudi::Property< std::string > m_ParticleName
Definition
AddPhysicsDecayTool.h:56
AddPhysicsDecayTool::GetPhysicsOption
virtual UPPhysicsConstructor GetPhysicsOption() override
Definition
AddPhysicsDecayTool.cxx:126
AddPhysicsDecayTool::~AddPhysicsDecayTool
virtual ~AddPhysicsDecayTool()
Destructor.
Definition
AddPhysicsDecayTool.cxx:50
AddPhysicsDecayTool::AddPhysicsDecayTool
AddPhysicsDecayTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
AddPhysicsDecayTool.cxx:39
AddPhysicsDecayTool::m_Daughters_vec
std::vector< std::string > m_Daughters_vec
Definition
AddPhysicsDecayTool.h:59
AddPhysicsDecayTool::m_BR
Gaudi::Property< double > m_BR
Definition
AddPhysicsDecayTool.h:57
IPhysicsContructor::IPhysicsContructor
IPhysicsContructor(const std::string &name, MSG::Level level)
Standard constructor.
Definition
IPhysicsConstructor.h:44
type
Generated on
for ATLAS Offline Software by
1.17.0