ATLAS Offline Software
Loading...
Searching...
No Matches
AddPhysicsDecayTool Class Reference

Tool for the concrete implementation of a Physics List selection class. More...

#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.
virtual ~AddPhysicsDecayTool ()
 Destructor.
virtual StatusCode initialize () override
 Initialize method.
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}
Gaudi::Property< std::string > m_ParticleName
std::vector< std::string > m_Daughters_vec
Gaudi::Property< double > m_BR

◆ 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}
#define ATH_MSG_DEBUG(x)
static Double_t ss
Gaudi::Property< std::string > m_Daughters

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.

57{this, "BR", 0, "Branching Ratio"};

◆ m_Daughters

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

Definition at line 58 of file AddPhysicsDecayTool.h.

58{this, "Daughters", "NoFile", "Daughters"};

◆ 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.

56{this, "ParticleName", "NoFile", "Particle name"};

The documentation for this class was generated from the following files: