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
GeantinoRecording.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file GeantinoRecording.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2017 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/Propagator/MaterialInteractor.hpp
>
12
#include <
Acts/Utilities/Definitions.hpp
>
13
#include <
Acts/Utilities/Logger.hpp
>
14
#include <
G4RunManager.hh
>
15
#include <memory>
16
17
#include "
ACTFW/Framework/BareAlgorithm.hpp
"
18
#include "
ACTFW/Plugins/DD4hepG4/DD4hepToG4Svc.hpp
"
19
20
namespace
Acts {
21
// Using some short hands for Recorded Material
22
using
RecordedMaterial
=
MaterialInteractor::result_type
;
23
24
// And recorded material track
25
// - this is start: position, start momentum
26
// and the Recorded material
27
using
RecordedMaterialTrack
=
28
std::pair<std::pair<Acts::Vector3D, Acts::Vector3D>,
RecordedMaterial
>;
29
}
// namespace Acts
30
31
namespace
FW {
32
42
class
GeantinoRecording
:
public
FW::BareAlgorithm
{
43
public
:
45
struct
Config
{
46
std::string
geantMaterialCollection
=
"geant-material-tracks"
;
47
50
std::shared_ptr<DD4hepG4::DD4hepToG4Svc>
geant4Service
=
nullptr
;
51
53
std::string
gdmlFile
;
55
size_t
tracksPerEvent
= 0;
56
58
int
seed1
= 12345;
60
int
seed2
= 45678;
61
};
62
64
GeantinoRecording
(
const
Config
& cnf,
65
Acts::Logging::Level
level =
Acts::Logging::INFO
);
66
67
FW::ProcessCode
execute
(
const
AlgorithmContext
&
context
)
const
final
override
;
68
69
private
:
71
Config
m_cfg
;
73
std::unique_ptr<G4RunManager>
m_runManager
;
74
};
75
}
// namespace FW
acts
blob
master
Examples
Algorithms
MaterialMapping
include
ACTFW
MaterialMapping
GeantinoRecording.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:23
using
1.8.2 with
ECCE GitHub integration