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/particles/management/src/G4DecayProducts.cc

    r1196 r1315  
    2525//
    2626//
    27 // $Id: G4DecayProducts.cc,v 1.17 2009/04/02 02:24:53 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// $Id: G4DecayProducts.cc,v 1.18 2010/05/20 01:01:07 kurasige Exp $
     28// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2929//
    3030//
     
    141141   } else {
    142142#ifdef G4VERBOSE
    143      G4cout << "G4DecayProducts::PushProducts ";
    144      G4cout << " exceeds MaxNumberOfProducts(="
    145             << G4int(MaxNumberOfProducts) << ")";
    146      G4cout << G4endl;
     143     G4cerr << "G4DecayProducts::PushProducts "
     144           << " exceeds MaxNumberOfProducts(="
     145            << G4int(MaxNumberOfProducts) << ")"
     146           << G4endl;
    147147#endif
    148148   }
     
    242242  if ( (parent_momentum.mag() >0.0) && (std::fabs(direction.mag()-1.0) >1.0e-6 ) ) {
    243243#ifdef G4VERBOSE
    244     G4cout << " Momentum Direction Vector of Parent is not normalized ";
    245     G4cout << "  (=" << direction.mag() << ")" << G4endl;
     244    G4cerr << "G4DecayProducts::IsChecked()::  "
     245           << " Momentum Direction Vector of Parent is not normalized "
     246           << "  (=" << direction.mag() << ")" << G4endl;
    246247#endif
    247248    returnValue = false;
     
    263264    if ( (momentum.mag()>0.0) && (std::fabs(direction.mag()-1.0) > 1.0e-6)) {
    264265#ifdef G4VERBOSE
    265       G4cout << " Momentum Direction Vector of Daughter [" << index;
    266       G4cout << "]  is not normalized (=" << direction.mag() << ")" << G4endl;
     266      G4cerr <<  "G4DecayProducts::IsChecked()::  "
     267             << " Momentum Direction Vector of Daughter [" << index
     268             << "]  is not normalized (=" << direction.mag() << ")" << G4endl;
    267269#endif
    268270      returnValue = false;
     
    272274    if (energy - mass < DBL_MIN ) {
    273275#ifdef G4VERBOSE
    274       G4cout << "Daughter [" << index << "] has no kinetic energy "<< G4endl;
     276      G4cerr <<  "G4DecayProducts::IsChecked()::  "
     277             << "  Daughter [" << index << "] has no kinetic energy "<< G4endl;
    275278#endif
    276279      returnValue = false;
     
    282285  if ( (std::fabs(total_energy) >1.0e-9*MeV) || (total_momentum.mag() >1.0e-9*MeV ) ){
    283286#ifdef G4VERBOSE
    284     G4cout << " Energy/Momentum is not conserved   "<< G4endl;
    285     G4cout << " difference between parent energy and sum of dughters' energy : "
     287    G4cerr <<  "G4DecayProducts::IsChecked()::  "
     288           << " Energy/Momentum is not conserved   "<< G4endl;
     289    G4cerr << " difference between parent energy and sum of dughters' energy : "
    286290           << total_energy /MeV << "[MeV]  " << G4endl;
    287     G4cout << " difference between parent momentum and sum of dughters' momentum : "
     291    G4cerr << " difference between parent momentum and sum of dughters' momentum : "
    288292           << " x:" << total_momentum.getX()/MeV
    289293           << " y:" << total_momentum.getY()/MeV 
Note: See TracChangeset for help on using the changeset viewer.