Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Public Member Functions | Protected Attributes | List of all members
AddPhysicsDecayTool Class Reference

#include "G4AtlasInfrstructure/AddPhysicsDecayTool.h"

Inheritance diagram for AddPhysicsDecayTool:
Collaboration diagram for AddPhysicsDecayTool:

Classes

class  PhysicsConstructor
 

Public Member Functions

 AddPhysicsDecayTool (const std::string &type, const std::string &name, const IInterface *parent)
 Standard constructor. More...
 
virtual ~AddPhysicsDecayTool ()
 Destructor. More...
 
virtual StatusCode initialize () override
 Initialize method. More...
 
virtual UPPhysicsConstructor GetPhysicsOption () override
 

Protected Attributes

Gaudi::Property< std::string > m_ParticleName {this, "ParticleName", "NoFile", "Particle name"}
 
Gaudi::Property< double > m_BR {this, "BR", 0, "Branching Ratio"}
 
Gaudi::Property< std::string > m_Daughters {this, "Daughters", "NoFile", "Daughters"}
 
std::vector< std::string > m_Daughters_vec
 

Detailed Description

Tool for the concrete implementation of a Physics List selection class

Author
Andrea Dell'Acqua
Date
2014-10-01

Definition at line 23 of file AddPhysicsDecayTool.h.

Constructor & Destructor Documentation

◆ AddPhysicsDecayTool()

AddPhysicsDecayTool::AddPhysicsDecayTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Standard constructor.

Definition at line 39 of file AddPhysicsDecayTool.cxx.

41  : base_class ( type, nam , parent )
42 {
43  m_physicsOptionType = G4AtlasPhysicsOption::Type::GlobalProcesses;
44 }

◆ ~AddPhysicsDecayTool()

AddPhysicsDecayTool::~AddPhysicsDecayTool ( )
virtual

Destructor.

Definition at line 50 of file AddPhysicsDecayTool.cxx.

51 {
52 }

Member Function Documentation

◆ GetPhysicsOption()

auto AddPhysicsDecayTool::GetPhysicsOption ( )
overridevirtual

Definition at line 126 of file AddPhysicsDecayTool.cxx.

126  {
127 
128  return std::make_unique<AddPhysicsDecayTool::PhysicsConstructor>(
129  name(), this->msgLevel(), m_ParticleName.value(), m_BR.value(),
131 }

◆ initialize()

StatusCode AddPhysicsDecayTool::initialize ( )
overridevirtual

Initialize method.

Definition at line 57 of file AddPhysicsDecayTool.cxx.

58 {
59  ATH_MSG_DEBUG("AddPhysicsDecayTool initialize( )");
60  ATH_MSG_DEBUG("Add Decay to the particle: "<<m_ParticleName);
61 
62  std::istringstream ss(m_Daughters);
63  std::string token;
64 
65  while(std::getline(ss, token, ','))
66  {
67  m_Daughters_vec.push_back(token);
68  }
69 
70  return StatusCode::SUCCESS;
71 }

Member Data Documentation

◆ m_BR

Gaudi::Property<double> AddPhysicsDecayTool::m_BR {this, "BR", 0, "Branching Ratio"}
protected

Definition at line 57 of file AddPhysicsDecayTool.h.

◆ m_Daughters

Gaudi::Property<std::string> AddPhysicsDecayTool::m_Daughters {this, "Daughters", "NoFile", "Daughters"}
protected

Definition at line 58 of file AddPhysicsDecayTool.h.

◆ m_Daughters_vec

std::vector<std::string> AddPhysicsDecayTool::m_Daughters_vec
protected

Definition at line 59 of file AddPhysicsDecayTool.h.

◆ m_ParticleName

Gaudi::Property<std::string> AddPhysicsDecayTool::m_ParticleName {this, "ParticleName", "NoFile", "Particle name"}
protected

Definition at line 56 of file AddPhysicsDecayTool.h.


The documentation for this class was generated from the following files:
AddPhysicsDecayTool::m_ParticleName
Gaudi::Property< std::string > m_ParticleName
Definition: AddPhysicsDecayTool.h:56
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
AddPhysicsDecayTool::m_Daughters_vec
std::vector< std::string > m_Daughters_vec
Definition: AddPhysicsDecayTool.h:59
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
G4AtlasPhysicsOption::GlobalProcesses
@ GlobalProcesses
Definition: IPhysicsOptionTool.h:26
AddPhysicsDecayTool::m_Daughters
Gaudi::Property< std::string > m_Daughters
Definition: AddPhysicsDecayTool.h:58
AddPhysicsDecayTool::m_BR
Gaudi::Property< double > m_BR
Definition: AddPhysicsDecayTool.h:57