Ignore:
Timestamp:
Jun 18, 2010, 11:42:07 AM (15 years ago)
Author:
garnier
Message:

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

Location:
trunk/source/processes/hadronic/models/management
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/management/History

    r1228 r1315  
    1414     * Please list in reverse chronological order (last date on top)
    1515     ---------------------------------------------------------------
     16
     1702 April 2010 - Dennis Wright (hadr-modman-V09-03-01)
     18-----------------------------------------------------
     19- G4HadronicInteraction - add two methods, GetEnergyMomentumCheckLevels
     20  and SetEnergyMomentumCheckLevels in order to implement checking
     21  of energy/momentum conservation
     22   
     2325 March 2010 - V.Ivanchenko (hadr-modman-V09-03-00)
     24------------------------------------------------------
     25-  G4HadronicInteractionRegistry - do not pop_back vector of pointers
     26   when DeRegister cross section data set - big fixed for Windows
    1627
    17282 December 2009 - V.Ivanchenko (hadr-modman-V09-02-08)
  • trunk/source/processes/hadronic/models/management/include/G4HadronicInteraction.hh

    r1228 r1315  
    2525//
    2626//
    27 // $Id: G4HadronicInteraction.hh,v 1.13 2009/10/02 17:18:33 vnivanch Exp $
    28 // GEANT4 tag $Name: geant4-09-03 $
     27// $Id: G4HadronicInteraction.hh,v 1.14 2010/04/03 00:40:45 dennis Exp $
     28// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2929//
    3030// Hadronic Interaction  abstract base class
     
    139139
    140140  G4bool IsBlocked( const G4Material *aMaterial ) const;
    141 
    142141  G4bool IsBlocked( const G4Element *anElement) const;
    143142
     
    153152  inline G4bool operator!=(const G4HadronicInteraction &right ) const
    154153  { return ( this != (G4HadronicInteraction *) &right ); }
     154
     155
     156  inline std::pair<G4double, G4double> GetEnergyMomentumCheckLevels() const
     157  { return epCheckLevels; }
     158   
     159  inline void SetEnergyMomentumCheckLevels(G4double relativeLevel, G4double absoluteLevel)
     160  { epCheckLevels.first = relativeLevel;
     161    epCheckLevels.second = absoluteLevel; }
    155162   
    156163private:
    157164   
    158165  G4HadronicInteraction(const G4HadronicInteraction &right );
    159    
    160166  const G4HadronicInteraction& operator=(const G4HadronicInteraction &right);
    161167
     
    191197
    192198  G4String theModelName;
    193    
     199
     200  std::pair<G4double, G4double> epCheckLevels;
     201
    194202  std::vector<std::pair<G4double, const G4Material *> > theMinEnergyList;
    195203  std::vector<std::pair<G4double, const G4Material *> > theMaxEnergyList;
  • trunk/source/processes/hadronic/models/management/src/G4HadronicInteraction.cc

    r1228 r1315  
    2424// ********************************************************************
    2525//
    26 // $Id: G4HadronicInteraction.cc,v 1.6 2009/08/30 16:12:34 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-03 $
     26// $Id: G4HadronicInteraction.cc,v 1.7 2010/04/03 00:40:57 dennis Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2828//
    2929// Hadronic Interaction  base class
     
    4040G4HadronicInteraction::G4HadronicInteraction(const G4String& modelName) :
    4141  verboseLevel(0), theMinEnergy(0.0), theMaxEnergy(25.0*GeV),
    42   isBlocked(false), recoilEnergyThreshold(0.0), theModelName(modelName)
     42  isBlocked(false), recoilEnergyThreshold(0.0), theModelName(modelName),
     43  epCheckLevels(DBL_MAX, DBL_MAX)
    4344{
    4445  G4HadronicInteractionRegistry::Instance()->RegisterMe(this);
    4546}
    46    
     47
     48
    4749G4HadronicInteraction::~G4HadronicInteraction()
    4850{
    4951  G4HadronicInteractionRegistry::Instance()->RemoveMe(this);
    5052}
     53
    5154
    5255G4double
  • trunk/source/processes/hadronic/models/management/src/G4HadronicInteractionRegistry.cc

    r1228 r1315  
    2424// ********************************************************************
    2525//
    26 // $Id: G4HadronicInteractionRegistry.cc,v 1.9 2009/12/02 15:57:57 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-03 $
     26// $Id: G4HadronicInteractionRegistry.cc,v 1.10 2010/03/25 15:31:42 vnivanch Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2828//
    2929// 23-Jan-2009 V.Ivanchenko make the class to be a singleton
     
    9696      //<< ">  " << i << G4endl;
    9797      allModels[i] = 0;
    98       if(i == nModels-1) allModels.pop_back();
    9998      return;
    10099    }
Note: See TracChangeset for help on using the changeset viewer.