Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
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) {}

◆ ~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(); }

◆ GetSpectator()

G4ParticleDefinition * CustomParticle::GetSpectator ( )
inline

Definition at line 45 of file CustomParticle.h.

45 { return 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; }

Friends And Related Function Documentation

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

◆ m_spec

G4ParticleDefinition* CustomParticle::m_spec {}
private

Definition at line 33 of file CustomParticle.h.


The documentation for this class was generated from the following files:
Base_Fragment.mass
mass
Definition: Sherpa_i/share/common/Base_Fragment.py:59
CustomParticle::m_spec
G4ParticleDefinition * m_spec
Definition: CustomParticle.h:33
MCTruthPartClassifier::stable
@ stable
Definition: TruthClassifiers.h:148
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
charge
double charge(const T &p)
Definition: AtlasPID.h:931
CustomParticle::m_cloud
std::unique_ptr< G4ParticleDefinition > m_cloud
Definition: CustomParticle.h:32
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59