Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4INCLLogger.hh File Reference
#include "globals.hh"
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <cstdlib>
#include "G4ios.hh"
#include "G4INCLRandom.hh"
#include "G4INCLConfig.hh"

Go to the source code of this file.

Namespaces

namespace  G4INCL
 
namespace  G4INCL::Logger
 

Macros

#define INCLXX_IN_GEANT4_MODE   1
 
#define G4INCLLogger_hh   1
 
#define INCL_FATAL(x)
 
#define INCL_ERROR(x)
 
#define INCL_WARN(x)
 
#define INCL_INFO(x)
 
#define INCL_DEBUG(x)
 
#define INCL_DATABLOCK(x)
 

Enumerations

enum  G4INCL::MessageType {
  G4INCL::InfoMsg = 1 , G4INCL::FatalMsg = 2 , G4INCL::ErrorMsg = 3 , G4INCL::WarningMsg = 4 ,
  G4INCL::DebugMsg = 7 , G4INCL::DataBlockMsg = 10 , G4INCL::ZeroMsg = 0
}
 

Functions

void G4INCL::Logger::initVerbosityLevelFromEnvvar ()
 
G4int G4INCL::Logger::getVerbosityLevel ()
 

Macro Definition Documentation

◆ G4INCLLogger_hh

#define G4INCLLogger_hh   1

Definition at line 39 of file G4INCLLogger.hh.

◆ INCL_DATABLOCK

#define INCL_DATABLOCK ( x)
Value:
;

Definition at line 247 of file G4INCLLogger.hh.

◆ INCL_DEBUG

#define INCL_DEBUG ( x)
Value:
std::string fileName_(__FILE__);\
std::stringstream ss_;\
ss_ << "INCL++ debug [" << fileName_.substr(fileName_.find_last_of("/")+1) << ":" << __LINE__ << "] " << x;\
G4cout << ss_.str() << '\n';\
} else (void)0
G4GLOB_DLL std::ostream G4cout
G4int getVerbosityLevel()

Definition at line 240 of file G4INCLLogger.hh.

240#define INCL_DEBUG(x) \
241 if(G4INCL::DebugMsg <= G4INCL::Logger::getVerbosityLevel()) {\
242 std::string fileName_(__FILE__);\
243 std::stringstream ss_;\
244 ss_ << "INCL++ debug [" << fileName_.substr(fileName_.find_last_of("/")+1) << ":" << __LINE__ << "] " << x;\
245 G4cout << ss_.str() << '\n';\
246 } else (void)0

Referenced by G4INCL::ProjectileRemnant::addAllDynamicalSpectators(), G4INCL::Nucleus::applyFinalState(), G4INCL::Cluster::boost(), G4INCL::InteractionAvatar::bringParticleInside(), G4INCL::Nucleus::computeExcitationEnergy(), G4INCL::NuclearDensityFactory::createPCDFTable(), G4INCL::NuclearDensityFactory::createRCDFTable(), G4INCL::NuclearDensityFactory::createRPCorrelationTable(), G4INCL::Nucleus::decayInsideDeltas(), G4INCL::Nucleus::decayInsideStrangeParticles(), G4INCL::Nucleus::decayOutgoingDeltas(), G4INCL::Nucleus::decayOutgoingNeutralKaon(), G4INCL::Nucleus::decayOutgoingPionResonances(), G4INCL::Nucleus::decayOutgoingSigmaZero(), G4INCL::Nucleus::emitInsideKaon(), G4INCL::Nucleus::emitInsideLambda(), G4INCL::Nucleus::emitInsidePions(), G4INCL::Nucleus::emitInsideStrangeParticles(), G4INCL::InteractionAvatar::enforceEnergyConservation(), G4INCL::IAvatar::fillFinalState(), G4INCL::NNbarToAnnihilationChannel::fillFinalState(), G4INCL::NNToNSKpiChannel::fillFinalState(), G4INCL::NpiToLK2piChannel::fillFinalState(), G4INCL::NpiToLKpiChannel::fillFinalState(), G4INCL::NpiToNKKbChannel::fillFinalState(), G4INCL::NpiToSK2piChannel::fillFinalState(), G4INCL::NpiToSKpiChannel::fillFinalState(), G4INCL::ParticleEntryChannel::fillFinalState(), G4INCL::PbarAtrestEntryChannel::fillFinalState(), G4INCL::ReflectionChannel::fillFinalState(), G4INCL::BinaryCollisionAvatar::getChannel(), G4INCL::DecayAvatar::getChannel(), G4INCL::ParticleEntryAvatar::getChannel(), G4INCL::SurfaceAvatar::getChannel(), G4INCL::Nucleus::getConservationBalance(), G4INCL::ParticleTable::getNuclearRadius(), G4INCL::ParticleTable::getRadiusParameter(), G4INCL::SurfaceAvatar::getTransmissionProbability(), G4INCL::HFB::initialize(), G4INCL::Cluster::initializeParticles(), G4INCL::Cluster::internalBoostToCM(), G4INCL::PbarAtrestEntryChannel::makeMesonStar(), G4INCL::PbarAtrestEntryChannel::n_annihilation(), G4INCL::NuclearDensity::NuclearDensity(), G4INCL::PauliStandard::PauliStandard(), G4INCL::DecayAvatar::postInteraction(), G4INCL::InteractionAvatar::postInteraction(), G4INCL::INCL::prepareReaction(), G4INCL::INCL::processEvent(), G4INCL::PbarAtrestEntryChannel::ProtonIsTheVictim(), G4INCL::Cluster::putParticlesOffShell(), G4INCL::EventInfo::remnantToParticle(), G4INCL::ProjectileRemnant::removeParticle(), G4INCL::ProjectileRemnant::reset(), G4INCL::StandardPropagationModel::shootAtrest(), G4INCL::StandardPropagationModel::shootComposite(), G4INCL::StandardPropagationModel::shootParticle(), G4INCL::RootFinder::solve(), and G4INCL::IAvatar::~IAvatar().

