8000 Rivet: added a test for LPAIR/CMS run 1 analysis · cepgen/cepgen@db4d8fb · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Rivet: added a test for LPAIR/CMS run 1 analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
forthommel committed Jan 6, 2023
1 parent d4fb551 commit db4d8fb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CepGenAddOns/RivetWrapper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ endif()
#----- build the object

cepgen_build(CepGenRivet SOURCES *.cpp
EXT_LIBS ${YODA}
EXT_HEADERS ${YODA_INCLUDE}
EXT_LIBS ${RIVET} ${FASTJET} ${FASTJET_CONTRIB} ${YODA} CepGenHepMC2
EXT_HEADERS ${RIVET_INCLUDE} ${FASTJET_INCLUDE} ${YODA_INCLUDE}
TESTS test/*.cc
OPTIONS "-Wno-deprecated-copy"
INSTALL_COMPONENT rivet)
26 changes: 26 additions & 0 deletions CepGenAddOns/RivetWrapper/test/test_lpair.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include "CepGen/Core/ExportModule.h"
#include "CepGen/Generator.h"
#include "CepGen/Modules/ExportModuleFactory.h"
#include "CepGen/Modules/ProcessFactory.h"
#include "CepGen/Parameters.h"
#include "CepGen/Process/Process.h"

int main() {
cepgen::Generator gen;

auto proc = cepgen::proc::ProcessFactory::get().build("lpair", cepgen::ParametersList());
gen.parametersRef().setProcess(std::move(proc));
cepgen::Kinematics kin;
kin.incomingBeams().positive().setPdgId(2212);
kin.incomingBeams().negative().setPdgId(2212);
kin.incomingBeams().setSqrtS(7.e3);
gen.parametersRef().process().setKinematics(kin);

auto rivet = cepgen::io::ExportModuleFactory::get().build(
"rivet", cepgen::ParametersList().set<std::vector<std::string> >("analyses", {"CMS_2011_I954992"}));
gen.parametersRef().addOutputModule(std::move(rivet));

gen.integrate();

return 0;
}

0 comments on commit db4d8fb

Please sign in to comment.
0