69 if( getenv(
"G4LENDDATA") == NULL ) {
70 throw G4HadronicException(__FILE__, __LINE__,
" Please setenv G4LENDDATA to point to the LEND files." );
72 xmcf = getenv(
"G4LENDDATA");
74 xmcf +=
"/neutrons.map";
75 xmcf_gamma = getenv(
"G4LENDDATA");
76 xmcf_gamma +=
"/gammas.map";
77 xmcf_p = getenv(
"G4LENDDATA");
78 xmcf_p +=
"/protons.map";
79 xmcf_d = getenv(
"G4LENDDATA");
80 xmcf_d +=
"/deuterons.map";
81 xmcf_t = getenv(
"G4LENDDATA");
82 xmcf_t +=
"/tritons.map";
83 xmcf_he3 = getenv(
"G4LENDDATA");
84 xmcf_he3 +=
"/He3s.map";
85 xmcf_a = getenv(
"G4LENDDATA");
86 xmcf_a +=
"/alphas.map";
100 aFile.open( xmcf_p.c_str() );
101 if ( aFile.good() ) {
107 aFile.open( xmcf_d.c_str() );
108 if ( aFile.good() ) {
114 aFile.open( xmcf_t.c_str() );
115 if ( aFile.good() ) {
121 aFile.open( xmcf_he3.c_str() );
122 if ( aFile.good() ) {
128 aFile.open( xmcf_a.c_str() );
129 if ( aFile.good() ) {
154 for ( std::vector < lend_target >::iterator
157 (*it).lend->freeTarget( it->target );
161 for ( std::map < G4ParticleDefinition* , G4GIDI* >::iterator
180 throw G4HadronicException(__FILE__, __LINE__,
"Requested isomer level of target is too high." );
186 for ( std::vector < lend_target >::iterator
189 if ( it->proj == proj && it->target_code == iTarg && it->evaluation == evaluation )
209 <<
" with Isomer level of " << iM <<
" is exist in this LEND." <<
G4endl;
212 anLENDTarget = xlend->
readTarget( evaluation , iZ , iA , iM );
215 new_target.
lend = xlend;
216 new_target.
target = anLENDTarget;
217 new_target.
proj = proj;
235 <<
" with Isomer level of " << iM <<
" is not exist in this LEND." <<
G4endl;
238 if ( available->size() > 0 ) {
242 G4cout <<
" However you can use following evaluation(s) for the target. " <<
G4endl;
244 std::vector< std::string >::iterator its;
245 for ( its = available->begin() ; its != available->end() ; its++ )
256 G4cout <<
" However you can use natural abundance data for the target. " <<
G4endl;
262 if ( available_nat->size() > 0 ) {
265 G4cout <<
" However you can use following evaluation(s) for natural abundace of the target. " <<
G4endl;
267 std::vector< std::string >::iterator its;
268 for ( its = available_nat->begin() ; its != available_nat->end() ; its++ )
273 delete available_nat;
287 std::vector< G4String > vEvaluation;
297 if ( available->size() > 0 ) {
298 std::vector< std::string >::iterator its;
299 for ( its = available->begin() ; its != available->end() ; its++ )
300 vEvaluation.push_back ( *its );
322 G4cout <<
" Copyright (c) 2010, Lawrence Livermore National Security, LLC. " <<
G4endl;
323 G4cout <<
" Produced at the Lawrence Livermore National Laboratory " <<
G4endl;
324 G4cout <<
" Written by Bret R. Beck, beck6@llnl.gov. " <<
G4endl;
328 G4cout <<
" This file is part of GIDI. For details, see nuclear.llnl.gov. " <<
G4endl;
329 G4cout <<
" Please also read the \"Additional BSD Notice\" at nuclear.llnl.gov. " <<
G4endl;
331 G4cout <<
" Redistribution and use in source and binary forms, with or without modification, " <<
G4endl;
332 G4cout <<
" are permitted provided that the following conditions are met: " <<
G4endl;
334 G4cout <<
" 1) Redistributions of source code must retain the above copyright notice, " <<
G4endl;
335 G4cout <<
" this list of conditions and the disclaimer below. " <<
G4endl;
336 G4cout <<
" 2) Redistributions in binary form must reproduce the above copyright notice, " <<
G4endl;
337 G4cout <<
" this list of conditions and the disclaimer (as noted below) in the " <<
G4endl;
338 G4cout <<
" documentation and/or other materials provided with the distribution. " <<
G4endl;
339 G4cout <<
" 3) Neither the name of the LLNS/LLNL nor the names of its contributors may be " <<
G4endl;
340 G4cout <<
" used to endorse or promote products derived from this software without " <<
G4endl;
341 G4cout <<
" specific prior written permission. " <<
G4endl;
343 G4cout <<
" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY " <<
G4endl;
344 G4cout <<
" EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES " <<
G4endl;
345 G4cout <<
" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT " <<
G4endl;
346 G4cout <<
" SHALL LAWRENCE LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF ENERGY OR " <<
G4endl;
347 G4cout <<
" CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR " <<
G4endl;
348 G4cout <<
" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS " <<
G4endl;
349 G4cout <<
" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED " <<
G4endl;
350 G4cout <<
" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT " <<
G4endl;
351 G4cout <<
" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, " <<
G4endl;
352 G4cout <<
" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. " <<
G4endl;
367 G4cout <<
"Since other LEND model or cross section have set the higher verbose level (" <<
verboseLevel <<
") in LENDManager, you cannot change the value now." <<
G4endl;
static G4int GetNucleusEncoding(G4int Z, G4int A, G4double E=0.0, G4int lvl=0)
static G4ThreadLocal G4LENDManager * lend_manager
std::map< G4ParticleDefinition *, G4GIDI * > proj_lend_map
const G4String & GetParticleName() const
const G4String & GetIonName(G4int Z, G4int A, G4int lvl=0) const
G4int GetNucleusEncoding(G4int iZ, G4int iA, G4int iM)
std::vector< lend_target > v_lend_target
G4GIDI_target * GetLENDTarget(G4ParticleDefinition *, G4String, G4int iZ, G4int iA, G4int iM=0)
G4ParticleDefinition * proj
G4IonTable * GetIonTable() const
G4GLOB_DLL std::ostream G4cout
std::vector< std::string > * getNamesOfAvailableLibraries(int iZ, int iA, int iM=0)
static G4Triton * Triton()
static G4Proton * Proton()
bool isThisDataAvailable(std::string &lib_name, int iZ, int iA, int iM=0)
static const double second
static G4Neutron * Neutron()
std::vector< G4String > IsLENDTargetAvailable(G4ParticleDefinition *, G4int iZ, G4int iA, G4int iM=0)
static G4Deuteron * Deuteron()
G4NistElementBuilder * nistElementBuilder
static G4ParticleTable * GetParticleTable()
G4GIDI_target * readTarget(std::string &lib_name, int iZ, int iA, int iM=0, bool bind=true)
G4bool RequestChangeOfVerboseLevel(G4int)