ATLAS Offline Software
DigiDemoSetupAlg.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_DIGIDEMOSETUPALG_H
6 #define ATHVIEWS_ATHVIEWS_DIGIDEMOSETUPALG_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 
20 
22  : public ::AthAlgorithm
23 {
24  public:
26  DigiDemoSetupAlg( const std::string& name, ISvcLocator* pSvcLocator );
27 
29  virtual ~DigiDemoSetupAlg();
30 
31  // Athena algorithm's Hooks
32  virtual StatusCode initialize();
33  virtual StatusCode execute();
34  virtual StatusCode finalize();
35 
36  private:
37 
40 
42 
43  // vars
44  ServiceHandle< IScheduler > m_scheduler { this, "Scheduler", "AvalancheSchedulerSvc", "The Athena scheduler" };
45  ServiceHandle< IProxyDict > m_digiStore { this, "DigiStore", "digi_store", "The store for pileup events" };
46  SG::WriteHandleKey< ViewContainer > m_w_views { this, "AllViews", "all_views", "All views" };
47  SG::WriteHandleKey< std::vector< int > > m_w_ints { this, "DigiData", "digi_data", "Something to store for each pileup event" };
48  Gaudi::Property< std::string > m_viewBaseName { this, "ViewBaseName", "", "Name to use for all views - number will be appended" };
49  Gaudi::Property< std::string > m_viewNodeName { this, "ViewNodeName", "", "Name of CF node to attach views to" };
50  Gaudi::Property< int > m_viewNumber { this, "ViewNumber", 0, "Total number of views to make" };
51 };
52 
53 
54 } //> end namespace AthViews
55 
56 #endif //> !ATHVIEWS_ATHVIEWS_DIGIDEMOSETUPALG_H
AthViews::DigiDemoSetupAlg::DigiDemoSetupAlg
DigiDemoSetupAlg()
Default constructor:
AthViews::DigiDemoSetupAlg::initialize
virtual StatusCode initialize()
Definition: DigiDemoSetupAlg.cxx:21
AthViews::DigiDemoSetupAlg::m_scheduler
ServiceHandle< IScheduler > m_scheduler
Containers.
Definition: DigiDemoSetupAlg.h:44
AthViews::DigiDemoSetupAlg::m_viewNodeName
Gaudi::Property< std::string > m_viewNodeName
Definition: DigiDemoSetupAlg.h:49
AthAlgorithm.h
AthViews::DigiDemoSetupAlg::m_digiStore
ServiceHandle< IProxyDict > m_digiStore
Definition: DigiDemoSetupAlg.h:45
AthViews::DigiDemoSetupAlg::m_viewBaseName
Gaudi::Property< std::string > m_viewBaseName
Definition: DigiDemoSetupAlg.h:48
AthViews::DigiDemoSetupAlg::m_w_ints
SG::WriteHandleKey< std::vector< int > > m_w_ints
Definition: DigiDemoSetupAlg.h:47
SG::WriteHandleKey< ViewContainer >
AthViews::DigiDemoSetupAlg::execute
virtual StatusCode execute()
Definition: DigiDemoSetupAlg.cxx:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthViews::DigiDemoSetupAlg
Definition: DigiDemoSetupAlg.h:23
AthViews::DigiDemoSetupAlg::finalize
virtual StatusCode finalize()
Definition: DigiDemoSetupAlg.cxx:33
AthViews::DigiDemoSetupAlg::~DigiDemoSetupAlg
virtual ~DigiDemoSetupAlg()
Destructor:
Definition: DigiDemoSetupAlg.cxx:17
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:221
AthViews
Definition: ViewDataVerifier.cxx:18
AthViews::DigiDemoSetupAlg::m_w_views
SG::WriteHandleKey< ViewContainer > m_w_views
Definition: DigiDemoSetupAlg.h:46
AthViews::DigiDemoSetupAlg::m_viewNumber
Gaudi::Property< int > m_viewNumber
Definition: DigiDemoSetupAlg.h:50
View.h
ServiceHandle< IScheduler >