ATLAS Offline Software
Loading...
Searching...
No Matches
ZdcRecRun3 Class Reference

Class definition for the ZDC Reconstruction class for Run 3. More...

#include <ZdcRecRun3.h>

Inheritance diagram for ZdcRecRun3:
Collaboration diagram for ZdcRecRun3:

Public Member Functions

 ZdcRecRun3 (const std::string &name, ISvcLocator *pSvcLocator)
 ~ZdcRecRun3 ()
StatusCode initialize () override
StatusCode execute (const EventContext &ctx) override
 Execute method with EventContext.
StatusCode finalize () override
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual StatusCode execute ()
 Execute method without EventContext (deprecated).
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const
const EventContext & getContext () const
 Deprecated methods (use the ones with EventContext).
bool filterPassed () const
void setFilterPassed (bool state) const

Protected Member Functions

virtual bool isReEntrant () const override final
 Legacy algorithms are not thread-safe.
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

Gaudi::Property< std::string > m_configuration {this, "Configuration", "none", "ZDC reconstruction configuration"}
Gaudi::Property< unsigned int > m_DAQMode {this, "DAQMode", static_cast<unsigned int>(ZdcEventInfo::CombinedPhysics), "DAQ mode"}
Gaudi::Property< unsigned int > m_forcedEventType
Gaudi::Property< int > m_ownPolicy {this, "OwnPolicy", static_cast<int> (SG::OWN_ELEMENTS), "Ownership policy"}
SG::ReadHandleKey< xAOD::ZdcModuleContainerm_zdcModuleContainerName { this, "ZdcModuleContainerName", "ZdcModules", "" }
SG::ReadHandleKey< xAOD::ZdcModuleContainerm_zdcSumContainerName { this, "ZdcSumContainerName", "ZdcSums", "" }
SG::ReadHandleKey< xAOD::EventInfom_eventInfoKey {this, "EventInfoKey", "EventInfo","Location of the event info."}
SG::WriteDecorHandleKey< xAOD::EventInfom_eventInfoDecorKey {this, "eventInfoDecorKey", m_eventInfoKey, "forwardDetFlags", "Key for EventInfo decoration object"}
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcEventType {this, "ZdcEventTypeKey", "", "ZDC event Type"}
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcDAQMode {this, "ZdcDAQModeKey", "", "ZDC DAQ mode"}
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainerm_ZdcBCIDOverride {this, "ZdcBCIDOverride", "", "BCID with override"}
ToolHandleArray< ZDC::IZdcAnalysisToolm_zdcTools { this, "ZdcAnalysisTools",{} }
DataObjIDColl m_extendedExtraObjects
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Class definition for the ZDC Reconstruction class for Run 3.

This class is responsible for running the ZDC signal processing and decorating the ZdcModules accordingly. In principle, this module runs appropriately on simulation and raw.

Author
Brian Cole and Peter Steinberg, bcole.nosp@m.@cer.nosp@m.n.ch, stein.nosp@m.berg.nosp@m.@bnl..nosp@m.gov

Definition at line 45 of file ZdcRecRun3.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ ZdcRecRun3()

ZdcRecRun3::ZdcRecRun3 ( const std::string & name,
ISvcLocator * pSvcLocator )

Definition at line 31 of file ZdcRecRun3.cxx.

31 :
32 AthAlgorithm(name, pSvcLocator)
33{}
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:

◆ ~ZdcRecRun3()

ZdcRecRun3::~ZdcRecRun3 ( )

Definition at line 38 of file ZdcRecRun3.cxx.

38{}

Member Function Documentation

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute() [1/2]

virtual StatusCode AthAlgorithm::execute ( )
inlinevirtualinherited

Execute method without EventContext (deprecated).

Override this method if the EventContext is not needed.

