ATLAS Offline Software
ZdcRecRun3.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 // ZdcRecRun3.h, (c) ATLAS Detector software
8 
9 #ifndef ZDCRECRun3_H
10 #define ZDCRECRun3_H
11 
12 #include <string>
13 #include <map>
14 
18 #include "GaudiKernel/ToolHandle.h"
19 #include "GaudiKernel/ServiceHandle.h"
20 
21 class ISvcLocator;
22 class StatusCode;
23 class Identifier;
24 class StoreGateSvc;
25 
27 
32 #include "ZdcUtils/ZdcEventInfo.h"
33 
34 
45 class ZdcRecRun3 : public AthAlgorithm
46 {
47 
48 public:
49 
50  ZdcRecRun3(const std::string& name, ISvcLocator* pSvcLocator);
51  ~ZdcRecRun3();
52 
53  StatusCode initialize() override;
54  StatusCode execute() override;
55  StatusCode finalize() override;
56 
57 
58 private:
59 
60  Gaudi::Property<std::string> m_configuration{this, "Configuration", "none", "ZDC reconstruction configuration"};
61 
62  Gaudi::Property<unsigned int> m_DAQMode{this, "DAQMode", static_cast<unsigned int>(ZdcEventInfo::CombinedPhysics), "DAQ mode"};
63 
64  Gaudi::Property<unsigned int> m_forcedEventType{this, "ForcedEventType", static_cast<unsigned int>(ZdcEventInfo::ZdcEventUnknown),
65  "if not ZdcEventUnknown, Use forced event type true/false"};
66 
67  Gaudi::Property<int> m_ownPolicy{this, "OwnPolicy", static_cast<int> (SG::OWN_ELEMENTS), "Ownership policy"};
68 
70  { this, "ZdcModuleContainerName", "ZdcModules", "" };
71 
73  { this, "ZdcSumContainerName", "ZdcSums", "" };
74 
75  SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey {this, "EventInfoKey", "EventInfo","Location of the event info."};
76  SG::WriteDecorHandleKey<xAOD::EventInfo> m_eventInfoDecorKey{this, "eventInfoDecorKey", "EventInfo.forwardDetFlags", "Key for EventInfo decoration object"};
77 
78  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_ZdcEventType{this, "ZdcEventTypeKey", "", "ZDC event Type"};
79 
80  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_ZdcDAQMode{this, "ZdcDAQModeKey", "", "ZDC DAQ mode"};
81 
82  // Override bad BCID in standalone data using BCID from ROB header(s)
83  //
84  SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> m_ZdcBCIDOverride{this, "ZdcBCIDOverride", "", "BCID with override"};
85 
86  ToolHandleArray<ZDC::IZdcAnalysisTool> m_zdcTools{ this, "ZdcAnalysisTools",{} };
87 
88 };
89 
90 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey< xAOD::EventInfo >
ZdcRecRun3::execute
StatusCode execute() override
Definition: ZdcRecRun3.cxx:89
ZdcRecRun3::m_zdcModuleContainerName
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleContainerName
Definition: ZdcRecRun3.h:70
ZdcRecRun3::ZdcRecRun3
ZdcRecRun3(const std::string &name, ISvcLocator *pSvcLocator)
Definition: ZdcRecRun3.cxx:31
ZdcRecRun3::m_configuration
Gaudi::Property< std::string > m_configuration
Definition: ZdcRecRun3.h:60
ZdcRecRun3::m_DAQMode
Gaudi::Property< unsigned int > m_DAQMode
Definition: ZdcRecRun3.h:62
ZdcEventInfo::ZdcEventUnknown
@ ZdcEventUnknown
Definition: ZdcEventInfo.h:16
IZdcAnalysisTool.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
ZdcRecRun3::m_ZdcEventType
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcEventType
Definition: ZdcRecRun3.h:78
ZdcEventInfo::CombinedPhysics
@ CombinedPhysics
Definition: ZdcEventInfo.h:17
ZdcRecRun3::finalize
StatusCode finalize() override
Definition: ZdcRecRun3.cxx:184
ZdcModuleAuxContainer.h
AthAlgorithm.h
ZdcRecRun3::m_ownPolicy
Gaudi::Property< int > m_ownPolicy
Definition: ZdcRecRun3.h:67
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
ZdcRecRun3::~ZdcRecRun3
~ZdcRecRun3()
Definition: ZdcRecRun3.cxx:38
ZdcRecRun3::m_ZdcDAQMode
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcDAQMode
Definition: ZdcRecRun3.h:80
SG::OWN_ELEMENTS
@ OWN_ELEMENTS
this data object owns its elements
Definition: OwnershipPolicy.h:17
ZdcRecRun3::initialize
StatusCode initialize() override
Definition: ZdcRecRun3.cxx:42
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
ZdcRecRun3::m_zdcTools
ToolHandleArray< ZDC::IZdcAnalysisTool > m_zdcTools
Definition: ZdcRecRun3.h:86
ZdcRecChannelToolLucrod
Definition: ZdcRecChannelToolLucrod.h:31
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
ZdcRecRun3::m_eventInfoDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Definition: ZdcRecRun3.h:76
ZdcRecRun3
Definition: ZdcRecRun3.h:46
EventInfo.h
ZdcRecRun3::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: ZdcRecRun3.h:75
ZdcRecRun3::m_zdcSumContainerName
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcSumContainerName
Definition: ZdcRecRun3.h:73
ZdcRecRun3::m_ZdcBCIDOverride
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcBCIDOverride
Definition: ZdcRecRun3.h:84
ZdcModuleContainer.h
ZdcEventInfo.h
Define enumerations for event-level ZDC data.
ZdcRecRun3::m_forcedEventType
Gaudi::Property< unsigned int > m_forcedEventType
Definition: ZdcRecRun3.h:64