ATLAS Offline Software
CustomParticle.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CustomParticle_h
6 #define CustomParticle_h 1
7 
8 #include "G4ParticleDefinition.hh"
9 #include "globals.hh"
10 
11 // ######################################################################
12 // ### CustomParticle ###
13 // ######################################################################
15 
16 class CustomParticle : public G4ParticleDefinition
17 {
18  friend class CustomParticleFactory;
19 private:
21  const G4String& aName, G4double mass,
22  G4double width, G4double charge,
23  G4int iSpin, G4int iParity,
24  G4int iConjugation, G4int iIsospin,
25  G4int iIsospin3, G4int gParity,
26  const G4String& pType, G4int lepton,
27  G4int baryon, G4int encoding,
28  G4bool stable, G4double lifetime,
29  G4DecayTable *decaytable
30  );
31  G4ParticleDefinition* m_cloud;
32  G4ParticleDefinition* m_spec;
33 public:
34  void SetCloud(G4ParticleDefinition* theCloud);
35  void SetSpectator(G4ParticleDefinition* theSpectator);
36  G4ParticleDefinition* GetCloud();
37  G4ParticleDefinition* GetSpectator();
38  virtual ~CustomParticle() {}
39 };
40 
41 inline void CustomParticle::SetCloud(G4ParticleDefinition* theCloud){ m_cloud = theCloud; }
42 inline G4ParticleDefinition* CustomParticle::GetCloud(){ return m_cloud; }
43 inline void CustomParticle::SetSpectator(G4ParticleDefinition* theSpectator){ m_spec = theSpectator; }
44 inline G4ParticleDefinition* CustomParticle::GetSpectator(){ return m_spec; }
45 
46 #endif
CustomParticle::~CustomParticle
virtual ~CustomParticle()
Definition: CustomParticle.h:38
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: ExtraParticles/src/CustomParticle.cxx:13
Base_Fragment.mass
mass
Definition: Sherpa_i/share/common/Base_Fragment.py:59
CustomParticle::GetSpectator
G4ParticleDefinition * GetSpectator()
Definition: CustomParticle.h:44
CustomParticle::m_spec
G4ParticleDefinition * m_spec
Definition: CustomParticle.h:32
CustomParticle::GetCloud
G4ParticleDefinition * GetCloud()
Definition: CustomParticle.h:42
generateReferenceFile.encoding
encoding
Definition: generateReferenceFile.py:15
CustomParticle::m_cloud
G4ParticleDefinition * m_cloud
Definition: CustomParticle.h:31
MCTruthPartClassifier::stable
@ stable
Definition: TruthClassifiers.h:148
CustomParticle::SetSpectator
void SetSpectator(G4ParticleDefinition *theSpectator)
Definition: CustomParticle.h:43
CustomParticle
Definition: CustomParticle.h:17
charge
double charge(const T &p)
Definition: AtlasPID.h:538
CustomParticleFactory
Definition: CustomParticleFactory.h:17
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
CustomParticle::SetCloud
void SetCloud(G4ParticleDefinition *theCloud)
Definition: CustomParticle.h:41