![]() |
|
|||
File indexing completed on 2025-02-23 09:21:10
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // 0027 // 0028 /// \file eventgenerator/pythia/decayer6/include/G4Pythia6Decayer.hh 0029 /// \brief Definition of the G4Pythia6Decayer class 0030 // 0031 #ifndef G4_PYTHIA6_DECAYER_H 0032 #define G4_PYTHIA6_DECAYER_H 0033 0034 #include "EDecayType.hh" 0035 #include "Pythia6.hh" 0036 0037 #include "G4Pythia6DecayerMessenger.hh" 0038 #include "G4VExtDecayer.hh" 0039 #include "globals.hh" 0040 0041 struct Pythia6Particle; 0042 class G4Track; 0043 class G4DecayProducts; 0044 0045 /// Pythia6 decayer 0046 /// 0047 /// Implements the G4VExtDecayer abstract class using the Pythia6 interface. 0048 /// According to TPythia6Decayer class in Root: 0049 /// http://root.cern.ch/ 0050 /// see http://root.cern.ch/root/License.html 0051 0052 class G4Pythia6Decayer : public G4VExtDecayer 0053 { 0054 public: 0055 G4Pythia6Decayer(); 0056 virtual ~G4Pythia6Decayer(); 0057 0058 virtual G4DecayProducts* ImportDecayProducts(const G4Track& track); 0059 0060 void ForceDecayType(EDecayType decayType); 0061 void SetVerboseLevel(G4int verboseLevel) { fVerboseLevel = verboseLevel; } 0062 0063 private: 0064 /// Not implemented 0065 G4Pythia6Decayer(const G4Pythia6Decayer& right); 0066 /// Not implemented 0067 G4Pythia6Decayer& operator=(const G4Pythia6Decayer& right); 0068 0069 G4ParticleDefinition* GetParticleDefinition(const Pythia6Particle* p, G4bool warn = true) const; 0070 G4DynamicParticle* CreateDynamicParticle(const Pythia6Particle* p) const; 0071 G4ThreeVector GetParticlePosition(const Pythia6Particle* particle) const; 0072 G4ThreeVector GetParticleMomentum(const Pythia6Particle* particle) const; 0073 0074 G4int CountProducts(G4int channel, G4int particle); 0075 void ForceParticleDecay(G4int particle, G4int product, G4int mult); 0076 void ForceParticleDecay(G4int particle, G4int* products, G4int* mult, G4int npart); 0077 void ForceHadronicD(); 0078 void ForceOmega(); 0079 void ForceDecay(EDecayType decayType); 0080 0081 void Decay(G4int pdg, const CLHEP::HepLorentzVector& p); 0082 G4int ImportParticles(ParticleVector* particles); 0083 0084 static const EDecayType fgkDefaultDecayType; ///< default decay type 0085 0086 G4Pythia6DecayerMessenger fMessenger; ///< command messenger 0087 G4int fVerboseLevel; ///< verbose level 0088 EDecayType fDecayType; ///< selected decay type 0089 ParticleVector* fDecayProductsArray; ///< array of decay products 0090 }; 0091 0092 // ---------------------------------------------------------------------------- 0093 0094 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |