Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Sherpa Team
sherpa
Commits
0c705950
Commit
0c705950
authored
Sep 26, 2012
by
Hendrik Hoeth
Browse files
detect whether Rivet uses AIDA or YODA (merge from trunk)
parent
ac28f378
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
ATOOLS/Org/CXXFLAGS_PACKAGES.H.in
ATOOLS/Org/CXXFLAGS_PACKAGES.H.in
+3
-0
AddOns/Rivet/Rivet_Interface.C
AddOns/Rivet/Rivet_Interface.C
+4
-0
m4/acinclude.m4
m4/acinclude.m4
+4
-0
No files found.
ATOOLS/Org/CXXFLAGS_PACKAGES.H.in
View file @
0c705950
...
...
@@ -37,6 +37,9 @@
/* setSumOfWeights function available in Rivet */
#undef USING__RIVET__SETSOW
/* Rivet uses YODA as its histogramming backend */
#undef USING__RIVET__YODA
/* using FASTJET */
#undef USING__FASTJET
...
...
AddOns/Rivet/Rivet_Interface.C
View file @
0c705950
...
...
@@ -289,7 +289,11 @@ public:
if
(
it
->
first
.
first
!=
""
)
out
+=
"."
+
it
->
first
.
first
;
if
(
it
->
first
.
second
!=
0
)
out
+=
".j"
+
ToString
(
it
->
first
.
second
);
it
->
second
->
finalize
();
#ifdef USING__RIVET__YODA
it
->
second
->
writeData
(
out
+
".yoda"
);
#else
it
->
second
->
writeData
(
out
+
".aida"
);
#endif
}
m_finished
=
true
;
return
true
;
...
...
m4/acinclude.m4
View file @
0c705950
...
...
@@ -437,6 +437,7 @@ AC_DEFUN([SHERPA_SETUP_CONFIGURE_OPTIONS],
CONDITIONAL_RIVETLDADD="$($CONDITIONAL_RIVETDIR/bin/rivet-config --ldflags) $($CONDITIONAL_RIVETDIR/bin/rivet-config --ldadd)";
CONDITIONAL_RIVETCPPFLAGS="$($CONDITIONAL_RIVETDIR/bin/rivet-config --cppflags)";
AC_MSG_RESULT([${CONDITIONAL_RIVETDIR}]); rivet=true;
"$CONDITIONAL_RIVETDIR/bin/rivet-config" --version | grep -q '^1\.' || rivetyoda=true
else
AC_MSG_ERROR(Unable to use Rivet from specified path.);
fi;
...
...
@@ -453,6 +454,9 @@ AC_DEFUN([SHERPA_SETUP_CONFIGURE_OPTIONS],
if test "$rivetsetsow" = "true" ; then
AC_DEFINE([USING__RIVET__SETSOW], "1", [setSumOfWeights function available in Rivet])
fi
if test "$rivetyoda" = "true" ; then
AC_DEFINE([USING__RIVET__YODA], "1", [Rivet uses YODA as its histogramming backend])
fi
AC_SUBST(CONDITIONAL_RIVETLDADD)
AC_SUBST(CONDITIONAL_RIVETCPPFLAGS)
AM_CONDITIONAL(RIVET_SUPPORT, test "$rivet" = "true")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment