G4WarnPLStatus.cc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 
00027 #include "G4WarnPLStatus.hh"
00028 
00029 G4WarnPLStatus::G4WarnPLStatus()
00030 {}
00031 
00032 G4WarnPLStatus::~G4WarnPLStatus()
00033 {}
00034 
00035 void G4WarnPLStatus::Replaced(const G4String aPL, const G4String Replacement) const
00036 {
00037     G4cout << 
00038 "*=====================================================================" <<G4endl <<
00039 "*                                                                     " <<G4endl <<
00040 "*   The Physics list "<<aPL<<" no longer exists                       " <<G4endl <<
00041 "*   We recommend you use the physics lists "<<Replacement<< ","         <<G4endl <<
00042 "*      this offers similar functionality for most use cases            " <<G4endl <<
00043 "*                                                                      " <<G4endl <<
00044 "*                                                                      " <<G4endl <<
00045 "*   We invite you to report your use case for, and your experience with" <<G4endl <<
00046 "*    this physics list on the Geant4 User Forum dedicated to physics   " <<G4endl <<
00047 "*    lists:                                                            " <<G4endl <<
00048 "*  http://hypernews.slac.stanford.edu/HyperNews/geant4/get/phys-list.html"<<G4endl <<
00049 "*                                                                      " <<G4endl <<
00050 "*=====================================================================*" <<G4endl<<
00051 G4endl;   
00052 }
00053 
00054 void G4WarnPLStatus::OnlyFromFactory(const G4String aPL, const G4String basePL) const
00055 {
00056     G4cout << 
00057 "*=====================================================================" <<G4endl <<
00058 "*                                                                     " <<G4endl <<
00059 "*   The Physics list "<<aPL<<", a variation of "<< basePL<< " will be " <<G4endl <<
00060 "*      available only via the physics list factory starting from the  " <<G4endl <<
00061 "*      next release, Geant4 10 .                                      " <<G4endl <<
00062 "*   We recommend you to replace code like                             " <<G4endl <<
00063 "*                                                                     " <<G4endl <<
00064 "       runManager->SetUserInitialization( new " << aPL << " );        " <<G4endl <<
00065 "*                                                                     " <<G4endl <<
00066 "*   by the following                                                  " <<G4endl <<
00067 "*                                                                     " <<G4endl <<
00068 "       G4PhysListFactory factory;                                     " <<G4endl <<
00069 "       runManager->SetUserInitialization("                              <<G4endl <<
00070 "                      factory.GetReferencePhysList(\"" << aPL << "\");" <<G4endl <<
00071 "*                                                                      " <<G4endl <<
00072 "*   For more information how to use G4PhysListFactory, please refer    " <<G4endl <<
00073 "*    to the documentation available at                                 " <<G4endl <<
00074 "*     http://cern.ch/geant4/support/physicsLists/PhysListFactory.shtml " <<G4endl <<
00075 "*                                                                      " <<G4endl <<
00076 "*   We invite you to report your use case for, and your experience with" <<G4endl <<
00077 "*    this physics list on the Geant4 User Forum dedicated to physics   " <<G4endl <<
00078 "*    lists:                                                            " <<G4endl <<
00079 "*  http://hypernews.slac.stanford.edu/HyperNews/geant4/get/phys-list.html"<<G4endl <<
00080 "*                                                                      " <<G4endl <<
00081 "*=====================================================================*" <<G4endl<<
00082 G4endl;
00083     //G4String txtPL;
00084     //txtPL=aPL + "::" + aPL;
00085     //G4Exception(txtPL,"PhysicsLists001", FatalException,desc);
00086 }
00087 
00088 
00089 void G4WarnPLStatus::Unsupported(const G4String aPL, const G4String Replacement) const
00090 {
00091     G4cout << 
00092 "*=====================================================================" <<G4endl <<
00093 "*                                                                     " <<G4endl <<
00094 "*   The Physics list "<<aPL<<" is NO LONGER SUPPORTED !   " <<G4endl <<
00095 //"*   and is likely to be deleted in a future release of Geant4             " <<G4endl <<
00096 "*   and will be deleted in the next release, Geant4 10                " <<G4endl <<
00097 "*                                                                     " <<G4endl;
00098    if (Replacement.size() > 0)
00099    {
00100    G4cout << 
00101 "*    We recommend you try the physics lists "<<Replacement<< ","         <<G4endl <<
00102 "*      this offers similar functionality for most use cases            " <<G4endl <<
00103 "*                                                                      " <<G4endl;
00104    
00105    }
00106    G4cout << 
00107 "*                                                                      " <<G4endl <<
00108 "*   We invite you to report your use case for, and your experience with" <<G4endl <<
00109 "*    this physics list on the Geant4 User Forum dedicated to physics   " <<G4endl <<
00110 "*    lists:                                                            " <<G4endl <<
00111 "*  http://hypernews.slac.stanford.edu/HyperNews/geant4/get/phys-list.html"<<G4endl <<
00112 "*                                                                      " <<G4endl <<
00113 "*=====================================================================*" <<G4endl<<
00114 G4endl;   
00115 }
00116 
00117 void G4WarnPLStatus::Experimental(const G4String aPL) const
00118 {
00119     G4cout << 
00120 "*=====================================================================" <<G4endl <<
00121 "*                                                                     " <<G4endl <<
00122 "*   The Physics list "<<aPL<<" is an experimental physics list !   " <<G4endl <<
00123 "*                                                                      " <<G4endl <<
00124 "*   Please  report your use case for, and your experience with this    " <<G4endl <<
00125 "*    physics list on the Geant4 User Forum dedicated to physics lists: " <<G4endl <<
00126 "*  http://hypernews.slac.stanford.edu/HyperNews/geant4/get/phys-list.html"<<G4endl <<
00127 "*                                                                      " <<G4endl <<
00128 "*=====================================================================*" <<G4endl<<
00129 G4endl;   
00130 }

Generated on Mon May 27 17:50:24 2013 for Geant4 by  doxygen 1.4.7