RivetCommon.hh
Go to the documentation of this file.
00001 #ifndef RIVET_RivetCommon_HH 00002 #define RIVET_RivetCommon_HH 00003 00004 // Convenience build-setup header for Rivet internal use 00005 00006 00007 // Automatic build info from autoconf 00008 #include "Rivet/Config/RivetConfig.hh" 00009 #include "Rivet/Config/BuildOptions.hh" 00010 00011 00012 /// Macro to help with overzealous compiler warnings 00013 /// @note It's easier and better to just not give an arg name to args which won't be used, when possible. 00014 #ifdef UNUSED 00015 #elif defined(__GNUC__) 00016 # define UNUSED(x) UNUSED_ ## x __attribute__((unused)) 00017 #elif defined(__LCLINT__) 00018 # define UNUSED(x) /*@unused@*/ x 00019 #else 00020 # define UNUSED(x) x 00021 #endif 00022 00023 00024 /// Macro to help mark code as deprecated to produce compiler warnings 00025 #ifndef DEPRECATED 00026 #if __GNUC__ && __cplusplus && RIVET_NO_DEPRECATION_WARNINGS == 0 00027 #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) 00028 #if GCC_VERSION >= 40500 00029 #if __cplusplus > 201103L 00030 #define DEPRECATED(x) [[deprecated(x)]] 00031 #else 00032 #define DEPRECATED(x) __attribute__((deprecated(x))) 00033 #endif 00034 #else 00035 #define DEPRECATED(x) __attribute__((deprecated)) 00036 #endif 00037 #else 00038 #define DEPRECATED(x) 00039 #endif 00040 #endif 00041 00042 00043 #include "Rivet/Exceptions.hh" 00044 00045 #include "Rivet/Tools/RivetSTL.hh" 00046 #include "Rivet/Tools/RivetBoost.hh" 00047 #include "Rivet/Tools/RivetHepMC.hh" 00048 00049 #include "Rivet/Tools/Utils.hh" 00050 #include "Rivet/Tools/Logging.hh" 00051 00052 #include "Rivet/Math/Units.hh" 00053 #include "Rivet/ParticleName.hh" 00054 #include "Rivet/Tools/ParticleIdUtils.hh" 00055 00056 #include "Rivet/Math/MathUtils.hh" 00057 #include "Rivet/Math/Vectors.hh" 00058 #include "Rivet/Math/Constants.hh" 00059 00060 // #include "Rivet/Particle.hh" 00061 // #include "Rivet/Event.hh" 00062 00063 #endif Generated on Wed Oct 7 2015 12:09:14 for The Rivet MC analysis system by ![]() |