00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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
00084
00085
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
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 }