Ignore:
Timestamp:
Nov 25, 2009, 5:13:58 PM (15 years ago)
Author:
garnier
Message:

update CVS release candidate geant4.9.3.01

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/management/include/G4HadronicInteraction.hh

    r1055 r1196  
    2525//
    2626//
    27 // $Id: G4HadronicInteraction.hh,v 1.9 2009/01/24 11:56:27 vnivanch Exp $
    28 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $
     27// $Id: G4HadronicInteraction.hh,v 1.13 2009/10/02 17:18:33 vnivanch Exp $
     28// GEANT4 tag $Name: geant4-09-03-cand-01 $
    2929//
    3030// Hadronic Interaction  abstract base class
     
    4141// 23-Jan-2009 V.Ivanchenko move constructor and destructor to the body
    4242//                          and reorder methods in the header
     43// 29-Jun-2009 V.Ivanchenko add SampleInvariantT method
     44// 29-Aug-2009 V.Ivanchenko moved G4ReactionDynamics to G4InelasticInteraction,
     45//                          add const pointers, and added recoilEnergyThreshold
     46//                          member and accesors
    4347
    4448// Class Description
     
    5256 
    5357#include "G4HadFinalState.hh"
    54 #include "G4ReactionDynamics.hh"
    5558#include "G4Material.hh"
    5659#include "G4Nucleus.hh"
    5760#include "G4Track.hh"
    5861#include "G4HadProjectile.hh"
     62#include "G4ReactionDynamics.hh"
    5963
    6064class G4HadronicInteraction
    6165{
    6266public: // With description
    63 
    6467   
    6568  G4HadronicInteraction(const G4String& modelName = "HadronicModel");
     
    6972  virtual G4HadFinalState *ApplyYourself(const G4HadProjectile &aTrack,
    7073                                         G4Nucleus & targetNucleus ) = 0;
    71   // This is the interface to implement for final state production code.
     74  // The interface to implement for final state production code.
     75
     76  virtual G4double SampleInvariantT(const G4ParticleDefinition* p,
     77                                    G4double plab,
     78                                    G4int Z, G4int A);
     79  // The interface to implement sampling of scattering or change exchange
    7280   
    7381  virtual G4bool IsApplicable(const G4HadProjectile &/*aTrack*/,
    7482                              G4Nucleus & /*targetNucleus*/)
    75   {  return true;}
     83  { return true;}
    7684 
    7785  inline G4double GetMinEnergy() const
    7886  { return theMinEnergy; }
    7987   
    80   virtual G4double GetMinEnergy( const G4Material *aMaterial,
    81                                 const G4Element *anElement ) const;
     88  G4double GetMinEnergy( const G4Material *aMaterial,
     89                        const G4Element *anElement ) const;
    8290   
    83   inline void SetMinEnergy( const G4double anEnergy )
     91  inline void SetMinEnergy( G4double anEnergy )
    8492  { theMinEnergy = anEnergy; }
    8593   
    86   virtual void SetMinEnergy( G4double anEnergy, G4Element *anElement );
    87    
    88   virtual void SetMinEnergy( G4double anEnergy, G4Material *aMaterial );
     94  void SetMinEnergy( G4double anEnergy, const G4Element *anElement );
     95   
     96  void SetMinEnergy( G4double anEnergy, const G4Material *aMaterial );
    8997   
    9098  inline G4double GetMaxEnergy() const
    9199  { return theMaxEnergy; }
    92100   
    93   virtual G4double GetMaxEnergy( const G4Material *aMaterial,
    94                                 const G4Element *anElement ) const;
     101  G4double GetMaxEnergy( const G4Material *aMaterial,
     102                        const G4Element *anElement ) const;
    95103   
    96104  inline void SetMaxEnergy( const G4double anEnergy )
    97105  { theMaxEnergy = anEnergy; }
    98106   
    99   virtual void SetMaxEnergy( G4double anEnergy, G4Element *anElement );
    100    
    101   virtual void SetMaxEnergy( G4double anEnergy, G4Material *aMaterial );
     107  void SetMaxEnergy( G4double anEnergy, const G4Element *anElement );
     108   
     109  void SetMaxEnergy( G4double anEnergy, const G4Material *aMaterial );
    102110 
    103111  inline const G4HadronicInteraction *GetMyPointer() const
     
    113121  { return theModelName; }
    114122   
    115 public: // Without description
    116 
    117   virtual void DeActivateFor( G4Material *aMaterial );
    118    
    119   virtual void ActivateFor( G4Material *aMaterial )
     123  void DeActivateFor( const G4Material *aMaterial );
     124   
     125  inline void ActivateFor( const G4Material *aMaterial )
    120126  {
    121127    Block();
     
    124130  }
    125131
    126   virtual void DeActivateFor( G4Element *anElement );
    127   virtual void ActivateFor( G4Element *anElement )
     132  void DeActivateFor( const G4Element *anElement );
     133  inline void ActivateFor( const G4Element *anElement )
    128134  {
    129135    Block();
     
    132138  }
    133139
    134   virtual G4bool IsBlocked( const G4Material *aMaterial ) const;
    135 
    136   virtual G4bool IsBlocked( const G4Element *anElement) const;
     140  G4bool IsBlocked( const G4Material *aMaterial ) const;
     141
     142  G4bool IsBlocked( const G4Element *anElement) const;
     143
     144  inline void SetRecoilEnergyThreshold(G4double val)
     145  { recoilEnergyThreshold = val; }
     146
     147  G4double GetRecoilEnergyThreshold() const
     148  { return recoilEnergyThreshold;}
    137149
    138150  inline G4bool operator==(const G4HadronicInteraction &right ) const
     
    149161
    150162protected:
     163
     164  inline void SetModelName(const G4String& nam)
     165  { theModelName = nam; }
    151166
    152167  inline G4bool IsBlocked() const { return isBlocked;}
     
    164179  // 2: more
    165180  // (instead of verboseLevel as found in G4VProcess)
    166    
    167   G4ReactionDynamics theReactionDynamics;
    168    
    169   // these two have global validity
    170   // units are assumed to be MeV
    171    
     181
     182  // these two have global validity energy range   
    172183  G4double theMinEnergy;
    173184  G4double theMaxEnergy;
    174    
     185
    175186  G4bool isBlocked;
    176187
     188private:       
     189   
     190  G4double recoilEnergyThreshold;
     191
    177192  G4String theModelName;
    178193   
    179 private:
    180        
    181    std::vector<std::pair<G4double, G4Material *> > theMinEnergyList;
    182    std::vector<std::pair<G4double, G4Material *> > theMaxEnergyList;
    183    std::vector<std::pair<G4double, G4Element *> > theMinEnergyListElements;
    184    std::vector<std::pair<G4double, G4Element *> > theMaxEnergyListElements;
    185    std::vector<G4Material *> theBlockedList;
    186    std::vector<G4Element *> theBlockedListElements;
     194  std::vector<std::pair<G4double, const G4Material *> > theMinEnergyList;
     195  std::vector<std::pair<G4double, const G4Material *> > theMaxEnergyList;
     196  std::vector<std::pair<G4double, const G4Element *> > theMinEnergyListElements;
     197  std::vector<std::pair<G4double, const G4Element *> > theMaxEnergyListElements;
     198  std::vector<const G4Material *> theBlockedList;
     199  std::vector<const G4Element *> theBlockedListElements;
    187200};
    188201 
Note: See TracChangeset for help on using the changeset viewer.