ATLAS Offline Software
Loading...
Searching...
No Matches
ZdcRecV2.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6// ZdcRec.h, (c) ATLAS Detector software
8
9#ifndef ZDCRECV2_H
10#define ZDCRECV2_H
11
12#include <string>
13#include <map>
14
15
16
17//which one ???
19//#include "GaudiKernel/Algorithm.h"
20#include "GaudiKernel/ToolHandle.h"
21#include "GaudiKernel/ServiceHandle.h"
22#include "Gaudi/Property.h"
24
25
26
27//#include "ZdcRec/ZdcRecNoiseTool.h"
28//#include "ZdcRec/ZdcRecChannelTool.h"
29
30class ISvcLocator;
31class StatusCode;
32class Identifier;
33class StoreGateSvc;
34
39
47
48
49class ZdcRecV2 : public AthAlgorithm
50{
51
52public:
53
54 ZdcRecV2(const std::string& name, ISvcLocator* pSvcLocator);
55 ~ZdcRecV2();
56
57 StatusCode initialize();
58 StatusCode execute(const EventContext& ctx);
59 StatusCode finalize();
60
61private:
62
64 //StoreGateSvc* m_storeGate;
66
67
69 Gaudi::Property<int> m_ownPolicy{this, "OwnPolicy", static_cast<int> (SG::OWN_ELEMENTS)};
70
71
73 Gaudi::Property<std::string> m_ttContainerName{this, "DigitsContainerName", "ZdcTriggerTowers", "ZdcTriggerTowers"};
74
76 Gaudi::Property<std::string> m_zdcModuleContainerName{this, "ZdcModuleContainerName", "ZdcModules", "ZdcModules"};
77 Gaudi::Property<std::string> m_zdcModuleAuxContainerName{this, "ZdcModuleAuxContainerName", "ZdcModulesAux.", "ZdcModulesAux."};
78
79
82
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<ZdcRecChannelToolV2> m_ChannelTool{"ZdcRecChannelToolV2"};
91
92};
93
94#endif
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
The Athena Transient Store API.
ToolHandle< ZdcRecChannelToolV2 > m_ChannelTool
Definition ZdcRecV2.h:90
StatusCode execute(const EventContext &ctx)
Execute method.
Definition ZdcRecV2.cxx:81
const xAOD::TriggerTowerContainer * m_ttContainer
Pointer to Zdc input "digits" data.
Definition ZdcRecV2.h:81
bool m_complainRetrieve
Definition ZdcRecV2.h:85
int m_eventCount
Definition ZdcRecV2.h:83
StatusCode initialize()
Definition ZdcRecV2.cxx:43
Gaudi::Property< std::string > m_zdcModuleContainerName
Raw data object name.
Definition ZdcRecV2.h:76
ServiceHandle< StoreGateSvc > m_storeGate
class member version of retrieving StoreGate
Definition ZdcRecV2.h:65
Gaudi::Property< std::string > m_ttContainerName
Digits data container name.
Definition ZdcRecV2.h:73
Gaudi::Property< int > m_ownPolicy
Does the collection own it's objects ?
Definition ZdcRecV2.h:69
bool m_complainContain
Definition ZdcRecV2.h:84
ZdcRecV2(const std::string &name, ISvcLocator *pSvcLocator)
Definition ZdcRecV2.cxx:30
Gaudi::Property< std::string > m_zdcModuleAuxContainerName
Definition ZdcRecV2.h:77
StatusCode finalize()
Definition ZdcRecV2.cxx:145
::StatusCode StatusCode
StatusCode definition for legacy code.
@ OWN_ELEMENTS
this data object owns its elements
TriggerTowerContainer_v2 TriggerTowerContainer
Define the latest version of the TriggerTower container.