Skip to content

Commit fa79af8

Browse files
committed
Update ifdefs for real this time
1 parent e83b8d8 commit fa79af8

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

interface/CombineCodegenImpl.h

+13-2
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,28 @@
22
#define HiggsAnalysis_CombinedLimit_CombineCodegenImpl_h
33

44
#include <ROOT/RConfig.hxx> // for ROOT_VERSION
5+
#include <RooAbsReal.h>
6+
#include <string>
57

68
#if ROOT_VERSION_CODE >= ROOT_VERSION(6,35,0)
79
# define COMBINE_DECLARE_CODEGEN_IMPL(CLASS_NAME) \
810
namespace RooFit { namespace Experimental { void codegenImpl(CLASS_NAME &arg, CodegenContext &ctx); }}
11+
# define COMBINE_DECLARE_CODEGEN_INTEGRAL_IMPL(CLASS_NAME) \
12+
namespace RooFit { namespace Experimental { std::string codegenIntegralImpl(CLASS_NAME &arg, int code, const char *rangeName, CodegenContext &ctx); }}
913
# define COMBINE_DECLARE_TRANSLATE
14+
# define COMBINE_DECLARE_ANALYTICAL_INTEGRAL
1015
#elif ROOT_VERSION_CODE >= ROOT_VERSION(6,32,0)
1116
# define COMBINE_DECLARE_CODEGEN_IMPL(CLASS_NAME)
12-
# define COMBINE_DECLARE_TRANSLATE void translate(RooFit::Detail::CodeSquashContext &ctx) const override;
17+
# define COMBINE_DECLARE_CODEGEN_INTEGRAL_IMPL(CLASS_NAME)
18+
# define COMBINE_DECLARE_TRANSLATE \
19+
void translate(RooFit::Detail::CodeSquashContext &ctx) const override;
20+
# define COMBINE_DECLARE_ANALYTICAL_INTEGRAL \
21+
std::string buildCallToAnalyticIntegral(Int_t code, const char *rangeName, RooFit::Detail::CodeSquashContext &ctx) const override;
1322
#else
1423
# define COMBINE_DECLARE_CODEGEN_IMPL(_)
24+
# define COMBINE_DECLARE_CODEGEN_INTEGRAL_IMPL(_)
1525
# define COMBINE_DECLARE_TRANSLATE
26+
# define COMBINE_DECLARE_ANALYTICAL_INTEGRAL
1627
#endif
1728

18-
#endif
29+
#endif

0 commit comments

Comments
 (0)