◆ INCL_ERROR

#define INCL_ERROR ( x)
Value:
std::string fileName_(__FILE__);\
std::stringstream ss_;\
ss_ << "INCL++ error [" << fileName_.substr(fileName_.find_last_of("/")+1) << ":" << __LINE__ << "] " << x;\
G4cout << ss_.str() << '\n';\
} else (void)0

Definition at line 225 of file G4INCLLogger.hh.

225#define INCL_ERROR(x) \
226 if(G4INCL::ErrorMsg <= G4INCL::Logger::getVerbosityLevel()) {\
227 std::string fileName_(__FILE__);\
228 std::stringstream ss_;\
229 ss_ << "INCL++ error [" << fileName_.substr(fileName_.find_last_of("/")+1) << ":" << __LINE__ << "] " << x;\
230 G4cout << ss_.str() << '\n';\
231 } else (void)0

Referenced by G4INCL::Particle::adjustMomentumFromEnergy(), G4INCL::Nucleus::applyFinalState(), G4INCL::NuclearPotential::NuclearPotentialConstant::computePotentialEnergy(), G4INCL::NuclearPotential::NuclearPotentialIsospin::computePotentialEnergy(), G4INCL::NuclearDensityFactory::createPCDFTable(), G4INCL::NuclearDensityFactory::createRCDFTable(), G4INCL::NuclearDensityFactory::createRPCorrelationTable(), G4INCL::Nucleus::decayOutgoingPionResonances(), G4INCL::Nucleus::decayOutgoingSigmaZero(), G4INCL::PbarAtrestEntryChannel::densityN(), G4INCL::PbarAtrestEntryChannel::densityP(), G4INCL::NNbarCEXChannel::fillFinalState(), G4INCL::NNbarToAnnihilationChannel::fillFinalState(), G4INCL::NNbarToLLbarChannel::fillFinalState(), G4INCL::NNToMissingStrangenessChannel::fillFinalState(), G4INCL::NpiToLKChannel::fillFinalState(), G4INCL::NpiToMissingStrangenessChannel::fillFinalState(), G4INCL::PiNToDeltaChannel::fillFinalState(), G4INCL::RecombinationChannel::fillFinalState(), G4INCL::StrangeAbsorbtionChannel::fillFinalState(), G4INCL::NNbarToAnnihilationChannel::findStringNumber(), G4INCL::PbarAtrestEntryChannel::findStringNumber(), G4INCL::BinaryCollisionAvatar::getChannel(), G4INCL::Particle::getINCLMass(), G4INCL::ParticleTable::getINCLMass(), G4INCL::Particle::getInvariantMass(), G4INCL::ParticleTable::getIsospin(), G4INCL::ParticleTable::getMaximumNuclearRadius(), G4INCL::ParticleTable::getNuclearRadius(), G4INCL::ParticleSpecies::getPDGCode(), G4INCL::ParticleTable::getRadiusParameter(), G4INCL::Particle::getRealMass(), G4INCL::ParticleTable::getRealMass(), G4INCL::StandardPropagationModel::getReflectionTime(), G4INCL::ParticleTable::getSeparationEnergyINCL(), G4INCL::ParticleTable::getSeparationEnergyReal(), G4INCL::ParticleTable::getSurfaceDiffuseness(), G4INCL::Particle::getTableMass(), G4INCL::ParticleTable::getWidth(), G4INCL::PbarAtrestEntryChannel::makeMesonStar(), G4INCL::KinematicsUtils::momentumInCM(), G4INCL::KinematicsUtils::momentumInLab(), G4INCL::Particle::Particle(), G4INCL::CrossSectionsINCL46::piNToDelta(), G4INCL::CrossSectionsMultiPions::piNTot(), G4INCL::BinaryCollisionAvatar::postInteraction(), G4INCL::InteractionAvatar::postInteraction(), G4INCL::INCL::prepareReaction(), G4INCL::INCL::processEvent(), G4INCL::StandardPropagationModel::propagate(), G4INCL::PbarAtrestEntryChannel::ProtonIsTheVictim(), G4INCL::Random::setGenerator(), G4INCL::Particle::setType(), and G4INCL::KinematicsUtils::squareTotalEnergyInCM().