Reimplemented in BuildVertexPointingAlg, CP::AsgClassificationDecorationAlg, CP::AsgEnergyDecoratorAlg, CP::AsgEventScaleFactorAlg, CP::AsgLeptonTrackDecorationAlg, CP::AsgObjectScaleFactorAlg, CP::AsgPriorityDecorationAlg, CP::AsgSelectionAlg, CP::AsgShallowCopyAlg, CP::AsgUnionPreselectionAlg, CP::AsgUnionSelectionAlg, CP::AsgViewFromSelectionAlg, CP::AsgxAODNTupleMakerAlg, CP::BJetCalibrationAlg, CP::BootstrapGeneratorAlg, CP::BTaggingEfficiencyAlg, CP::BTaggingInformationDecoratorAlg, CP::BTaggingTriggerEfficiencyAlg, CP::BTaggingTriggerMatchingAlg, CP::ChargeSelectorAlg, CP::CopyNominalSelectionAlg, CP::DileptonInvariantMassSelectorAlg, CP::DileptonInvariantMassWindowSelectorAlg, CP::DileptonOSSFInvariantMassWindowSelectorAlg, CP::DiTauEfficiencyCorrectionsAlg, CP::DiTauMassCalculatorAlg, CP::DiTauSmearingAlg, CP::DiTauTruthMatchingAlg, CP::EgammaCalibrationAndSmearingAlg, CP::EgammaFSRForMuonsCollectorAlg, CP::EgammaIsolationCorrectionAlg, CP::EgammaIsolationSelectionAlg, CP::ElectronEfficiencyCorrectionAlg, CP::ElectronSiHitDecAlg, CP::EventCutFlowHistAlg, CP::EventFlagSelectionAlg, CP::EventSelectionByObjectFlagAlg, CP::EventStatusSelectionAlg, CP::FakeBkgCalculatorAlg, CP::InDetTrackBiasingAlg, CP::InDetTrackExtraVarDecoratorAlg, CP::InDetTrackSelectionAlg, CP::InDetTrackSmearingAlg, CP::JetCalibAlg, CP::JetCalibrationAlg, CP::JetDecoratorAlg, CP::JetFFSmearingAlg, CP::JetGhostMuonAssociationAlg, CP::JetModifierAlg, CP::JetNGhostSelectorAlg, CP::JetReclusteringAlg, CP::JetSelectionAlg, CP::JetTriggerDecoratorAlg, CP::JetUncertaintiesAlg, CP::JvtEfficiencyAlg, CP::JvtUpdateAlg, CP::KinematicHistAlg, CP::LeptonSFCalculatorAlg, CP::MCTCDecorationAlg, CP::MetadataHistAlg, CP::MetBuilderAlg, CP::MetMakerAlg, CP::MetSignificanceAlg, CP::MissingETPlusTransverseMassSelectorAlg, CP::MissingETSelectorAlg, CP::MuonCalibrationAndSmearingAlg, CP::MuonEfficiencyScaleFactorAlg, CP::MuonIsolationAlg, CP::MuonSelectionAlgV2, CP::MuonTriggerEfficiencyScaleFactorAlg, CP::NJetDecoratorAlg, CP::NLargeRJetMassWindowSelectorAlg, CP::NObjectMassSelectorAlg, CP::NObjectPtSelectorAlg, CP::ObjectCutFlowHistAlg, CP::OverlapRemovalAlg, CP::PhotonEfficiencyCorrectionAlg, CP::PhotonExtraVariablesAlg, CP::PhotonShowerShapeFudgeAlg, CP::PileupReweightingAlg, CP::PMGTruthWeightAlg, CP::RNtupleTreeMakerAlg, CP::RunNumberSelectorAlg, CP::RunPartonHistoryAlg, CP::SaveFilterAlg, CP::SecVertexTruthMatchAlg, CP::SSVWeightsAlg, CP::SumNLeptonPtSelectorAlg, CP::SysListDumperAlg, CP::SysTruthWeightAlg, CP::TauCombineMuonRMTausAlg, CP::TauEfficiencyCorrectionsAlg, CP::TauSmearingAlg, CP::TauTruthMatchingAlg, CP::TransverseMassSelectorAlg, CP::TreeFillerAlg, CP::TreeMakerAlg, CP::TrigEventSelectionAlg, CP::TrigGlobalEfficiencyAlg, CP::TrigMatchingAlg, CP::TrigPrescalesAlg, CP::VGammaORAlg, CP::xAODWriterAlg, CP::XbbEfficiencyAlg, CP::XbbInformationDecoratorAlg, DecoratePhotonPointingAlg, DecorateVertexScoreAlg, EL::AnaAlgorithm, EL::UnitTestAlg2, EL::UnitTestAlg3, EL::UnitTestAlg4, EL::UnitTestAlg5, EL::UnitTestAlg7, EventReco::KLFitterFinalizeOutputAlg, EventReco::RunKLFitterAlg, GRLSelectorAlg, LisNtuple, OverlapRemovalGenUseAlg, SUSYToolsAlg, Trig::TrigMatchTestAlg, TrkEDMTestAlg, ZdcLEDNtuple, and ZdcNtuple.

