Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PlanarSteppingAlgorithm.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PlanarSteppingAlgorithm.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/Digitization/DigitizationSourceLink.hpp
"
12
#include "
Acts/Digitization/PlanarModuleCluster.hpp
"
13
#include "
Acts/Geometry/GeometryIdentifier.hpp
"
14
#include "
Acts/Utilities/Logger.hpp
"
15
#include "
ActsExamples/EventData/GeometryContainers.hpp
"
16
#include "
ActsExamples/EventData/Index.hpp
"
17
#include "
ActsExamples/EventData/IndexSourceLink.hpp
"
18
#include "
ActsExamples/EventData/Measurement.hpp
"
19
#include "
ActsExamples/EventData/SimHit.hpp
"
20
#include "
ActsExamples/Framework/DataHandle.hpp
"
21
#include "
ActsExamples/Framework/IAlgorithm.hpp
"
22
#include "
ActsExamples/Framework/ProcessCode.hpp
"
23
#include "
ActsExamples/Framework/RandomNumbers.hpp
"
24
25
#include <memory>
26
#include <string>
27
#include <unordered_map>
28
#include <vector>
29
30
namespace
ActsFatras {
31
class
Barcode;
32
}
// namespace ActsFatras
33
34
namespace
Acts {
35
class
DigitizationModule;
36
class
IdentifiedDetectorElement;
37
class
PlanarModuleStepper;
38
class
Surface
;
39
class
TrackingGeometry
;
40
class
PlanarModuleCluster;
41
}
// namespace Acts
42
43
namespace
ActsExamples {
44
class
IndexSourceLink;
45
class
RandomNumbers;
46
struct
AlgorithmContext;
47
49
class
PlanarSteppingAlgorithm
final :
public
IAlgorithm
{
50
public
:
51
using
ClusterContainer
=
52
ActsExamples::GeometryIdMultimap<Acts::PlanarModuleCluster>
;
53
54
struct
Config
{
56
std::string
inputSimHits
;
58
std::string
outputClusters
;
60
std::string
outputSourceLinks
;
62
std::string
outputDigiSourceLinks
;
64
std::string
outputMeasurements
;
66
std::string
outputMeasurementParticlesMap
;
68
std::string
outputMeasurementSimHitsMap
;
70
std::shared_ptr<const Acts::TrackingGeometry>
trackingGeometry
;
72
std::shared_ptr<const Acts::PlanarModuleStepper>
planarModuleStepper
;
74
std::shared_ptr<const RandomNumbers>
randomNumbers
;
75
};
76
81
PlanarSteppingAlgorithm
(
Config
config
,
Acts::Logging::Level
level
);
82
87
ProcessCode
execute
(
const
AlgorithmContext
& ctx)
const override
;
88
90
const
Config
&
config
()
const
{
return
m_cfg
; }
91
92
private
:
93
struct
Digitizable
{
94
const
Acts::Surface
*
surface
=
nullptr
;
95
const
Acts::IdentifiedDetectorElement
*
detectorElement
=
nullptr
;
96
const
Acts::DigitizationModule
*
digitizer
=
nullptr
;
97
};
98
99
Config
m_cfg
;
101
std::unordered_map<Acts::GeometryIdentifier, Digitizable>
m_digitizables
;
102
103
ReadDataHandle<SimHitContainer>
m_inputSimHits
{
this
,
"InputSimHits"
};
104
105
WriteDataHandle<ClusterContainer>
m_outputClusters
{
this
,
"OutputClusters"
};
106
107
WriteDataHandle<GeometryIdMultiset<IndexSourceLink>
>
m_outputSourceLinks
{
108
this
,
"OutputSourceLinks"
};
109
110
WriteDataHandle<std::vector<Acts::DigitizationSourceLink>
>
111
m_outputDigiSourceLinks
{
this
,
"OutputDigiSourceLinks"
};
112
113
WriteDataHandle<MeasurementContainer>
m_outputMeasurements
{
114
this
,
"OutputMeasurements"
};
115
116
WriteDataHandle<IndexMultimap<ActsFatras::Barcode>
>
117
m_outputMeasurementParticlesMap
{
this
,
"OutputMeasurementParticlesMap"
};
118
119
WriteDataHandle<IndexMultimap<Index>
>
m_outputMeasurementSimHitsMap
{
120
this
,
"OutputMeasurementSimHitsMap"
};
121
};
122
123
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Algorithms
Digitization
include
ActsExamples
Digitization
PlanarSteppingAlgorithm.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:36
using
1.8.2 with
sPHENIX GitHub integration