CMS 3D CMS Logo

CustomParticle.h
Go to the documentation of this file.
1 #ifndef SimG4Core_CustomPhysics_CustomParticle_h
2 #define SimG4Core_CustomPhysics_CustomParticle_h 1
3 
4 #include "G4ParticleDefinition.hh"
5 #include "globals.hh"
6 
7 // ######################################################################
8 // ### CustomParticle ###
9 // ######################################################################
10 
11 class CustomParticle : public G4ParticleDefinition
12 {
13  public:
15  const G4String& aName, G4double mass,
16  G4double width, G4double charge,
17  G4int iSpin, G4int iParity,
18  G4int iConjugation, G4int iIsospin,
19  G4int iIsospin3, G4int gParity,
20  const G4String& pType, G4int lepton,
21  G4int baryon, G4int encoding,
22  G4bool stable, G4double lifetime,
23  G4DecayTable *decaytable
24  );
25  private:
26  G4ParticleDefinition* m_cloud;
27  G4ParticleDefinition* m_spec;
28  public:
29  void SetCloud(G4ParticleDefinition* theCloud);
30  void SetSpectator(G4ParticleDefinition* theSpectator);
31  G4ParticleDefinition* GetCloud();
32  G4ParticleDefinition* GetSpectator();
33  ~CustomParticle() override {}
34 };
35 
36 inline void CustomParticle::SetCloud(G4ParticleDefinition* theCloud){ m_cloud = theCloud; }
37 inline G4ParticleDefinition* CustomParticle::GetCloud(){ return m_cloud; }
38 inline void CustomParticle::SetSpectator(G4ParticleDefinition* theSpectator){ m_spec = theSpectator; }
39 inline G4ParticleDefinition* CustomParticle::GetSpectator(){ return m_spec; }
40 
41 #endif
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 * m_spec
static const int stable
Definition: TopGenEvent.h:11
void SetCloud(G4ParticleDefinition *theCloud)
G4ParticleDefinition * GetCloud()
~CustomParticle() override
void SetSpectator(G4ParticleDefinition *theSpectator)
G4ParticleDefinition * GetSpectator()
G4ParticleDefinition * m_cloud