Definition at line 76 of file AthAlgorithm.h.

76 {
77 throw GaudiException( "execute() or execute(const EventContext&) needs to be implemented", name(),
78 StatusCode::FAILURE );
79 }

◆ execute() [2/2]

StatusCode ZdcRecRun3::execute ( const EventContext & )
overridevirtual

Execute method with EventContext.

Override this method if acccess to the EventContext is needed.

Reimplemented from AthAlgorithm.

Definition at line 89 of file ZdcRecRun3.cxx.

90{
91
92 ATH_MSG_DEBUG("In ZdRecRun3");
93
94
95 ATH_MSG_DEBUG ("--> ZDC: ZdcRecRun3 execute starting on "
96 << ctx.evt()
97 << "th event");
98
99 // Get event info
100 //
101 SG::ReadHandle<xAOD::EventInfo> eventInfo(m_eventInfoKey, ctx);
102 if (!eventInfo.isValid()) {
103 ATH_MSG_WARNING("EventInfo not valid");
104 return StatusCode::FAILURE;
105 }
106
107 if (eventInfo->errorState(xAOD::EventInfo::ForwardDet)==xAOD::EventInfo::Error)
108 {
109 if (eventInfo->isEventFlagBitSet(xAOD::EventInfo::ForwardDet, ZdcEventInfo::DECODINGERROR ))
110 {
111 bool rpdErr = eventInfo->isEventFlagBitSet(xAOD::EventInfo::ForwardDet, ZdcEventInfo::RPDDECODINGERROR );
112 bool zdcErr = eventInfo->isEventFlagBitSet(xAOD::EventInfo::ForwardDet, ZdcEventInfo::ZDCDECODINGERROR );
113 std::string errs = "";
114 if (zdcErr) errs += "* ZDC ";
115 if (rpdErr) errs += "* RPD ";
116 ATH_MSG_WARNING("Decoding error in LUCROD decoding:"+errs);
117 // We no longer abandon the event now - the separate RPD and ZDC analysis tools check the errors and abandon the event separately.
118 // return StatusCode::SUCCESS;
119 }
120 }
121
122 ATH_MSG_DEBUG("Event info type=IS_CALIBRATION:" << eventInfo->eventType(xAOD::EventInfo::IS_CALIBRATION));
123
124 //
125 // Figure out what kind of event this is
126 //
127 unsigned int eventType = ZdcEventInfo::ZdcEventUnknown;
128
130 eventType = m_forcedEventType;
131 }
132 else {
134 //
135 // Problem: we can't determine event type in standalone mode
136 //
137 ATH_MSG_FATAL("Event type must be set in configuration in standalone mode");
138 return StatusCode::FAILURE;
139 }
140 else if (m_DAQMode == ZdcEventInfo::MCDigits || eventInfo->eventType(xAOD::EventInfo::IS_SIMULATION)) {
141 eventType = ZdcEventInfo::ZdcSimulation;
142 }
144 if (eventInfo->eventType(xAOD::EventInfo::IS_CALIBRATION)) {
145 //
146 // For now presume LED event. Eventually add check for calreq trigger
147 //
148 eventType = ZdcEventInfo::ZdcEventLED;
149 }
150 else {
152 }
153 }
154 }
155
156 SG::ReadHandle<xAOD::ZdcModuleContainer> moduleContainer (m_zdcModuleContainerName, ctx);
157 SG::ReadHandle<xAOD::ZdcModuleContainer> moduleSumContainer (m_zdcSumContainerName, ctx);
158
159
160 // Find the sum container for "side 0" which handles event-level information
161 //
162 for (const auto modSum : *(moduleSumContainer.get())) {
163 //
164 // Module sum object with side == 0 contains event-level information
165 //
166 if (modSum->zdcSide() == 0) {
167 //
168 // Add the event type and daq mode as aux decors, but not if this information is already written (e.g. if we are using an existing xAOD)
169 //
170 static const SG::ConstAccessor<unsigned int> eventTypeAcc("EventType");
171 if (!eventTypeAcc.isAvailable(*modSum))
172 {
173 SG::WriteDecorHandle<xAOD::ZdcModuleContainer,unsigned int> eventTypeHandle(m_ZdcEventType, ctx);
174 eventTypeHandle(*modSum) = eventType;
175
176 SG::WriteDecorHandle<xAOD::ZdcModuleContainer,unsigned int> DAQModeHandle(m_ZdcDAQMode, ctx);
177 DAQModeHandle(*modSum) = m_DAQMode;
178 }
179 }
180 }
181
182
183 // Loop over all tools and perform the "reco"
184 //
185 for (ToolHandle<ZDC::IZdcAnalysisTool>& tool : m_zdcTools)
186 {
187 ATH_CHECK( tool->recoZdcModules(*moduleContainer.get(), *moduleSumContainer.get()) );
188 }
189
190 return StatusCode::SUCCESS;
191
192}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_FATAL(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
Gaudi::Property< unsigned int > m_DAQMode
Definition ZdcRecRun3.h:62
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcSumContainerName
Definition ZdcRecRun3.h:73
ToolHandleArray< ZDC::IZdcAnalysisTool > m_zdcTools
Definition ZdcRecRun3.h:86
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition ZdcRecRun3.h:75
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcDAQMode
Definition ZdcRecRun3.h:80
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > m_ZdcEventType
Definition ZdcRecRun3.h:78
Gaudi::Property< unsigned int > m_forcedEventType
Definition ZdcRecRun3.h:64
SG::ReadHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleContainerName
Definition ZdcRecRun3.h:70
@ ForwardDet
The forward detectors.
@ Error
The sub-detector issued an error.
@ IS_CALIBRATION
true: calibration, false: physics
@ IS_SIMULATION
true: simulation, false: data

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 50 of file AthAlgorithm.cxx.

51{
52 // If we didn't find any symlinks to add, just return the collection
53 // from the base class. Otherwise, return the extended collection.
54 if (!m_extendedExtraObjects.empty()) {
56 }
57 return Algorithm::extraOutputDeps();
58}
DataObjIDColl m_extendedExtraObjects

◆ filterPassed()

bool AthAlgorithm::filterPassed ( ) const
inherited

Definition at line 94 of file AthAlgorithm.cxx.

94 {
95 return execState( Gaudi::Hive::currentContext() ).filterPassed();
96}

◆ finalize()

StatusCode ZdcRecRun3::finalize ( )
override

Definition at line 196 of file ZdcRecRun3.cxx.

197{
198
199 ATH_MSG_DEBUG( "--> ZDC: ZdcRecRun3 finalize complete" );
200
201 return StatusCode::SUCCESS;
202
203}

◆ getContext()

const EventContext & AthAlgorithm::getContext ( ) const
inherited

Deprecated methods (use the ones with EventContext).

Definition at line 90 of file AthAlgorithm.cxx.

90 {
91 return Gaudi::Hive::currentContext();
92}

◆ initialize()

StatusCode ZdcRecRun3::initialize ( )
override

Definition at line 42 of file ZdcRecRun3.cxx.

43{
44 MsgStream mLog(msgSvc(), name());
45
46 // Reconstruction Tool chain
47
48 ATH_CHECK( m_zdcTools.retrieve() );
49
50 ATH_CHECK( m_zdcModuleContainerName.initialize() );
51 ATH_CHECK( m_zdcSumContainerName.initialize() );
52
54 mLog << MSG::DEBUG << "...will OWN its cells." << endmsg;
55 else
56 mLog << MSG::DEBUG << "...will VIEW its cells." << endmsg;
57
58
59 mLog << MSG::DEBUG << "--> ZDC: ZdcRecRun3 initialization complete" << endmsg;
60
62 ATH_MSG_ERROR("Invalid DAQ mode, mode = " << m_DAQMode);
63 return StatusCode::FAILURE;
64 }
65
66 ATH_MSG_DEBUG ("Configuration:");
67 ATH_MSG_DEBUG("ForcedEventType = " << m_forcedEventType);
68 ATH_MSG_DEBUG("DAQMode = " << m_DAQMode);
69
70 // initialize eventInfo access
71 //
72 ATH_CHECK( m_eventInfoKey.initialize());
73 ATH_CHECK( m_eventInfoDecorKey.initialize() );
74
75 // Initialize writedecor keys
76 //
77 std::string sumContainerName = "ZdcSums";
78 m_ZdcEventType = sumContainerName + ".EventType";
79 ATH_CHECK( m_ZdcEventType.initialize());
80
81 m_ZdcDAQMode = sumContainerName + ".DAQMode";
82 ATH_CHECK( m_ZdcDAQMode.initialize());
83
84 return StatusCode::SUCCESS;
85}
#define endmsg
#define ATH_MSG_ERROR(x)
Gaudi::Property< int > m_ownPolicy
Definition ZdcRecRun3.h:67
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Definition ZdcRecRun3.h:76
@ OWN_ELEMENTS
this data object owns its elements

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isReEntrant()

