The Gaudi Framework
v36r9p1 (5c15b2bb)
ReadHandleAlg.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2019 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
#ifndef GAUDIEXAMPLES_READALG_H
12
#define GAUDIEXAMPLES_READALG_H
13
14
// Framework include files
15
#include "
GaudiAlg/GaudiAlgorithm.h
"
16
#include "
GaudiKernel/IIncidentListener.h
"
// Required for inheritance
17
18
// Forward declarations
19
class
IIncidentSvc
;
20
21
// Event Model related classes
22
#include "
GaudiExamples/Counter.h
"
23
#include "
GaudiExamples/Event.h
"
24
#include "
GaudiExamples/MyTrack.h
"
25
26
using namespace
Gaudi::Examples
;
27
31
class
ReadHandleAlg
:
public
GaudiAlgorithm
{
32
33
DataObjectReadHandle<Collision>
m_inputHandle{
this
,
"Input"
,
"/Event/MyCollision"
};
34
35
public
:
36
ReadHandleAlg
(
const
std::string
&
n
,
ISvcLocator
*
l
) :
GaudiAlgorithm
(
n
,
l
) {}
37
38
bool
isClonable
()
const override
{
return
true
; }
39
41
StatusCode
execute
()
override
;
42
};
43
44
#endif // GAUDIEXAMPLES_READALG_H
std::string
STL class.
ISvcLocator
Definition:
ISvcLocator.h:46
Gaudi::Examples
Definition:
ConditionAccessorHolder.h:21
StatusCode
Definition:
StatusCode.h:65
GaudiPython.Pythonizations.execute
execute
Definition:
Pythonizations.py:588
GaudiAlgorithm
Definition:
GaudiAlgorithm.h:104
MyTrack.h
DataObjectReadHandle< Collision >
GaudiPluginService.cpluginsvc.n
n
Definition:
cpluginsvc.py:235
ReadHandleAlg::isClonable
bool isClonable() const override
Definition:
ReadHandleAlg.h:38
Event.h
gaudirun.l
dictionary l
Definition:
gaudirun.py:580
GaudiAlgorithm.h
IIncidentListener.h
ReadHandleAlg::ReadHandleAlg
ReadHandleAlg(const std::string &n, ISvcLocator *l)
Definition:
ReadHandleAlg.h:36
Counter.h
IIncidentSvc
Definition:
IIncidentSvc.h:33
GaudiExamples
src
IO
ReadHandleAlg.h
Generated on Fri Feb 3 2023 18:02:54 for The Gaudi Framework by
1.8.18