ATLAS Offline Software
ViewMergeAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ATHVIEWS_ATHVIEWS_VIEWMERGEALG_H
6 #define ATHVIEWS_ATHVIEWS_VIEWMERGEALG_H 1
7 
8 // STL includes
9 #include <string>
10 #include <vector>
11 
12 // FrameWork includes
16 #include "AthViews/View.h"
17 
18 namespace AthViews {
19 
21  : public ::AthAlgorithm
22 {
23 
25  // Public methods:
27  public:
28 
29  // Copy constructor:
30 
32  ViewMergeAlg( const std::string& name, ISvcLocator* pSvcLocator );
33 
35  virtual ~ViewMergeAlg();
36 
37  // Athena algorithm's Hooks
38  virtual StatusCode initialize();
39  virtual StatusCode execute();
40  virtual StatusCode finalize();
41 
42  private:
43 
46 
47 
48  // vars
49  SG::WriteHandleKey< std::vector<int> > m_w_ints{ this, "MergedInts", "mergedOutput", "Data flow of ints" };
50  SG::ReadHandleKey< std::vector<int> > m_r_ints; //This is not guaranteed to be created, so can't be declared
51  SG::ReadHandleKey< ViewContainer > m_r_views{ this, "AllViews", "all_views", "All views" };
52 };
53 } //> end namespace AthViews
54 #endif //> !ATHVIEWS_ATHVIEWS_VIEWMERGEALG_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthViews::ViewMergeAlg::~ViewMergeAlg
virtual ~ViewMergeAlg()
Destructor:
Definition: ViewMergeAlg.cxx:33
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
AthViews::ViewMergeAlg::m_r_ints
SG::ReadHandleKey< std::vector< int > > m_r_ints
Definition: ViewMergeAlg.h:50
AthAlgorithm.h
AthViews::ViewMergeAlg
Definition: ViewMergeAlg.h:22
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
AthViews::ViewMergeAlg::finalize
virtual StatusCode finalize()
Definition: ViewMergeAlg.cxx:49
AthViews::ViewMergeAlg::execute
virtual StatusCode execute()
Definition: ViewMergeAlg.cxx:56
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgorithm
Definition: AthAlgorithm.h:47
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
AthViews
Definition: ViewDataVerifier.cxx:18
AthViews::ViewMergeAlg::ViewMergeAlg
ViewMergeAlg()
Default constructor:
View.h
AthViews::ViewMergeAlg::m_r_views
SG::ReadHandleKey< ViewContainer > m_r_views
Definition: ViewMergeAlg.h:51
AthViews::ViewMergeAlg::m_w_ints
SG::WriteHandleKey< std::vector< int > > m_w_ints
Definition: ViewMergeAlg.h:49
AthViews::ViewMergeAlg::initialize
virtual StatusCode initialize()
Definition: ViewMergeAlg.cxx:38