virtual bool AthAlgorithm::isReEntrant ( ) const
inlinefinaloverrideprotectedvirtualinherited

Legacy algorithms are not thread-safe.

Definition at line 118 of file AthAlgorithm.h.

118{ return false; }

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

void AthAlgorithm::setFilterPassed ( bool state) const
inherited

Definition at line 98 of file AthAlgorithm.cxx.

98 {
99 execState( Gaudi::Hive::currentContext() ).setFilterPassed(state);
100}

◆ sysInitialize()

StatusCode AthAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc.

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, and PyAthena::Alg.

Definition at line 66 of file AthAlgorithm.cxx.

66 {
68
69 if (sc.isFailure()) {
70 return sc;
71 }
72 ServiceHandle<ICondSvc> cs("CondSvc",name());
73 for (auto h : outputHandles()) {
74 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
75 // do this inside the loop so we don't create the CondSvc until needed
76 if ( cs.retrieve().isFailure() ) {
77 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
78 return StatusCode::SUCCESS;
79 }
80 if (cs->regHandle(this,*h).isFailure()) {
81 sc = StatusCode::FAILURE;
82 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
83 << " with CondSvc");
84 }
85 }
86 }
87 return sc;
88}
static Double_t sc
virtual StatusCode sysInitialize() override
Override sysInitialize.
AthCommonDataStore(const std::string &name, T... args)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
::StatusCode StatusCode
StatusCode definition for legacy code.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ m_configuration

