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4.p3 ] [ 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /examples/extended/hadronic/Hadr02/include/HadronicInelasticModelCRMC.hh (Version 11.3.0) and /examples/extended/hadronic/Hadr02/include/HadronicInelasticModelCRMC.hh (Version 1.0)


  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