The Gaudi Framework  v37r1 (a7f61348)
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 "GaudiKernel/Algorithm.h"
17 
18 // Event Model related classes
19 #include "GaudiExamples/Counter.h"
20 #include "GaudiExamples/Event.h"
21 #include "GaudiExamples/MyTrack.h"
22 
23 using namespace Gaudi::Examples;
24 
28 class ReadHandleAlg : public Algorithm {
29 
30  DataObjectReadHandle<Collision> m_inputHandle{ this, "Input", "/Event/MyCollision" };
31 
32 public:
34 
35  bool isClonable() const override { return true; }
36 
38  StatusCode execute() override;
39 };
40 
41 #endif // GAUDIEXAMPLES_READALG_H
std::string
STL class.
ISvcLocator
Definition: ISvcLocator.h:46
Algorithm
Alias for backward compatibility.
Definition: Algorithm.h:58
Algorithm.h
Gaudi::Examples
Definition: EvtColAlg.cpp:40
StatusCode
Definition: StatusCode.h:65
GaudiPython.Pythonizations.execute
execute
Definition: Pythonizations.py:588
MyTrack.h
DataObjectReadHandle< Collision >
GaudiPluginService.cpluginsvc.n
n
Definition: cpluginsvc.py:235
ReadHandleAlg::isClonable
bool isClonable() const override
Definition: ReadHandleAlg.h:35
Event.h
gaudirun.l
dictionary l
Definition: gaudirun.py:582
ReadHandleAlg::ReadHandleAlg
ReadHandleAlg(const std::string &n, ISvcLocator *l)
Definition: ReadHandleAlg.h:33
Counter.h
DataObjectHandle.h