Gaudi::Property<std::string> ZdcRecRun3::m_configuration {this, "Configuration", "none", "ZDC reconstruction configuration"}
private

Definition at line 60 of file ZdcRecRun3.h.

60{this, "Configuration", "none", "ZDC reconstruction configuration"};

◆ m_DAQMode

Gaudi::Property<unsigned int> ZdcRecRun3::m_DAQMode {this, "DAQMode", static_cast<unsigned int>(ZdcEventInfo::CombinedPhysics), "DAQ mode"}
private

Definition at line 62 of file ZdcRecRun3.h.

62{this, "DAQMode", static_cast<unsigned int>(ZdcEventInfo::CombinedPhysics), "DAQ mode"};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 393 of file AthCommonDataStore.h.

◆ m_eventInfoDecorKey

SG::WriteDecorHandleKey<xAOD::EventInfo> ZdcRecRun3::m_eventInfoDecorKey {this, "eventInfoDecorKey", m_eventInfoKey, "forwardDetFlags", "Key for EventInfo decoration object"}
private

Definition at line 76 of file ZdcRecRun3.h.

76{this, "eventInfoDecorKey", m_eventInfoKey, "forwardDetFlags", "Key for EventInfo decoration object"};

◆ m_eventInfoKey

SG::ReadHandleKey<xAOD::EventInfo> ZdcRecRun3::m_eventInfoKey {this, "EventInfoKey", "EventInfo","Location of the event info."}
private

