ATLAS Offline Software
ViewSubgraphAlg.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_VIEWSUBGRAPHALG_H
6 #define ATHVIEWS_ATHVIEWS_VIEWSUBGRAPHALG_H 1
7 
8 // STL includes
9 #include <string>
10 #include <vector>
11 
12 // FrameWork includes
14 #include "AthViews/View.h"
16 #include "GaudiKernel/IScheduler.h"
17 
18 namespace AthViews {
19 
21  : public ::AthAlgorithm
22 {
23 
25  // Public methods:
27  public:
28 
29  // Copy constructor:
30 
32  ViewSubgraphAlg( const std::string& name, ISvcLocator* pSvcLocator );
33 
35  virtual ~ViewSubgraphAlg();
36 
37  // Athena algorithm's Hooks
38  virtual StatusCode initialize();
39  virtual StatusCode execute();
40  virtual StatusCode finalize();
41  private:
42 
45 
47 
48  // vars
49  ServiceHandle< IScheduler > m_scheduler { this, "Scheduler", "AvalancheSchedulerSvc", "The Athena scheduler" };
50  SG::WriteHandleKey< ViewContainer > m_w_views { this, "AllViews", "all_views", "All views" };
51  SG::ReadHandleKey< ViewContainer > m_r_views { this, "ParentViews", "", "Parent views" };
52  SG::WriteHandleKey< int > m_w_int { this, "ViewStart", "view_start", "A number to start off the view" };
53  Gaudi::Property< std::string > m_viewBaseName { this, "ViewBaseName", "", "Name to use for all views - number will be appended" };
54  Gaudi::Property< std::string > m_viewNodeName { this, "ViewNodeName", "", "Name of CF node to attach views to" };
55  Gaudi::Property< int > m_viewNumber { this, "ViewNumber", 0, "Total number of views to make" };
56 };
57 
58 
59 } //> end namespace AthViews
60 
61 #endif //> !ATHVIEWS_ATHVIEWS_VIEWMAKEALG_H
AthViews::ViewSubgraphAlg::m_scheduler
ServiceHandle< IScheduler > m_scheduler
Containers.
Definition: ViewSubgraphAlg.h:49
AthViews::ViewSubgraphAlg::m_viewNodeName
Gaudi::Property< std::string > m_viewNodeName
Definition: ViewSubgraphAlg.h:54
AthViews::ViewSubgraphAlg
Definition: ViewSubgraphAlg.h:22
AthViews::ViewSubgraphAlg::m_viewNumber
Gaudi::Property< int > m_viewNumber
Definition: ViewSubgraphAlg.h:55
AthViews::ViewSubgraphAlg::finalize
virtual StatusCode finalize()
Definition: ViewSubgraphAlg.cxx:34
AthViews::ViewSubgraphAlg::ViewSubgraphAlg
ViewSubgraphAlg()
Default constructor:
AthViews::ViewSubgraphAlg::initialize
virtual StatusCode initialize()
Definition: ViewSubgraphAlg.cxx:21
SG::ReadHandleKey< ViewContainer >
AthViews::ViewSubgraphAlg::execute
virtual StatusCode execute()
Definition: ViewSubgraphAlg.cxx:41
AthViews::ViewSubgraphAlg::m_viewBaseName
Gaudi::Property< std::string > m_viewBaseName
Definition: ViewSubgraphAlg.h:53
AthAlgorithm.h
SG::WriteHandleKey< ViewContainer >
AthViews::ViewSubgraphAlg::m_w_int
SG::WriteHandleKey< int > m_w_int
Definition: ViewSubgraphAlg.h:52
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthViews::ViewSubgraphAlg::m_r_views
SG::ReadHandleKey< ViewContainer > m_r_views
Definition: ViewSubgraphAlg.h:51
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:195
AthViews
Definition: ViewDataVerifier.cxx:18
AthViews::ViewSubgraphAlg::~ViewSubgraphAlg
virtual ~ViewSubgraphAlg()
Destructor:
Definition: ViewSubgraphAlg.cxx:17
AthViews::ViewSubgraphAlg::m_w_views
SG::WriteHandleKey< ViewContainer > m_w_views
Definition: ViewSubgraphAlg.h:50
View.h
ServiceHandle< IScheduler >