ATLAS Offline Software
ZdcRecV3.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // ZdcRec.h, (c) ATLAS Detector software
8 
9 #ifndef ZDCRECV3_H
10 #define ZDCRECV3_H
11 
12 #include <string>
13 #include <map>
14 
15 
16 
17 //which one ???
19 //#include "GaudiKernel/Algorithm.h"
22 #include "GaudiKernel/ToolHandle.h"
23 #include "GaudiKernel/ServiceHandle.h"
24 
25 
26 
27 //#include "ZdcRec/ZdcRecNoiseTool.h"
28 //#include "ZdcRec/ZdcRecChannelTool.h"
29 
30 class ISvcLocator;
31 class StatusCode;
32 class Identifier;
33 class StoreGateSvc;
34 
36 
46 class ZdcRecV3 : public AthAlgorithm
47 {
48 
49 public:
50 
51  ZdcRecV3(const std::string& name, ISvcLocator* pSvcLocator);
52  ~ZdcRecV3();
53 
54  StatusCode initialize() override;
55  StatusCode execute() override;
56  StatusCode finalize() override;
57 
58 private:
59 
61  //StoreGateSvc* m_storeGate;
62  // ServiceHandle<StoreGateSvc> m_storeGate;
63 
64 
67 
68 
70  //std::string m_ttContainerName;
71 
73  //std::string m_zdcModuleContainerName;
74  //std::string m_zdcModuleAuxContainerName;
75 
76 
78  //const xAOD::TriggerTowerContainer* m_ttContainer;
79 
80 
82  { this, "ZdcModuleContainerName", "ZdcModules", "" };
83 
85  { this, "ZdcSumContainerName", "ZdcSums", "" };
86 
87  //Include here all tools to do the job. They will be called by the algorithm execute method
88  //Another option is to use ToolHandleArray<IZdcRecTool>, where IZdcRecTool is the factory for
89  //the tools
90  ToolHandle<ZDC::IZdcAnalysisTool> m_zdcTool
91  { this, "ZdcAnalysisTool", "ZDC::ZdcAnalysisTool/ZdcAnalysisTool", "" };
92 
93 };
94 
95 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ZdcRecV3::ZdcRecV3
ZdcRecV3(const std::string &name, ISvcLocator *pSvcLocator)
Definition: ZdcRecV3.cxx:28
ZdcRecV3::finalize
StatusCode finalize() override
Definition: ZdcRecV3.cxx:85
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
ZdcAnalysisTool.h
AthAlgorithm.h
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
ZdcRecV3
Definition: ZdcRecV3.h:47
ZdcRecV3::m_zdcModuleContainerName
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleContainerName
Digits data container name.
Definition: ZdcRecV3.h:82
ZdcRecV3::~ZdcRecV3
~ZdcRecV3()
Definition: ZdcRecV3.cxx:38
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ZdcRecV3::execute
StatusCode execute() override
Definition: ZdcRecV3.cxx:65
AthAlgorithm
Definition: AthAlgorithm.h:47
ZdcRecV3::initialize
StatusCode initialize() override
Definition: ZdcRecV3.cxx:42
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
ZdcRecV3::m_zdcTool
ToolHandle< ZDC::IZdcAnalysisTool > m_zdcTool
Definition: ZdcRecV3.h:91
ZdcRecV3::m_zdcSumContainerName
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcSumContainerName
Definition: ZdcRecV3.h:85
ZdcRecV3::m_ownPolicy
int m_ownPolicy
class member version of retrieving StoreGate
Definition: ZdcRecV3.h:66