HepMC3 event record library
Version.h
1 // -*- C++ -*-
2 //
3 // This file is part of HepMC
4 // Copyright (C) 2014-2019 The HepMC collaboration (see AUTHORS for details)
5 //
6 #ifndef HEPMC3_VERSION_H
7 #define HEPMC3_VERSION_H
8 
9 #include <string>
10 
11 /// HepMC version string
12 #define HEPMC3_VERSION "3.01.01"
13 
14 /// @brief HepMC version as an integer, HepMC X.Y.Z = 1000000*X + 1000*Y + Z
15 ///
16 /// Use like "#if HEPMC3_VERSION_CODE < 3001004" for < 3.01.04
17 #define HEPMC3_VERSION_CODE 3001001
18 namespace HepMC3 {
19  /// Get the HepMC library version string
20  inline std::string version() {
21  return HEPMC3_VERSION;
22  }
23 }
24 
25 #endif
HepMC3 main namespace.
Definition: WriterDOT.h:19
std::string version()
Get the HepMC library version string.
Definition: Version.h:20