MARLEY (Model of Argon Reaction Low Energy Yields)
v2.0.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
Loading...
Searching...
No Matches
include
builtin
HepMC3
Errors.h
1
// -*- C++ -*-
2
//
3
// This file is part of HepMC
4
// Copyright (C) 2014-2023 The HepMC collaboration (see AUTHORS for details)
5
//
11
#ifndef HEPMC3_ERRORS_H
12
#define HEPMC3_ERRORS_H
13
14
#include <iostream>
15
#include <stdexcept>
16
#include <HepMC3/Setup.h>
17
namespace
HepMC3 {
18
19
22
24
#define HEPMC3_ERROR(MESSAGE) if ( Setup::print_errors() ) { std::cerr << "ERROR::" << MESSAGE << std::endl; }
25
27
#define HEPMC3_ERROR_LEVEL(LEVEL,MESSAGE) if ( Setup::errors_level()>=(LEVEL) && Setup::print_errors() ) { std::cerr << "ERROR::" << MESSAGE << std::endl; }
28
29
31
#define HEPMC3_WARNING(MESSAGE) if ( Setup::print_warnings() ) { std::cout << "WARNING::" << MESSAGE << std::endl; }
32
34
#define HEPMC3_WARNING_LEVEL(LEVEL,MESSAGE) if ( Setup::warnings_level()>=(LEVEL) && Setup::print_warnings() ) { std::cout << "WARNING::" << MESSAGE << std::endl; }
35
36
37
// Debug messages and code that will not go to the release version
38
#ifndef HEPMC3_RELEASE_VERSION
39
41
#define HEPMC3_DEBUG(LEVEL,MESSAGE) if ( Setup::debug_level()>=(LEVEL) ) { std::cout << "DEBUG(" << LEVEL <<")::" << MESSAGE << std::endl; }
43
#define HEPMC3_DEBUG_CODE_BLOCK( x ) x
44
45
#else
46
47
#define HEPMC3_DEBUG( x,y )
48
#define HEPMC3_DEBUG_CODE_BLOCK( x )
49
50
#endif
51
53
54
}
// namespace HepMC3
55
56
#endif
Generated by
1.13.2