Definition at line 75 of file ZdcRecRun3.h.

75{this, "EventInfoKey", "EventInfo","Location of the event info."};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthAlgorithm::m_extendedExtraObjects
privateinherited

Definition at line 121 of file AthAlgorithm.h.

◆ m_forcedEventType

Gaudi::Property<unsigned int> ZdcRecRun3::m_forcedEventType
private
Initial value:
{this, "ForcedEventType", static_cast<unsigned int>(ZdcEventInfo::ZdcEventUnknown),
"if not ZdcEventUnknown, Use forced event type true/false"}

Definition at line 64 of file ZdcRecRun3.h.

64 {this, "ForcedEventType", static_cast<unsigned int>(ZdcEventInfo::ZdcEventUnknown),
65 "if not ZdcEventUnknown, Use forced event type true/false"};

◆ m_ownPolicy

Gaudi::Property<int> ZdcRecRun3::m_ownPolicy {this, "OwnPolicy", static_cast<int> (SG::OWN_ELEMENTS), "Ownership policy"}
private

Definition at line 67 of file ZdcRecRun3.h.

67{this, "OwnPolicy", static_cast<int> (SG::OWN_ELEMENTS), "Ownership policy"};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_ZdcBCIDOverride

SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> ZdcRecRun3::m_ZdcBCIDOverride {this, "ZdcBCIDOverride", "", "BCID with override"}
private

Definition at line 84 of file ZdcRecRun3.h.

84{this, "ZdcBCIDOverride", "", "BCID with override"};

◆ m_ZdcDAQMode

SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> ZdcRecRun3::m_ZdcDAQMode {this, "ZdcDAQModeKey", "", "ZDC DAQ mode"}
private

Definition at line 80 of file ZdcRecRun3.h.

80{this, "ZdcDAQModeKey", "", "ZDC DAQ mode"};

◆ m_ZdcEventType

SG::WriteDecorHandleKey<xAOD::ZdcModuleContainer> ZdcRecRun3::m_ZdcEventType {this, "ZdcEventTypeKey", "", "ZDC event Type"}
private

Definition at line 78 of file ZdcRecRun3.h.

78{this, "ZdcEventTypeKey", "", "ZDC event Type"};

◆ m_zdcModuleContainerName

SG::ReadHandleKey<xAOD::ZdcModuleContainer> ZdcRecRun3::m_zdcModuleContainerName { this, "ZdcModuleContainerName", "ZdcModules", "" }
private

Definition at line 69 of file ZdcRecRun3.h.

70{ this, "ZdcModuleContainerName", "ZdcModules", "" };

◆ m_zdcSumContainerName

SG::ReadHandleKey<xAOD::ZdcModuleContainer> ZdcRecRun3::m_zdcSumContainerName { this, "ZdcSumContainerName", "ZdcSums", "" }
private

Definition at line 72 of file ZdcRecRun3.h.

73{ this, "ZdcSumContainerName", "ZdcSums", "" };

◆ m_zdcTools

ToolHandleArray<ZDC::IZdcAnalysisTool> ZdcRecRun3::m_zdcTools { this, "ZdcAnalysisTools",{} }
private

Definition at line 86 of file ZdcRecRun3.h.

86{ this, "ZdcAnalysisTools",{} };

The documentation for this class was generated from the following files: