![]() |
|
|||
File indexing completed on 2025-09-17 08:21:50
0001 // This file is part of the ACTS project. 0002 // 0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project 0004 // 0005 // This Source Code Form is subject to the terms of the Mozilla Public 0006 // License, v. 2.0. If a copy of the MPL was not distributed with this 0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/. 0008 0009 #pragma once 0010 0011 #include "Acts/Plugins/FpeMonitoring/FpeMonitor.hpp" 0012 #include <Acts/Geometry/GeometryContext.hpp> 0013 #include <Acts/MagneticField/MagneticFieldContext.hpp> 0014 #include <Acts/Utilities/CalibrationContext.hpp> 0015 0016 namespace ActsExamples { 0017 0018 class WhiteBoard; 0019 0020 /// Aggregated information to run one algorithm over one event. 0021 struct AlgorithmContext { 0022 /// @brief constructor with arguments 0023 /// 0024 /// @param alg is the algorithm/service/writer number 0025 /// @param event is the event number 0026 /// @param store is the event-wise event store 0027 /// 0028 /// @note the event dependent contexts are to be added by the 0029 /// Sequencer::m_decorators list 0030 AlgorithmContext(std::size_t alg, std::size_t event, WhiteBoard& store) 0031 : algorithmNumber(alg), eventNumber(event), eventStore(store) {} 0032 0033 /// @brief ++operator overload to increase the algorithm number 0034 AlgorithmContext& operator++() { 0035 algorithmNumber += 1; 0036 return (*this); 0037 } 0038 0039 std::size_t algorithmNumber; ///< Unique algorithm identifier 0040 std::size_t eventNumber; ///< Unique event identifier 0041 WhiteBoard& eventStore; ///< Per-event data store 0042 Acts::GeometryContext geoContext; ///< Per-event geometry context 0043 Acts::MagneticFieldContext 0044 magFieldContext; ///< Per-event magnetic Field context 0045 Acts::CalibrationContext calibContext; ///< Per-event calibration context 0046 0047 Acts::FpeMonitor* fpeMonitor = nullptr; 0048 }; 0049 0050 } // namespace ActsExamples
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |