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
HelloLoggerAlgorithm.cpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file HelloLoggerAlgorithm.cpp
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
#include "
HelloLoggerAlgorithm.hpp
"
10
11
#include <cstddef>
12
13
#include "
ACTFW/Framework/WhiteBoard.hpp
"
14
15
FW::HelloLoggerAlgorithm::HelloLoggerAlgorithm
(
Acts::Logging::Level
level)
16
: FW::
BareAlgorithm
(
"HelloLogger"
, level) {}
17
18
FW::ProcessCode
FW::HelloLoggerAlgorithm::execute
(
19
const
AlgorithmContext
& ctx)
const
{
20
// using hard-coded data name should be avoided, but i'm a bit lazy tonight.
21
auto
block
= ctx.
eventStore
.
get
<std::size_t>(
"eventBlock"
);
22
23
ACTS_INFO
(
" Hello World! (from event="
<< ctx.
eventNumber
24
<<
", block="
<<
block
<<
")"
);
25
ACTS_DEBUG
(
" - that's an ACTS_DEBUG message"
);
26
ACTS_VERBOSE
(
" - that's an ACTS_VERBOSE message"
);
27
return
FW::ProcessCode::SUCCESS
;
28
}
acts
blob
master
Examples
Run
HelloWorld
HelloLoggerAlgorithm.cpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:24
using
1.8.2 with
ECCE GitHub integration