Skip to content

Commit f5a3bb4

Browse files
committed
add missing headers
1 parent 1aaaa52 commit f5a3bb4

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

MC/config/PWGLF/pythia8/generator_pythia8_LF_rapidity.C

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,13 @@
1717
///
1818

1919
#if !defined(__CLING__) || defined(__ROOTCLING__)
20-
#include <cmath>
21-
#include <fstream>
2220
#include "Pythia8/Pythia.h"
2321
#include "FairGenerator.h"
2422
#include "Generators/GeneratorPythia8.h"
25-
#include "Generators/GeneratorPythia8Param.h"
2623
#include "TRandom3.h"
2724
#include "TParticlePDG.h"
2825
#include "TDatabasePDG.h"
2926
#include "TMath.h"
30-
#include "TSystem.h"
31-
#include "fairlogger/Logger.h"
3227
#if __has_include("SimulationDataFormat/MCGenStatus.h")
3328
#include "SimulationDataFormat/MCGenStatus.h"
3429
#else
@@ -37,8 +32,14 @@
3732
#if __has_include("SimulationDataFormat/MCUtils.h")
3833
#include "SimulationDataFormat/MCUtils.h"
3934
#endif
35+
#include "fairlogger/Logger.h"
36+
#include "TSystem.h"
37+
#include <fstream>
38+
#include "Generators/GeneratorPythia8Param.h"
39+
#include <cmath>
4040
#endif
41-
41+
// DecayerPythia8Param needs to be included after the #endif to work with Cling
42+
#include "Generators/DecayerPythia8Param.h"
4243
#if defined(__CLING__) && !defined(__ROOTCLING__)
4344
#if __has_include("SimulationDataFormat/MCGenStatus.h")
4445
#include "SimulationDataFormat/MCGenStatus.h"
@@ -50,9 +51,7 @@
5051
#endif
5152
#pragma cling load("libO2Generators")
5253
#endif
53-
5454
#include "Generators/GeneratorPythia8.h"
55-
#include "Generators/DecayerPythia8Param.h"
5655
#include <nlohmann/json.hpp>
5756

5857
using namespace Pythia8;

0 commit comments

Comments
 (0)