ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
11
#include <memory>
12
#include <mutex>
13
#include <vector>
14
15
#include "
ACTFW/EventData/SimVertex.hpp
"
16
#include "
ACTFW/Framework/RandomNumbers.hpp
"
17
#include "
Acts/Utilities/Logger.hpp
"
18
#include "
Acts/Utilities/PdgParticle.hpp
"
19
#include "
Acts/Utilities/Units.hpp
"
20
21
namespace
Pythia8
{
22
class
Pythia;
23
}
24
namespace
FW {
25
26
class
Pythia8Generator
{
27
public
:
28
struct
Config
{
30
Acts::PdgParticle
pdgBeam0
=
Acts::PdgParticle::eProton
;
32
Acts::PdgParticle
pdgBeam1
=
Acts::PdgParticle::eProton
;
34
double
cmsEnergy
= 14 *
Acts::UnitConstants::TeV
;
36
std::vector<std::string>
settings
= {{
"HardQCD:all = on"
}};
37
};
38
39
static
std::function<std::vector<SimVertex>(
RandomEngine
&)>
makeFunction
(
40
const
Config
& cfg,
Acts::Logging::Level
lvl);
41
42
// try to prevent pythia breakage by forbidding copying
43
Pythia8Generator
() =
delete
;
44
Pythia8Generator
(
const
Pythia8Generator
&) =
delete
;
45
Pythia8Generator
(
Pythia8Generator
&&) =
delete
;
46
Pythia8Generator
&
operator=
(
const
Pythia8Generator
&) =
delete
;
47
Pythia8Generator
&
operator=
(
Pythia8Generator
&& other) =
delete
;
48
49
Pythia8Generator
(
const
Config
& cfg,
Acts::Logging::Level
lvl);
50
~Pythia8Generator
();
51
52
std::vector<SimVertex>
operator()
(
RandomEngine
& rng);
53
54
private
:
56
const
Acts::Logger
&
logger
()
const
{
return
(*
m_logger
); }
57
58
Config
m_cfg
;
59
std::unique_ptr<const Acts::Logger>
m_logger
;
60
std::unique_ptr<::Pythia8::Pythia>
m_pythia8
;
61
std::mutex
m_pythia8Mutex
;
62
};
63
64
}
// namespace FW
acts
blob
master
Examples
Algorithms
GeneratorsPythia8
ACTFW
Generators
Pythia8ProcessGenerator.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:23
using
1.8.2 with
ECCE GitHub integration