ATLAS Offline Software
SGInputLoader.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // SGInputLoader.h
8 // Header file for class SGInputLoader
10 #ifndef SGCOMPS_SGINPUTLOADER_H
11 #define SGCOMPS_SGINPUTLOADER_H 1
12 
13 // STL includes
14 #include <string>
15 
16 // FrameWork includes
17 #include "GaudiKernel/DataObjID.h"
19 
21  : public ::AthAlgorithm
22 {
23 
24  public:
25 
26  SGInputLoader( const std::string& name, ISvcLocator* pSvcLocator );
27 
28  virtual ~SGInputLoader();
29 
31  bool isClonable() const override { return true; }
32 
33  virtual StatusCode initialize() override;
34  virtual StatusCode execute() override;
35  virtual StatusCode finalize() override;
36 
37  private:
38 
41 
42  void loader(Gaudi::Details::PropertyBase&);
43  bool loadObjs(const DataObjIDColl& objs) const;
44 
46  DataObjIDColl m_load; // create Output data dependencies for these objects
47 
48  Gaudi::Property< bool > m_dump {this, "ShowEventDump", false,
49  "printout contents of EventStore at end of execute()"};
50 
51  Gaudi::Property<bool> m_failEvt{this, "FailIfNoProxy", true,
52  "execute returns FAILURE if a requested proxy is not found in store"};
53 
54  Gaudi::Property<bool> m_loadProxies{this, "LoadExtraProxies", true,
55  "load the Proxies attributed to the SGInputLoader by the Scheduler"};
56 
57  // other
58  bool m_first{true};
59 
60 };
61 
62 
63 #endif //> !SGCOMPS_SGINPUTLOADER_H
SGInputLoader::finalize
virtual StatusCode finalize() override
Definition: SGInputLoader.cxx:87
SGInputLoader::~SGInputLoader
virtual ~SGInputLoader()
Definition: SGInputLoader.cxx:56
SGInputLoader::loader
void loader(Gaudi::Details::PropertyBase &)
Definition: SGInputLoader.cxx:155
SGInputLoader::m_loadProxies
Gaudi::Property< bool > m_loadProxies
Definition: SGInputLoader.h:54
SGInputLoader::isClonable
bool isClonable() const override
this Alg is Clonable (for AthenaMT)
Definition: SGInputLoader.h:31
SGInputLoader::initialize
virtual StatusCode initialize() override
Definition: SGInputLoader.cxx:62
AthAlgorithm.h
SGInputLoader::m_dump
Gaudi::Property< bool > m_dump
Definition: SGInputLoader.h:48
SGInputLoader::m_failEvt
Gaudi::Property< bool > m_failEvt
Definition: SGInputLoader.h:51
SGInputLoader::m_first
bool m_first
Definition: SGInputLoader.h:58
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
checkFileSG.objs
list objs
Definition: checkFileSG.py:93
SGInputLoader::m_load
DataObjIDColl m_load
Properties.
Definition: SGInputLoader.h:46
SGInputLoader::execute
virtual StatusCode execute() override
Definition: SGInputLoader.cxx:97
AthAlgorithm
Definition: AthAlgorithm.h:47
SGInputLoader::loadObjs
bool loadObjs(const DataObjIDColl &objs) const
Definition: SGInputLoader.cxx:177
SGInputLoader
Definition: SGInputLoader.h:22
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SGInputLoader::SGInputLoader
SGInputLoader()
Default constructor: