Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
sPHENIX
Alignment
CI
cmake
Core
docs
Examples
Algorithms
Alignment
AmbiguityResolution
Digitization
Fatras
Geant4
Geant4HepMC
Generators
GeneratorsPythia8
ActsExamples
Generators
Pythia8ProcessGenerator.cpp
Pythia8ProcessGenerator.hpp
Geometry
HepMC
MaterialMapping
Printers
Propagation
TrackFinding
TrackFindingExaTrkX
TrackFindingML
TrackFitting
TruthTracking
Utilities
Vertexing
Detectors
Framework
Io
Python
Run
Scripts
Fatras
Plugins
Tests
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
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 "
Acts/Definitions/PdgParticle.hpp
"
12
#include "
Acts/Definitions/Units.hpp
"
13
#include "
Acts/Utilities/Logger.hpp
"
14
#include "
ActsExamples/EventData/SimParticle.hpp
"
15
#include "
ActsExamples/Framework/RandomNumbers.hpp
"
16
#include "
ActsExamples/Generators/EventGenerator.hpp
"
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
28
class
Pythia8Generator
:
public
EventGenerator::ParticlesGenerator
{
29
public
:
30
struct
Config
{
32
Acts::PdgParticle
pdgBeam0
=
Acts::PdgParticle::eProton
;
34
Acts::PdgParticle
pdgBeam1
=
Acts::PdgParticle::eProton
;
36
double
cmsEnergy
= 14 *
Acts::UnitConstants::TeV
;
38
std::vector<std::string>
settings
= {{
"HardQCD:all = on"
}};
40
bool
printShortEventListing
=
false
;
42
bool
printLongEventListing
=
false
;
43
};
44
45
Pythia8Generator
(
const
Config
&
cfg
,
Acts::Logging::Level
lvl);
46
~Pythia8Generator
()
override
;
47
// try to prevent pythia breakage by forbidding copying
48
Pythia8Generator
() =
delete
;
49
Pythia8Generator
(
const
Pythia8Generator
&) =
delete
;
50
Pythia8Generator
(
Pythia8Generator
&&) =
delete
;
51
Pythia8Generator
&
operator=
(
const
Pythia8Generator
&) =
delete
;
52
Pythia8Generator
&
operator=
(
Pythia8Generator
&& other) =
delete
;
53
54
SimParticleContainer
operator()
(
RandomEngine
&
rng
)
override
;
55
56
private
:
58
const
Acts::Logger
&
logger
()
const
{
return
(*
m_logger
); }
59
60
Config
m_cfg
;
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
acts
blob
sPHENIX
Examples
Algorithms
GeneratorsPythia8
ActsExamples
Generators
Pythia8ProcessGenerator.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:37
using
1.8.2 with
sPHENIX GitHub integration