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
EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
sPHENIX
CI
Core
docs
Examples
Algorithms
Detectors
Framework
Io
Run
Common
EventGenerator
Fatras
Geant4
Geometry
HelloWorld
HelloData.hpp
HelloLoggerAlgorithm.cpp
HelloLoggerAlgorithm.hpp
HelloRandomAlgorithm.cpp
HelloRandomAlgorithm.hpp
HelloService.cpp
HelloService.hpp
HelloWhiteBoardAlgorithm.cpp
HelloWhiteBoardAlgorithm.hpp
HelloWorld.cpp
HepMC3
MagneticField
MaterialMapping
Misc
Propagation
ReadCsv
Reconstruction
Vertexing
Scripts
Fatras
Plugins
Tests
thirdparty
BeastMagneticField
delphes_EIC
Doxygen_Assist
east
eic-smear
EicRoot
eicsmear-jetexample
eicsmeardetectors
EicToyModel
estarlight
Fun4All-lmon
fun4all_coresoftware
fun4all_eic_qa
fun4all_eic_tutorials
fun4all_eicdetectors
fun4all_eicmacros
fun4all_g4jleic
fun4all_GenFit
fun4all_macros
fun4all_tutorials
g4exampledetector
g4lblvtx
online_distribution
PEPSI
doxygen_mainpage.h
File Members
External Links
•
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