ATLAS Offline Software
ReaderAlg.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: ReaderAlg.h 348546 2011-03-01 15:09:56Z krasznaa $
8 #ifndef D3PDMAKERREADER_READERALG_H
9 #define D3PDMAKERREADER_READERALG_H
10 
11 // STL include(s):
12 #include <string>
13 
14 // Gaudi/Athena include(s):
15 #include "GaudiKernel/ServiceHandle.h"
16 #include "GaudiKernel/ToolHandle.h"
18 
19 // D3PDMaker include(s):
22 
23 namespace D3PD {
24 
25  // Forward declaration(s):
26  class IReaderD3PD;
27 
44  class ReaderAlg : public AthAlgorithm {
45 
46  public:
48  ReaderAlg( const std::string& name, ISvcLocator* svcloc );
49 
51  virtual StatusCode initialize();
53  virtual StatusCode finalize();
55  virtual StatusCode execute();
56 
57  private:
61  ToolHandleArray< IObjFillerTool > m_tools;
62 
64  std::string m_tuplePath;
65 
66  std::string m_prefix;
67 
68  std::string m_dir;
69  std::string m_classname;
70 
74  bool m_booked;
75 
76  }; // class ReaderAlg
77 
78 } // namespace D3PD
79 
80 #endif // D3PDMAKERREADER_READERALG_H
D3PD::ReaderAlg::m_prefix
std::string m_prefix
Common variable name prefix.
Definition: ReaderAlg.h:66
D3PD::ReaderAlg::execute
virtual StatusCode execute()
Standard Gaudi execute method.
Definition: ReaderAlg.cxx:77
D3PD::ReaderAlg::m_tools
ToolHandleArray< IObjFillerTool > m_tools
Property: List of object filler tools to run.
Definition: ReaderAlg.h:61
IObjFillerTool.h
Abstract interface for tool to fill an object in the D3PD.
AthAlgorithm.h
D3PD::ReaderAlg::initialize
virtual StatusCode initialize()
Standard Gaudi initialize method.
Definition: ReaderAlg.cxx:39
D3PD
Block filler tool for noisy FEB information.
Definition: InnerDetector/InDetMonitoring/InDetGlobalMonitoring/macros/EnhancedPrimaryVertexMonitoring/TrigD3PD/ChainGroup.h:21
D3PD::ReaderAlg::m_d3pd
IReaderD3PD * m_d3pd
The created tuple. Note: we don't take ownership.
Definition: ReaderAlg.h:72
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
D3PD::ReaderAlg::m_dir
std::string m_dir
Directory where the sources should be put.
Definition: ReaderAlg.h:68
D3PD::ReaderAlg::m_tuplePath
std::string m_tuplePath
Property: The tuple name.
Definition: ReaderAlg.h:64
AthAlgorithm
Definition: AthAlgorithm.h:47
D3PD::ReaderAlg::finalize
virtual StatusCode finalize()
Standard Gaudi finalize method.
Definition: ReaderAlg.cxx:69
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
D3PD::ReaderAlg
Algorithm used for generating D3PDReader sources.
Definition: ReaderAlg.h:44
D3PD::ReaderAlg::m_d3pdSvc
ServiceHandle< ID3PDSvc > m_d3pdSvc
Property: The D3PD creation service.
Definition: ReaderAlg.h:59
D3PD::ReaderAlg::m_booked
bool m_booked
Flag that we've called book().
Definition: ReaderAlg.h:74
D3PD::ReaderAlg::ReaderAlg
ReaderAlg(const std::string &name, ISvcLocator *svcloc)
Standard algorithm constructor.
Definition: ReaderAlg.cxx:15
D3PD::ReaderAlg::m_classname
std::string m_classname
Name of the generated class.
Definition: ReaderAlg.h:69
D3PD::IReaderD3PD
Common interface for the code generator D3PD classes.
Definition: IReaderD3PD.h:29
ID3PDSvc.h
Abstract interface for service to create D3PD trees.
ServiceHandle
Definition: ClusterMakerTool.h:37