test
CMS 3D CMS Logo

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