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
SequenceElement.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file SequenceElement.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 "
ActsExamples/Framework/AlgorithmContext.hpp
"
12
#include "
ActsExamples/Framework/ProcessCode.hpp
"
13
14
#include <string>
15
#include <vector>
16
17
namespace
ActsExamples {
18
19
class
DataHandleBase;
20
struct
AlgorithmContext;
21
24
class
SequenceElement
{
25
public
:
26
virtual
~SequenceElement
() =
default
;
27
29
virtual
std::string
name
()
const
= 0;
30
32
virtual
ProcessCode
initialize
() = 0;
33
35
virtual
ProcessCode
finalize
() = 0;
36
39
virtual
ProcessCode
internalExecute
(
const
AlgorithmContext
& context) = 0;
40
41
const
std::vector<const DataHandleBase*>&
writeHandles
()
const
;
42
const
std::vector<const DataHandleBase*>&
readHandles
()
const
;
43
44
private
:
45
void
registerWriteHandle
(
const
DataHandleBase
& handle);
46
void
registerReadHandle
(
const
DataHandleBase
& handle);
47
48
template
<
typename
T>
49
friend
class
WriteDataHandle
;
50
51
template
<
typename
T>
52
friend
class
ReadDataHandle
;
53
54
std::vector<const DataHandleBase*>
m_writeHandles
;
55
std::vector<const DataHandleBase*>
m_readHandles
;
56
};
57
58
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Framework
include
ActsExamples
Framework
SequenceElement.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:38
using
1.8.2 with
sPHENIX GitHub integration