File indexing completed on 2025-08-05 08:17:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032 #ifndef G4_PYTHIA6_DECAYER_H
0033 #define G4_PYTHIA6_DECAYER_H
0034
0035 #include "EDecayType.hh"
0036 #include "G4Pythia6DecayerMessenger.hh"
0037 #include "Pythia6.hh"
0038
0039 #include <Geant4/G4ThreeVector.hh> // for G4ThreeVector
0040 #include <Geant4/G4Types.hh> // for G4int, G4bool
0041 #include <Geant4/G4VExtDecayer.hh>
0042
0043 class G4DecayProducts;
0044 class G4DynamicParticle;
0045 class G4ParticleDefinition;
0046 class G4Track;
0047
0048 namespace CLHEP
0049 {
0050 class HepLorentzVector;
0051 }
0052
0053
0054
0055
0056
0057
0058
0059
0060 class G4Pythia6Decayer : public G4VExtDecayer
0061 {
0062 public:
0063 G4Pythia6Decayer();
0064 virtual ~G4Pythia6Decayer();
0065
0066 virtual G4DecayProducts* ImportDecayProducts(const G4Track& track);
0067
0068 void ForceDecayType(EDecayType decayType);
0069 void SetVerboseLevel(G4int verboseLevel) { fVerboseLevel = verboseLevel; }
0070
0071 private:
0072
0073 G4Pythia6Decayer(const G4Pythia6Decayer& right);
0074
0075 G4Pythia6Decayer& operator=(const G4Pythia6Decayer& right);
0076
0077 G4ParticleDefinition*
0078 GetParticleDefinition(const Pythia6Particle* p, G4bool warn = true) const;
0079 G4DynamicParticle* CreateDynamicParticle(const Pythia6Particle* p) const;
0080 G4ThreeVector GetParticlePosition(const Pythia6Particle* particle) const;
0081 G4ThreeVector GetParticleMomentum(const Pythia6Particle* particle) const;
0082
0083 G4int CountProducts(G4int channel, G4int particle);
0084 void ForceParticleDecay(G4int particle, G4int product, G4int mult);
0085 void ForceParticleDecay(G4int particle,
0086 G4int* products, G4int* mult, G4int npart);
0087 void ForceHadronicD();
0088 void ForceOmega();
0089 void ForceDecay(EDecayType decayType);
0090
0091 void Decay(G4int pdg, const CLHEP::HepLorentzVector& p);
0092 G4int ImportParticles(ParticleVector* particles);
0093
0094 static const EDecayType fgkDefaultDecayType;
0095
0096 G4Pythia6DecayerMessenger fMessenger;
0097 G4int fVerboseLevel;
0098 EDecayType fDecayType;
0099 ParticleVector* fDecayProductsArray;
0100 };
0101
0102
0103
0104 #endif