Skip to content
Snippets Groups Projects

WIP: Enable Pythia8 CI jobs

Closed Moritz Kiehn requested to merge msmk-pythia8_ci into master
Files
4
@@ -9,10 +9,12 @@
/// @file
/// @brief Fatras example with a pythia8 generator and the generic detector
#include <ACTS/Detector/TrackingGeometry.hpp>
#include <ACTS/Utilities/Units.hpp>
#include <boost/program_options.hpp>
#include <cstdlib>
#include <ACTS/Detector/TrackingGeometry.hpp>
#include <ACTS/Utilities/Units.hpp>
#include "ACTFW/Framework/StandardOptions.hpp"
#include "ACTFW/GenericDetector/BuildGenericDetector.hpp"
#include "ACTFW/Plugins/BField/BFieldOptions.hpp"
@@ -59,8 +61,14 @@ main(int argc, char* argv[])
std::string outputDir = "";
// read and create the magnetic field
auto bField = FW::Options::readBField<po::variables_map>(vm);
// Create the random number engine
auto randomNumbersCfg
= FW::Options::readRandomNumbersConfig<po::variables_map>(vm);
auto randomNumbers = std::make_shared<FW::RandomNumbersSvc>(randomNumbersCfg);
// now read the pythia8 configs
auto pythia8Configs = FW::Options::readPythia8Config<po::variables_map>(vm);
pythia8Configs.first.randomNumbers = randomNumbers;
pythia8Configs.second.randomNumbers = randomNumbers;
// the hard scatter generator
auto hsPythiaGenerator = std::make_shared<FW::GPythia8::Generator>(
pythia8Configs.first,
@@ -69,10 +77,6 @@ main(int argc, char* argv[])
auto puPythiaGenerator = std::make_shared<FW::GPythia8::Generator>(
pythia8Configs.second,
Acts::getDefaultLogger("PileUpPythia8Generator", logLevel));
// Create the random number engine
auto randomNumbersCfg
= FW::Options::readRandomNumbersConfig<po::variables_map>(vm);
auto randomNumbers = std::make_shared<FW::RandomNumbersSvc>(randomNumbersCfg);
// Create the barcode service
FW::BarcodeSvc::Config barcodeSvcCfg;
auto barcodeSvc = std::make_shared<FW::BarcodeSvc>(
Loading