The Gaudi Framework
master (6507eef1)
Toggle main menu visibility
Loading...
Searching...
No Matches
ReadHandleAlg.cpp
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2026 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#include "
ReadHandleAlg.h
"
12
#include <
GaudiKernel/ThreadLocalContext.h
>
13
14
DECLARE_COMPONENT
(
Gaudi::TestSuite::ReadHandleAlg
)
15
16
StatusCode
Gaudi
::
TestSuite
::
ReadHandleAlg
::
execute
() {
17
18
const
Collision
* c =
m_inputHandle
.get();
19
20
const
int
evtNum =
Gaudi::Hive::currentContext
().
evt
();
21
22
info
() <<
"Event "
<< evtNum <<
" Collision number "
<< c->collision() <<
endmsg
;
23
for
(
const
auto
& input :
m_additionalInputs
.handles() ) {
24
info
() <<
"Event "
<< evtNum <<
" additional Collision number "
<< input.get()->collision() <<
endmsg
;
25
}
26
27
return
StatusCode::SUCCESS
;
28
}
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition
MsgStream.h:198
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition
PluginServiceV1.h:45
ReadHandleAlg.h
ThreadLocalContext.h
CommonMessagingBase::info
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Definition
CommonMessaging.h:115
EventContext::evt
ContextEvt_t evt() const
Definition
EventContext.h:51
Gaudi::TestSuite::Collision
Definition
Collision.h:26
Gaudi::TestSuite::ReadHandleAlg
Definition
ReadHandleAlg.h:21
Gaudi::TestSuite::ReadHandleAlg::m_inputHandle
DataObjectReadHandle< Collision > m_inputHandle
Definition
ReadHandleAlg.h:23
Gaudi::TestSuite::ReadHandleAlg::m_additionalInputs
Gaudi::DataHandleVector< DataObjectReadHandle, Collision > m_additionalInputs
Definition
ReadHandleAlg.h:24
Gaudi::TestSuite::ReadHandleAlg::execute
StatusCode execute() override
Event callback.
Definition
ReadHandleAlg.cpp:16
Gaudi::TestSuite::ReadHandleAlg::ReadHandleAlg
ReadHandleAlg(const std::string &n, ISvcLocator *l)
Definition
ReadHandleAlg.h:27
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition
StatusCode.h:99
Gaudi::Hive::currentContext
GAUDI_API const EventContext & currentContext()
Definition
ThreadLocalContext.cpp:30
Gaudi::TestSuite
Definition
ConditionAccessorHolder.h:21
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition
__init__.py:1
GaudiTestSuite
src
IO
ReadHandleAlg.cpp
Generated on
for The Gaudi Framework by
1.17.0