EIC Software
 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 
10 
12 
13 #include <cstddef>
14 
17  : ActsExamples::BareAlgorithm("HelloLogger", level) {}
18 
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");
29 }