![]() |
|
|||
File indexing completed on 2025-08-06 08:18:52
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 // $Id: G4EvtGenDecayer.hh,v 1.2 2014/10/07 03:06:54 mccumber Exp $ 0028 // 0029 /// \file eventgenerator/pythia/decayer6/include/G4EvtGenDecayer.hh 0030 /// \brief Definition of the G4EvtGenDecayer class 0031 // 0032 #ifndef G4_EVTGEN_DECAYER_H 0033 #define G4_EVTGEN_DECAYER_H 0034 0035 #include <EvtGenExternal/EvtExternalGenList.hh> 0036 0037 #include <HepMC3/Attribute.h> // for string 0038 0039 #include <Geant4/G4LorentzVector.hh> 0040 #include <Geant4/G4Types.hh> // for G4int, G4bool 0041 #include <Geant4/G4VExtDecayer.hh> 0042 0043 #include <cstddef> 0044 #include <list> // for list 0045 #include <string> // for string, allocator 0046 0047 class G4DecayProducts; 0048 class G4ParticleDefinition; 0049 class G4Track; 0050 0051 class EvtRandomEngine; 0052 class EvtAbsRadCorr; 0053 class EvtDecayBase; 0054 class EvtGen; 0055 0056 /// 0057 /// Implements the G4VExtDecayer abstract class using the Pythia6 interface. 0058 /// According to TPythia6Decayer class in Root: 0059 /// http://root.cern.ch/ 0060 /// see http://root.cern.ch/root/License.html 0061 0062 class G4EvtGenDecayer : public G4VExtDecayer 0063 { 0064 public: 0065 G4EvtGenDecayer(); 0066 0067 virtual ~G4EvtGenDecayer(); 0068 virtual G4DecayProducts* ImportDecayProducts(const G4Track& track); 0069 void SetVerboseLevel(G4int verboseLevel) { fVerboseLevel = verboseLevel; } 0070 0071 // void PHEvtGenDecayer(); 0072 // virtual void ~PHEvtGenDecayer(); 0073 // void Decay(int pdgId, std::unique_ptr<G4LorentzVector> p); 0074 // int ImportParticles(std::vector<int>& DecayPDGID, std::vector<int>& DecayStatus, std::vector<G4LorentzVector>& DecayMom, std::vector<G4LorentzVector>& DecayVtx); 0075 void SetVertex(G4LorentzVector* r); 0076 void SetDecayTable(const std::string& decayTable, bool useXml); 0077 // void ClearEvent(); 0078 // void AppendParticle(int pdg, std::unique_ptr<G4LorentzVector> _p); 0079 0080 private: 0081 /// Not implemented 0082 G4EvtGenDecayer(const G4EvtGenDecayer& right); 0083 /// Not implemented 0084 G4EvtGenDecayer& operator=(const G4EvtGenDecayer& right); 0085 // G4EvtGenDecayer* myEvtGenDecayer = NULL; 0086 // EvtGen* myGenerator; 0087 0088 G4ParticleDefinition* 0089 GetParticleDefinition(int ParPDGID) const; 0090 0091 // bool IsG4Detectable(int ParPDGID, G4bool warn = true) const; 0092 0093 std::string Decay_DEC = "InputDECAYFiles/DECAY.DEC"; 0094 std::string Evt_pdl = "InputDECAYFiles/evt.pdl"; 0095 0096 EvtGen* mEvtGen = NULL; 0097 EvtRandomEngine* mEvtGenRandomEngine = NULL; 0098 EvtExternalGenList genList; 0099 0100 // EvtParticle* mParticle; 0101 EvtAbsRadCorr* radCorrEngine = NULL; 0102 std::list<EvtDecayBase*> extraModels; 0103 0104 //! WidthThreshold on the particle mass width in keV for defining a stable particle in the decay process 0105 //! Particles with mass width below the WidthThreshold will be considered stable, and be passed to Geant4 as the final state of a decay vertex 0106 //! Particles with mass width above the WidthThreshold will be considered unstable, and be decayed in EvtGen at the same vertex as its parent. 0107 //! Default value is 5 MeV so that the phi meson with a width of 4.9 MeV is decayed in Geant4 0108 float WidthThreshold = 5000.0; // 0109 0110 // TLorentzVector * mVertex = new TLorentzVector; 0111 // bool mOwner; 0112 // bool mDebug = false; 0113 0114 // EvtVector4R* mVertex; 0115 0116 G4int fVerboseLevel; ///< verbose level 0117 // ParticleVector* fDecayProductsArray ; ///< array of decay products 0118 // TLorentzVector FourMom; 0119 }; 0120 0121 // ---------------------------------------------------------------------------- 0122 0123 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |