From c79909e20b1afe509de841bb427aac57bc4dbcf7 Mon Sep 17 00:00:00 2001 From: Andrea Carlo Marini Date: Wed, 14 Jun 2017 17:10:48 +0200 Subject: [PATCH] making EWK compile w/o pythia --- interface/AnalysisChargedHiggsEWKPurity.hpp | 4 ++++ src/AnalysisChargedHiggsEWKPurity.cpp | 1 + 2 files changed, 5 insertions(+) diff --git a/interface/AnalysisChargedHiggsEWKPurity.hpp b/interface/AnalysisChargedHiggsEWKPurity.hpp index d49f0121411f4..c8358dbd05c33 100644 --- a/interface/AnalysisChargedHiggsEWKPurity.hpp +++ b/interface/AnalysisChargedHiggsEWKPurity.hpp @@ -8,9 +8,11 @@ #include // FWD Declaration +#ifdef HAVE_PYTHIA namespace Pythia8{ class Pythia; }; +#endif namespace CLHEP { class HepRandomEngine; @@ -34,7 +36,9 @@ class ChargedHiggsEWKPurity: virtual public ChargedHiggsTauNu void SetLeptonCuts(Lepton *l) override { l->SetIsoCut(10); l->SetPtCut(10);l->SetIsoRelCut(-1);l->SetEtaCut(2.4); l->SetTightCut(false);} private: + #ifdef HAVE_PYTHIA std::unique_ptr fMasterGen; + #endif std::unique_ptr random; }; diff --git a/src/AnalysisChargedHiggsEWKPurity.cpp b/src/AnalysisChargedHiggsEWKPurity.cpp index 33bbcf9153338..ec4d7c9060ca9 100644 --- a/src/AnalysisChargedHiggsEWKPurity.cpp +++ b/src/AnalysisChargedHiggsEWKPurity.cpp @@ -2,6 +2,7 @@ #include "interface/GeneralFunctions.hpp" #include "interface/CutSelector.hpp" #include "interface/AnalysisChargedHiggsTauNu.hpp" +#include "interface/Handlers.hpp" #include #ifdef HAVE_PYTHIA