9 #include "HepMC/Common.h" 18 #define ERROR(MESSAGE) if ( Setup::print_errors() ) { std::cerr << "ERROR::" << MESSAGE << std::endl; } 21 #define WARNING(MESSAGE) if ( Setup::print_warnings() ) { std::cout << "WARNING::" << MESSAGE << std::endl; } 24 #ifndef HEPMC_RELEASE_VERSION 27 #define DEBUG(LEVEL,MESSAGE) if( Setup::debug_level()>=(LEVEL) ) { std::cout << "DEBUG(" << LEVEL <<")::" << MESSAGE << std::endl; } 29 #define DEBUG_CODE_BLOCK( x ) x 34 #define DEBUG_CODE_BLOCK( x ) 48 struct Exception :
public std::runtime_error {
53 struct WeightError :
public Exception {
WeightError(const std::string &msg)
Default constructor.
Exception(const std::string &msg)
Default constructor.
Definition of template class SmartPointer.