CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CustomParticle Class Reference

#include <CustomParticle.h>

Inheritance diagram for CustomParticle:

Public 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)
 
G4ParticleDefinition * GetCloud ()
 
G4ParticleDefinition * GetSpectator ()
 
void SetCloud (G4ParticleDefinition *theCloud)
 
void SetSpectator (G4ParticleDefinition *theSpectator)
 
 ~CustomParticle () override
 

Private Attributes

G4ParticleDefinition * m_cloud
 
G4ParticleDefinition * m_spec
 

Detailed Description

Definition at line 11 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 
)

Definition at line 7 of file CustomParticle.cc.

24  : G4ParticleDefinition(aName,
25  mass,
26  width,
27  charge,
28  iSpin,
29  iParity,
30  iConjugation,
31  iIsospin,
32  iIsospin3,
33  gParity,
34  pType,
35  lepton,
36  baryon,
37  encoding,
38  stable,
39  lifetime,
40  decaytable) {}
static const int stable
Definition: TopGenEvent.h:10

◆ ~CustomParticle()

CustomParticle::~CustomParticle ( )
inlineoverride

Definition at line 40 of file CustomParticle.h.

40 {}

Member Function Documentation

◆ GetCloud()

G4ParticleDefinition * CustomParticle::GetCloud ( )
inline

Definition at line 44 of file CustomParticle.h.

References m_cloud.

Referenced by FullModelHadronicProcess::PostStepDoIt().

44 { return m_cloud; }
G4ParticleDefinition * m_cloud

◆ GetSpectator()

G4ParticleDefinition * CustomParticle::GetSpectator ( )
inline

Definition at line 46 of file CustomParticle.h.

References m_spec.

Referenced by FullModelHadronicProcess::PostStepDoIt().

46 { return m_spec; }
G4ParticleDefinition * m_spec

◆ SetCloud()

void CustomParticle::SetCloud ( G4ParticleDefinition *  theCloud)
inline

Definition at line 43 of file CustomParticle.h.

References m_cloud.

Referenced by CustomParticleFactory::addCustomParticle().

43 { m_cloud = theCloud; }
G4ParticleDefinition * m_cloud

◆ SetSpectator()

void CustomParticle::SetSpectator ( G4ParticleDefinition *  theSpectator)
inline

Definition at line 45 of file CustomParticle.h.

References m_spec.

Referenced by CustomParticleFactory::addCustomParticle().

45 { m_spec = theSpectator; }
G4ParticleDefinition * m_spec

Member Data Documentation

◆ m_cloud

G4ParticleDefinition* CustomParticle::m_cloud
private

Definition at line 32 of file CustomParticle.h.

Referenced by GetCloud(), and SetCloud().

◆ m_spec

G4ParticleDefinition* CustomParticle::m_spec
private

Definition at line 33 of file CustomParticle.h.

Referenced by GetSpectator(), and SetSpectator().