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

Location:
trunk/source/processes/cuts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/cuts/History

    r1196 r1315  
    1 $Id: History,v 1.33 2009/11/12 00:20:03 kurasige Exp $
     1$Id: History,v 1.34 2010/01/22 11:10:26 kurasige Exp $
    22-------------------------------------------------------------------
    33
     
    1717     * Reverse chronological order (last date on top), please *
    1818     ----------------------------------------------------------
     19
     20Jan. 22th, 2010  -  H.Kurashige (procuts-V09-03-00)
     21- Fixed G4ProductionCutTable to solve problems with zero range for protons
    1922
    2023Nov. 12th, 2009  -  H.Kurashige (procuts-V09-02-08)
  • trunk/source/processes/cuts/src/G4ProductionCutsTable.cc

    r1228 r1315  
    2525//
    2626//
    27 // $Id: G4ProductionCutsTable.cc,v 1.25 2009/11/11 03:20:22 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-03 $
     27// $Id: G4ProductionCutsTable.cc,v 1.27 2010/01/22 11:10:26 kurasige Exp $
     28// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2929//
    3030//
     
    252252  if (verboseLevel>2) {
    253253    timer.Stop();
    254     std::cout << "G4ProductionCutsTable::UpdateCoupleTable "
     254    G4cout << "G4ProductionCutsTable::UpdateCoupleTable "
    255255              << "  elapsed time for calculation of  energy cuts " << G4endl;
    256     std::cout << timer <<G4endl;
     256    G4cout << timer <<G4endl;
    257257  }
    258258
     
    291291
    292292  // check range
    293   if (range <=0.0) return -1.0;
     293  if (range ==0.0) return 0.0;
     294  if (range <0.0) return -1.0;
    294295
    295296  // check particle
     
    922923      G4bool fRatio = true;
    923924      for (size_t j=0; j< NumberOfG4CutIndex; j++) {
    924         G4double ratio =  cutValues[j]/aCut->GetProductionCut(j);
    925         fRatio = fRatio && (0.999<ratio) && (ratio<1.001) ;
    926       }
     925        // check ratio only if values are not the same
     926        if (cutValues[j] != aCut->GetProductionCut(j)) { 
     927          G4double ratio =  cutValues[j]/aCut->GetProductionCut(j);
     928          fRatio = fRatio && (0.999<ratio) && (ratio<1.001) ;
     929        }
     930      }
    927931      if (!fRatio) continue;
    928932      // MCC matched
Note: See TracChangeset for help on using the changeset viewer.