EIC Software
Reference for
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 "
ActsExamples/Framework/WhiteBoard.hpp
"
12
13
#include <cstddef>
14
15
ActsExamples::HelloLoggerAlgorithm::HelloLoggerAlgorithm
(
16
Acts::Logging::Level
level)
17
: ActsExamples::
BareAlgorithm
(
"HelloLogger"
, level) {}
18
19
ActsExamples::ProcessCode
ActsExamples::HelloLoggerAlgorithm::execute
(
20
const
AlgorithmContext
& ctx)
const
{
21
// using hard-coded data name should be avoided, but i'm a bit lazy tonight.
22
auto
block = ctx.
eventStore
.
get
<std::size_t>(
"eventBlock"
);
23
24
ACTS_INFO
(
" Hello World! (from event="
<< ctx.
eventNumber
25
<<
", block="
<< block <<
")"
);
26
ACTS_DEBUG
(
" - that's an ACTS_DEBUG message"
);
27
ACTS_VERBOSE
(
" - that's an ACTS_VERBOSE message"
);
28
return
ActsExamples::ProcessCode::SUCCESS
;
29
}
acts
blob
sPHENIX
Examples
Run
HelloWorld
HelloLoggerAlgorithm.cpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:25
using
1.8.2 with
EIC GitHub integration