ATLAS Offline Software
Loading...
Searching...
No Matches
Simulation
G4Atlas
G4AtlasInterfaces
G4AtlasInterfaces
IPhysicsConstructor.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef G4ATLASINTERFACES_IPHYSICSCONSTRUCTOR_H
6
#define G4ATLASINTERFACES_IPHYSICSCONSTRUCTOR_H
7
8
#include "
AthenaBaseComps/AthMessaging.h
"
9
#include "G4VPhysicsConstructor.hh"
10
21
struct
ParticleDefinitionParams
{
22
double
mass
{0};
23
double
width
{0};
24
double
charge
{0};
25
double
pdgCode
{0};
26
bool
stable
{
false
};
27
double
lifetime
{0};
28
bool
shortlived
{
false
};
29
};
30
41
class
IPhysicsContructor
:
public
G4VPhysicsConstructor,
public
AthMessaging
{
42
public
:
44
IPhysicsContructor
(
const
std::string& name, MSG::Level level)
45
: G4VPhysicsConstructor(name),
AthMessaging
(name) {
46
this->
setLevel
(level);
47
}
48
};
49
#endif
AthMessaging.h
AthMessaging::setLevel
void setLevel(MSG::Level lvl)
Change the current logging level.
Definition
AthMessaging.cxx:28
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
IPhysicsContructor::IPhysicsContructor
IPhysicsContructor(const std::string &name, MSG::Level level)
Standard constructor.
Definition
IPhysicsConstructor.h:44
ParticleDefinitionParams
Struct to hold the parameters of a particle definition.
Definition
IPhysicsConstructor.h:21
ParticleDefinitionParams::mass
double mass
Definition
IPhysicsConstructor.h:22
ParticleDefinitionParams::lifetime
double lifetime
Definition
IPhysicsConstructor.h:27
ParticleDefinitionParams::shortlived
bool shortlived
Definition
IPhysicsConstructor.h:28
ParticleDefinitionParams::charge
double charge
Definition
IPhysicsConstructor.h:24
ParticleDefinitionParams::pdgCode
double pdgCode
Definition
IPhysicsConstructor.h:25
ParticleDefinitionParams::width
double width
Definition
IPhysicsConstructor.h:23
ParticleDefinitionParams::stable
bool stable
Definition
IPhysicsConstructor.h:26
Generated on
for ATLAS Offline Software by
1.14.0