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

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

File:
1 edited

Legend:

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

    r962 r1315  
    5757class G4ParticleChange;
    5858
     59
    5960class G4HadronicProcess : public G4VDiscreteProcess
    6061{
    6162public:
    6263   
    63   G4HadronicProcess( const G4String &processName = "Hadronic",
    64                      G4ProcessType   aType = fHadronic );   
     64  G4HadronicProcess(const G4String& processName = "Hadronic",
     65                    G4ProcessType aType = fHadronic);   
    6566
    6667  virtual ~G4HadronicProcess();
    6768
    6869  // register generator of secondaries
    69   void RegisterMe( G4HadronicInteraction *a );
     70  void RegisterMe(G4HadronicInteraction* a);
    7071
    7172  // get cross section per element
     
    133134
    134135  void BiasCrossSectionByFactor(G4double aScale);
    135    
     136
     137  // Energy-momentum non-conservation limits and reporting
     138  inline void SetEpReportLevel(G4int level)
     139  { epReportLevel = level; }
     140
     141  inline void SetEnergyMomentumCheckLevels(G4double relativeLevel, G4double absoluteLevel)
     142  { epCheckLevels.first = relativeLevel;
     143    epCheckLevels.second = absoluteLevel;
     144    levelsSetByProcess = true;
     145  }
     146
     147  inline std::pair<G4double, G4double> GetEnergyMomentumCheckLevels() const
     148  { return epCheckLevels; }
     149
    136150protected:
    137151           
     
    157171
    158172private:
     173
     174  void DumpState(const G4Track&, const G4String&);
    159175   
    160176  void FillTotalResult(G4HadFinalState * aR, const G4Track & aT);
     
    178194  G4double XBiasSurvivalProbability();
    179195  G4double XBiasSecondaryWeight();
     196
     197  void CheckEnergyMomentumConservation(const G4Track&, const G4Nucleus&);
    180198   
    181199private:
     
    192210
    193211  bool G4HadronicProcess_debug_flag;
     212
     213  // Energy-momentum checking
     214  G4int epReportLevel;
     215  std::pair<G4double, G4double> epCheckLevels;
     216  G4bool levelsSetByProcess;
    194217
    195218  // swiches for isotope production   
Note: See TracChangeset for help on using the changeset viewer.