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

#include <CustomParticle.h>

Inheritance diagram for CustomParticle:
Collaboration diagram for CustomParticle:

Public Member Functions

void SetCloud (std::unique_ptr< G4ParticleDefinition > &theCloud)
void SetSpectator (G4ParticleDefinition *theSpectator)
G4ParticleDefinition * GetCloud ()
G4ParticleDefinition * GetSpectator ()
virtual ~CustomParticle ()

Private Member Functions

 CustomParticle (const G4String &aName, G4double mass, G4double width, G4double charge, G4int iSpin, G4int iParity, G4int iConjugation, G4int iIsospin, G4int iIsospin3, G4int gParity, const G4String &pType, G4int lepton, G4int baryon, G4int encoding, G4bool stable, G4double lifetime, G4DecayTable *decaytable)

Private Attributes

std::unique_ptr< G4ParticleDefinition > m_cloud {}
G4ParticleDefinition * m_spec {}

Friends

class CustomParticleFactory

Detailed Description

Definition at line 17 of file CustomParticle.h.

Constructor & Destructor Documentation

◆ CustomParticle()

CustomParticle::CustomParticle ( const G4String & aName,
G4double mass,
G4double width,
G4double charge,
G4int iSpin,
G4int iParity,
G4int iConjugation,
G4int iIsospin,
G4int iIsospin3,
G4int gParity,
const G4String & pType,
G4int lepton,
G4int baryon,
G4int encoding,
G4bool stable,
G4double lifetime,
G4DecayTable * decaytable )
private

Definition at line 13 of file ExtraParticles/src/CustomParticle.cxx.

25 : G4ParticleDefinition(name, mass, width, charge,
26 0, 0, 0,
27 0, 0, 0,
28 "extra", 0, 0, pdg,
29 stable, lifetime, NULL,
30 false) {}
double charge(const T &p)
Definition AtlasPID.h:997
const double width

◆ ~CustomParticle()

virtual CustomParticle::~CustomParticle ( )
inlinevirtual

Definition at line 39 of file CustomParticle.h.

39{}

Member Function Documentation

◆ GetCloud()

G4ParticleDefinition * CustomParticle::GetCloud ( )
inline

Definition at line 43 of file CustomParticle.h.

43{ return m_cloud.get(); }
std::unique_ptr< G4ParticleDefinition > m_cloud

◆ GetSpectator()

G4ParticleDefinition * CustomParticle::GetSpectator ( )
inline

Definition at line 45 of file CustomParticle.h.

45{ return m_spec; }
G4ParticleDefinition * m_spec

◆ SetCloud()

void CustomParticle::SetCloud ( std::unique_ptr< G4ParticleDefinition > & theCloud)
inline

Definition at line 42 of file CustomParticle.h.

42{ m_cloud.swap(theCloud); }

◆ SetSpectator()

void CustomParticle::SetSpectator ( G4ParticleDefinition * theSpectator)
inline

Definition at line 44 of file CustomParticle.h.

44{ m_spec = theSpectator; }

◆ CustomParticleFactory

friend class CustomParticleFactory
friend

Definition at line 19 of file CustomParticle.h.

Member Data Documentation

◆ m_cloud

std::unique_ptr<G4ParticleDefinition> CustomParticle::m_cloud {}
private

Definition at line 32 of file CustomParticle.h.

32{};

◆ m_spec

G4ParticleDefinition* CustomParticle::m_spec {}
private

Definition at line 33 of file CustomParticle.h.

33{};

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