◆ INCL_FATAL

#define INCL_FATAL ( x)
Value:
if(true) {\
std::stringstream ss_;\
ss_ << x;\
std::stringstream location_;\
std::string fileName_(__FILE__);\
location_ << fileName_.substr(fileName_.find_last_of("/")+1) << ":" << __LINE__;\
G4Exception(location_.str().c_str(), "INCLXX0000", EventMustBeAborted, ss_.str().c_str());\
} else (void)0
@ EventMustBeAborted

Definition at line 216 of file G4INCLLogger.hh.

216#define INCL_FATAL(x) \
217 if(true) {\
218 std::stringstream ss_;\
219 ss_ << x;\
220 std::stringstream location_;\
221 std::string fileName_(__FILE__);\
222 location_ << fileName_.substr(fileName_.find_last_of("/")+1) << ":" << __LINE__;\
223 G4Exception(location_.str().c_str(), "INCLXX0000", EventMustBeAborted, ss_.str().c_str());\
224 } else (void)0

Referenced by G4INCL::PionResonanceDecayChannel::computeDecayTime(), G4INCL::NuclearPotential::createPotential(), G4INCL::DeltaDecayChannel::fillFinalState(), G4INCL::PionResonanceDecayChannel::fillFinalState(), G4INCL::NaturalIsotopicDistributions::getIsotopicDistribution(), G4INCL::ParticleTable::initialize(), and G4INCL::Store::loadParticles().

◆ INCL_INFO

#define INCL_INFO ( x)
Value:
;

Definition at line 239 of file G4INCLLogger.hh.

◆ INCL_WARN

#define INCL_WARN ( x)
Value:
std::string fileName_(__FILE__);\
std::stringstream ss_;\
ss_ << "INCL++ warning [" << fileName_.substr(fileName_.find_last_of("/")+1) << ":" << __LINE__ << "] " << x;\
G4cout << ss_.str() << '\n';\
} else (void)0

Definition at line 232 of file G4INCLLogger.hh.

232#define INCL_WARN(x) \
233 if(G4INCL::WarningMsg <= G4INCL::Logger::getVerbosityLevel()) {\
234 std::string fileName_(__FILE__);\
235 std::stringstream ss_;\
236 ss_ << "INCL++ warning [" << fileName_.substr(fileName_.find_last_of("/")+1) << ":" << __LINE__ << "] " << x;\
237 G4cout << ss_.str() << '\n';\
238 } else (void)0

Referenced by G4INCL::ProjectileRemnant::addAllDynamicalSpectators(), G4INCL::Store::clear(), G4INCL::Nucleus::decayInsideDeltas(), G4INCL::Nucleus::decayInsideStrangeParticles(), G4INCL::Nucleus::emitInsidePions(), G4INCL::Nucleus::fillEventInfo(), G4INCL::EventInfo::fillInverseKinematics(), G4INCL::PhaseSpaceRauboldLynch::generate(), G4INCL::BinaryCollisionAvatar::getChannel(), G4INCL::ParticleTable::getElementName(), G4INCL::KinematicsUtils::getLocalEnergy(), G4INCL::Particle::getParticles(), G4INCL::Geant4RandomGenerator::getSeeds(), G4INCL::CrossSections::initialize(), G4INCL::NKbToSpiChannel::KaonMomentum(), G4INCL::Particle::Particle(), G4INCL::INCL::processEvent(), G4INCL::Nucleus::propagateParticles(), and G4INCL::Geant4RandomGenerator::setSeeds().

◆ INCLXX_IN_GEANT4_MODE

#define INCLXX_IN_GEANT4_MODE   1

Definition at line 34 of file G4INCLLogger.hh.