Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Pythia8ProcessGenerator.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Pythia8ProcessGenerator.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2017-2019 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
17 
18 #include <memory>
19 #include <mutex>
20 #include <string>
21 #include <vector>
22 
23 namespace Pythia8 {
24 class Pythia;
25 }
26 namespace ActsExamples {
27 
29  public:
30  struct Config {
38  std::vector<std::string> settings = {{"HardQCD:all = on"}};
40  bool printShortEventListing = false;
42  bool printLongEventListing = false;
43  };
44 
46  ~Pythia8Generator() override;
47  // try to prevent pythia breakage by forbidding copying
48  Pythia8Generator() = delete;
49  Pythia8Generator(const Pythia8Generator&) = delete;
52  Pythia8Generator& operator=(Pythia8Generator&& other) = delete;
53 
55 
56  private:
58  const Acts::Logger& logger() const { return (*m_logger); }
59 
61  std::unique_ptr<const Acts::Logger> m_logger;
62  std::unique_ptr<::Pythia8::Pythia> m_pythia8;
63  std::mutex m_pythia8Mutex;
64 };
65 
66 } // namespace ActsExamples