Geant4 Cross Reference |
1 // ******************************************* 1 2 // * License and Disclaimer 3 // * 4 // * The Geant4 software is copyright of th 5 // * the Geant4 Collaboration. It is provided 6 // * conditions of the Geant4 Software License 7 // * LICENSE and available at http://cern.ch/ 8 // * include a list of copyright holders. 9 // * 10 // * Neither the authors of this software syst 11 // * institutes,nor the agencies providing fin 12 // * work make any representation or warran 13 // * regarding this software system or assum 14 // * use. Please see the license in the file 15 // * for the full disclaimer and the limitatio 16 // * 17 // * This code implementation is the result 18 // * technical work of the GEANT4 collaboratio 19 // * By using, copying, modifying or distri 20 // * any work based on the software) you ag 21 // * use in resulting scientific publicati 22 // * acceptance of all terms of the Geant4 Sof 23 // ******************************************* 24 // 25 /// \file hadronic/Hadr02/include/HadronicInel 26 /// \brief Definition of the HadronicInelastic 27 // 28 // 29 // ------------------------------------------- 30 // 31 // CRMC interface to GEANT4 32 // for more details on CRMC, see: 33 // https://web.ikp.kit.edu/rulric 34 // 35 // 36 // Author: Andrii Tykhonov (University o 37 // Email: andrii.tykhonov@cern.ch 38 // Created: 14.02.2018 39 // 40 // 41 // ( 42 // A few, trivial modifications made by A. R 43 // in order to use it inside the Geant4 exam 44 // - Copied here, instead of using the orig 45 // G4HadronicInelasticModelCRMC as it is 46 // with crmc-svn-geant4, to avoid some pr 47 // which is unable to find the library li 48 // - Renamed the class as HadronicInelastic 49 // to follow the Geant4 convention that c 50 // names start with "G4" are only those d 51 // source/ . 52 // - Fixed a few compilation warnings . 53 // - Set the seed by hand, because the meth 54 // CLHEP::HepRandom::getTheSeed() 55 // returns 0 which is not accepted. 56 // ) 57 // ------------------------------------------- 58 59 #ifndef HadronicInelasticModelCRMC_h 60 #define HadronicInelasticModelCRMC_h 61 62 #include "CRMCinterface.h" 63 64 #include "G4HadFinalState.hh" 65 #include "G4HadronicInteraction.hh" 66 #include "G4SystemOfUnits.hh" 67 68 #include <string> 69 70 extern CRMCdata gCRMC_data; 71 72 class G4HadFinalState; 73 class G4ParticleTable; 74 class G4IonTable; 75 76 class G4ParticleDefinition; // class G4Dynami 77 78 class HadronicInelasticModelCRMC : public G4Ha 79 { 80 public: 81 //! model: 82 //! 0 : EPOS LHC 83 //! 1 : EPOS 1.99 84 //! 12 : DPMJET3 85 HadronicInelasticModelCRMC(int model, cons 86 ~HadronicInelasticModelCRMC(); 87 88 G4HadFinalState* ApplyYourself(const G4Had 89 G4bool IsApplicable(const G4HadProjectile& 90 91 void SetPrintDebug(bool printdebug) { fPri 92 G4ParticleDefinition* GetParticleDefinitio 93 void SplitMultiNeutrons(CRMCdata& CRMC_dat 94 bool IsMultiNeutron(int Z, int A); 95 96 virtual const std::pair<G4double, G4double 97 { 98 // possible energy non-coservations of u 99 return std::pair<G4double, G4double>(10. 100 } 101 102 private: 103 CRMCinterface* fInterface; 104 // CRMCdata fCRMCdata; 105 int fTypeOutput; 106 G4HadFinalState* finalState; 107 G4ParticleTable* fParticleTable; 108 G4IonTable* fIonTable; 109 110 // std::vector<G4ParticleDefinition*> fPar 111 // std::vector<G4DynamicParticle*> fDyn 112 bool fPrintDebug; 113 114 // 115 std::string GetCrmcParamPath(); 116 }; 117 118 #endif 119