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

Algorithm creating L1TriggerResult and linking the relevant L1 xAOD collections to it. More...

#include <L1TriggerResultMaker.h>

Inheritance diagram for L1TriggerResultMaker:

Public Member Functions

 L1TriggerResultMaker (const std::string &name, ISvcLocator *svcLoc)
 Standard constructor.
virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &eventContext) const override
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
 Get filter decision:
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 Set filter decision:
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

Protected Member Functions

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

StatusCode createCombinedTauRoIs (xAOD::TrigComposite &l1tr, const EventContext &eventContext) const
 Create the combined Tau container matching eTau to jTau.
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::WriteHandleKey< xAOD::TrigCompositeContainerm_l1TriggerResultWHKey
SG::ReadHandleKeyArray< xAOD::MuonRoIContainerm_muRoIKeys
SG::ReadHandleKeyArray< xAOD::eFexEMRoIContainerm_eFexEMRoIKeys
SG::ReadHandleKeyArray< xAOD::eFexTauRoIContainerm_eFexTauRoIKeys
SG::ReadHandleKeyArray< xAOD::jFexFwdElRoIContainerm_jFexFwdElRoIKeys
SG::ReadHandleKeyArray< xAOD::jFexTauRoIContainerm_jFexTauRoIKeys
SG::ReadHandleKeyArray< xAOD::jFexSRJetRoIContainerm_jFexSRJetRoIKeys
SG::ReadHandleKeyArray< xAOD::jFexLRJetRoIContainerm_jFexLRJetRoIKeys
SG::ReadHandleKeyArray< xAOD::gFexJetRoIContainerm_gFexSRJetRoIKeys
SG::ReadHandleKeyArray< xAOD::gFexJetRoIContainerm_gFexLRJetRoIKeys
SG::ReadHandleKeyArray< xAOD::gFexGlobalRoIContainerm_gScalarEJwojKeys
SG::ReadHandleKeyArray< xAOD::gFexGlobalRoIContainerm_gMETComponentsJwojKeys
SG::WriteHandleKey< xAOD::eFexTauRoIContainerm_cTauRoIKey
SG::WriteDecorHandleKey< xAOD::eFexTauRoIContainerm_cjTauLinkKey
ToolHandleArray< IRoIThresholdsToolm_thresholdPatternTools
SG::ReadHandleKey< xAOD::CTPResultm_CTPKey
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
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

Algorithm creating L1TriggerResult and linking the relevant L1 xAOD collections to it.

Definition at line 32 of file L1TriggerResultMaker.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

◆ L1TriggerResultMaker()

L1TriggerResultMaker::L1TriggerResultMaker ( const std::string & name,
ISvcLocator * svcLoc )

Standard constructor.

Definition at line 37 of file L1TriggerResultMaker.cxx.

38: AthReentrantAlgorithm(name, svcLoc) {}

Member Function Documentation

◆ createCombinedTauRoIs()

StatusCode L1TriggerResultMaker::createCombinedTauRoIs ( xAOD::TrigComposite & l1tr,
const EventContext & eventContext ) const
private

Create the combined Tau container matching eTau to jTau.

Definition at line 130 of file L1TriggerResultMaker.cxx.

130 {
131 // Skip if keys set to empty
132 if (m_cTauRoIKey.empty() or m_cjTauLinkKey.empty()) {return StatusCode::SUCCESS;}
133
134 // Create handles
136
137 SG::WriteHandle<xAOD::eFexTauRoIContainer> cTauRoIs{m_cTauRoIKey, eventContext};
138 SG::WriteDecorHandle<xAOD::eFexTauRoIContainer, jTauLink_t> cjTauLink{m_cjTauLinkKey, eventContext};
139
140
141 // Create and record the new eTau container for cTaus
142 ATH_CHECK(cTauRoIs.record(std::make_unique<xAOD::eFexTauRoIContainer>(),
143 std::make_unique<xAOD::eFexTauRoIAuxContainer>()));
144
145 size_t n_matched{0};
146 for(auto& jTauKey : m_jFexTauRoIKeys) {
147 SG::ReadHandle <xAOD::jFexTauRoIContainer> jTauRoIs{jTauKey, eventContext};
148 ATH_CHECK(jTauRoIs.isValid());
149 for (auto &eTauKey: m_eFexTauRoIKeys) {
150 SG::ReadHandle <xAOD::eFexTauRoIContainer> eTauRoIs{eTauKey, eventContext};
151 ATH_CHECK(eTauRoIs.isValid());
152 // Match jTaus to eTaus and add the resulting cTaus to the container
153 // Unmatched eTaus get added as cTau with invalid link to jTau, ATR-25927
154 size_t i_eTau{0};
155 for (const xAOD::eFexTauRoI *eTau: *eTauRoIs) {
156 // Add new eTau to the cTau container
157 cTauRoIs->push_back(std::make_unique<xAOD::eFexTauRoI>());
158 // Copy over all variables from the original eTau
159 *cTauRoIs->back() = *eTau;
160
161 const size_t i_jTau = TCS::cTauMultiplicity::cTauMatching(*eTau, *jTauRoIs);
162 if (i_jTau == std::numeric_limits<size_t>::max()) {
163 ATH_MSG_DEBUG("No matching jTau for eTau index " << i_eTau);
164 // Add an invalid link to jTau
165 cjTauLink(*cTauRoIs->back()) = jTauLink_t{};
166 } else {
167 ++n_matched;
168 ATH_MSG_DEBUG("Matched jTau index " << i_jTau << " to eTau index " << i_eTau);
169 // Link the matched jTau
170 cjTauLink(*cTauRoIs->back()) = jTauLink_t{jTauKey.key(), i_jTau, eventContext};
171 }
172 ++i_eTau;
173 }
174
175
176 ATH_MSG_DEBUG(eTauKey.key() << " size: " << eTauRoIs->size());
177 }
178 ATH_MSG_DEBUG(jTauKey.key() << " size: " << jTauRoIs->size());
179 }
180 ATH_MSG_DEBUG(m_cTauRoIKey.key() << " size: " << cTauRoIs->size() << ", matched: " << n_matched);
181 // Link the cTaus to the L1TriggerResult
182 if (not cTauRoIs->empty()) {
183 makeLink(m_cTauRoIKey, l1tr, m_cTauRoIKey.key(), eventContext);
184 }
185
186 return StatusCode::SUCCESS;
187}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
ElementLink< xAOD::TrackParticleContainer > makeLink(const xAOD::TrackParticle *track)
SG::WriteHandleKey< xAOD::eFexTauRoIContainer > m_cTauRoIKey
SG::ReadHandleKeyArray< xAOD::jFexTauRoIContainer > m_jFexTauRoIKeys
SG::ReadHandleKeyArray< xAOD::eFexTauRoIContainer > m_eFexTauRoIKeys
SG::WriteDecorHandleKey< xAOD::eFexTauRoIContainer > m_cjTauLinkKey
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
static size_t cTauMatching(const xAOD::eFexTauRoI &eTau, const xAOD::jFexTauRoIContainer &jTauRoIs)
eFexTauRoI_v1 eFexTauRoI
Define the latest version of the eFexTauRoI class.
Definition eFexTauRoI.h:16

◆ 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()

StatusCode L1TriggerResultMaker::execute ( const EventContext & eventContext) const
overridevirtual

Definition at line 67 of file L1TriggerResultMaker.cxx.

67 {
68 ATH_MSG_DEBUG("Executing " << name());
69
70 // Create and record the L1TriggerResult container
71 SG::WriteHandle<xAOD::TrigCompositeContainer> l1trHandle(m_l1TriggerResultWHKey, eventContext);
72 auto cont = std::make_unique<xAOD::TrigCompositeContainer>();
73 auto auxcont = std::make_unique<xAOD::TrigCompositeAuxContainer>();
74 cont->setStore(auxcont.get());
75 ATH_CHECK(l1trHandle.record(std::move(cont), std::move(auxcont)));
76 ATH_MSG_DEBUG("Recorded L1TriggerResult with key " << m_l1TriggerResultWHKey.key());
77
78 // Create new L1TriggerResult in the container
79 l1trHandle->push_back(std::make_unique<xAOD::TrigComposite>());
80
81 // For all RoI types, find it in the event store and link to the L1TriggerResult
82 auto retrieveAndLink = [this, &eventContext, &l1trHandle](const auto &keys) -> StatusCode {
83 for(const auto& key : keys) {
84 // Skip disabled inputs
85 if (key.empty()) { continue; }
86 // Retrieve the L1 xAOD container to verify it exists
87 auto handle = SG::makeHandle(key, eventContext);
88 ATH_CHECK(handle.isValid());
89 // Link the L1 xAOD container (actually its first element) to L1TriggerResult
90 ATH_MSG_DEBUG(key.key() << " size: " << handle->size());
91 if (not handle->empty()) {
92 makeLink(key, *(l1trHandle->back()), key.key(), eventContext);
93 }
94 }
95 return StatusCode::SUCCESS;
96 };
97
98 ATH_CHECK(retrieveAndLink(m_muRoIKeys));
99 ATH_CHECK(retrieveAndLink(m_eFexEMRoIKeys));
100 ATH_CHECK(retrieveAndLink(m_eFexTauRoIKeys));
101 ATH_CHECK(retrieveAndLink(m_jFexFwdElRoIKeys));
102 ATH_CHECK(retrieveAndLink(m_jFexTauRoIKeys));
103 ATH_CHECK(retrieveAndLink(m_jFexSRJetRoIKeys));
104 ATH_CHECK(retrieveAndLink(m_jFexLRJetRoIKeys));
105 ATH_CHECK(retrieveAndLink(m_gFexSRJetRoIKeys));
106 ATH_CHECK(retrieveAndLink(m_gFexLRJetRoIKeys));
107 ATH_CHECK(retrieveAndLink(m_gScalarEJwojKeys));
108 ATH_CHECK(retrieveAndLink(m_gMETComponentsJwojKeys));
109
110 // If including CTPResult, need to treat it separately as it is not stored using a DataVector
111 if (!m_CTPKey.empty()) {
112 SG::ReadHandle<xAOD::CTPResult> ctpReadHandle(m_CTPKey, eventContext);
113 ATH_CHECK(ctpReadHandle.isValid());
114 ATH_CHECK(l1trHandle->back()->setDetail<std::string>("CTPResultKey", m_CTPKey.key()));
115 }
116
117 // Create combined Taus and link them to the L1TR
118 ATH_CHECK(createCombinedTauRoIs(*(l1trHandle->back()), eventContext));
119
120 for (const auto& tool: m_thresholdPatternTools) {
121 ATH_CHECK(tool->decorateThresholds(eventContext));
122 }
123
124 return StatusCode::SUCCESS;
125}
SG::ReadHandleKeyArray< xAOD::jFexSRJetRoIContainer > m_jFexSRJetRoIKeys
SG::WriteHandleKey< xAOD::TrigCompositeContainer > m_l1TriggerResultWHKey
SG::ReadHandleKeyArray< xAOD::gFexGlobalRoIContainer > m_gMETComponentsJwojKeys
SG::ReadHandleKeyArray< xAOD::gFexJetRoIContainer > m_gFexSRJetRoIKeys
SG::ReadHandleKeyArray< xAOD::jFexFwdElRoIContainer > m_jFexFwdElRoIKeys
StatusCode createCombinedTauRoIs(xAOD::TrigComposite &l1tr, const EventContext &eventContext) const
Create the combined Tau container matching eTau to jTau.
ToolHandleArray< IRoIThresholdsTool > m_thresholdPatternTools
SG::ReadHandleKey< xAOD::CTPResult > m_CTPKey
SG::ReadHandleKeyArray< xAOD::gFexJetRoIContainer > m_gFexLRJetRoIKeys
SG::ReadHandleKeyArray< xAOD::eFexEMRoIContainer > m_eFexEMRoIKeys
SG::ReadHandleKeyArray< xAOD::gFexGlobalRoIContainer > m_gScalarEJwojKeys
SG::ReadHandleKeyArray< xAOD::MuonRoIContainer > m_muRoIKeys
SG::ReadHandleKeyArray< xAOD::jFexLRJetRoIContainer > m_jFexLRJetRoIKeys
virtual void handle(const Incident &inc)
Handle end of run incidents to save the metadata at that point.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())

◆ 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 & AthCommonAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 89 of file AthCommonAlgorithm.cxx.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ filterPassed()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ initialize()

StatusCode L1TriggerResultMaker::initialize ( )
overridevirtual

◆ 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.

◆ isClonable()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::isClonable ( ) const
inlineoverridevirtualinherited

Specify if the algorithm is clonable.

Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.

Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

◆ 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()

virtual void AthCommonAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Set filter decision:

Reimplemented in AthFilterAlgorithm.

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ sysExecute()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ sysInitialize()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::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, HypoBase, InputMakerBase, and PyAthena::Alg.

Definition at line 60 of file AthCommonAlgorithm.cxx.

71 {
73
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 ServiceHandle<ICondSvc> cs("CondSvc",name());
79 for (auto h : outputHandles()) {
80 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
81 // do this inside the loop so we don't create the CondSvc until needed
82 if ( cs.retrieve().isFailure() ) {
83 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
85 }
86 if (cs->regHandle(this,*h).isFailure()) {
88 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
93 return sc;
94}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_WARNING(x)
virtual StatusCode sysInitialize() override
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ 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_cjTauLinkKey

SG::WriteDecorHandleKey<xAOD::eFexTauRoIContainer> L1TriggerResultMaker::m_cjTauLinkKey
private
Initial value:
{
this, "cjTauLinkKey", "L1_cTauRoI.jTauLink",
"Decoration for the link from eTau to the matching jTau"}

Definition at line 111 of file L1TriggerResultMaker.h.

111 {
112 this, "cjTauLinkKey", "L1_cTauRoI.jTauLink",
113 "Decoration for the link from eTau to the matching jTau"};

◆ m_cTauRoIKey

SG::WriteHandleKey<xAOD::eFexTauRoIContainer> L1TriggerResultMaker::m_cTauRoIKey
private
Initial value:
{
this, "cTauRoIKey", "L1_cTauRoI",
"Key of the cTau RoI container to be created (contains copies of eTaus matched to jTaus)"}

Definition at line 106 of file L1TriggerResultMaker.h.

106 {
107 this, "cTauRoIKey", "L1_cTauRoI",
108 "Key of the cTau RoI container to be created (contains copies of eTaus matched to jTaus)"};

◆ m_CTPKey

SG::ReadHandleKey<xAOD::CTPResult> L1TriggerResultMaker::m_CTPKey
private
Initial value:
{
this, "CTPKey", "CTPResult",
"Key of the CTP result to be linked to L1 Trigger Result"}

Definition at line 122 of file L1TriggerResultMaker.h.

122 {
123 this, "CTPKey", "CTPResult",
124 "Key of the CTP result to be linked to L1 Trigger Result"};

◆ 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_eFexEMRoIKeys

SG::ReadHandleKeyArray<xAOD::eFexEMRoIContainer> L1TriggerResultMaker::m_eFexEMRoIKeys
private
Initial value:
{
this, "eFexEMRoIKeys", {"L1_eEMRoI"},
"Keys of the eFex EM RoI container to be linked to L1 Trigger Result"}

Definition at line 53 of file L1TriggerResultMaker.h.

53 {
54 this, "eFexEMRoIKeys", {"L1_eEMRoI"},
55 "Keys of the eFex EM RoI container to be linked to L1 Trigger Result"};

◆ m_eFexTauRoIKeys

SG::ReadHandleKeyArray<xAOD::eFexTauRoIContainer> L1TriggerResultMaker::m_eFexTauRoIKeys
private
Initial value:
{
this, "eFexTauRoIKeys", {"L1_eTauRoI"},
"Keys of the eFex Tau RoI container to be linked to L1 Trigger Result"}

Definition at line 58 of file L1TriggerResultMaker.h.

58 {
59 this, "eFexTauRoIKeys", {"L1_eTauRoI"},
60 "Keys of the eFex Tau RoI container to be linked to L1 Trigger Result"};

◆ 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 AthCommonAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.h.

◆ m_gFexLRJetRoIKeys

SG::ReadHandleKeyArray<xAOD::gFexJetRoIContainer> L1TriggerResultMaker::m_gFexLRJetRoIKeys
private
Initial value:
{
this, "gFexLRJetRoIKeys", {"L1_gFexLRJetRoI"},
"Keys of the gFex large-R Jet RoI container to be linked to L1 Trigger Result"}

Definition at line 88 of file L1TriggerResultMaker.h.

88 {
89 this, "gFexLRJetRoIKeys", {"L1_gFexLRJetRoI"},
90 "Keys of the gFex large-R Jet RoI container to be linked to L1 Trigger Result"};

◆ m_gFexSRJetRoIKeys

SG::ReadHandleKeyArray<xAOD::gFexJetRoIContainer> L1TriggerResultMaker::m_gFexSRJetRoIKeys
private
Initial value:
{
this, "gFexSRJetRoIKeys", {"L1_gFexSRJetRoI"},
"Keys of the gFex small-R Jet RoI container to be linked to L1 Trigger Result"}

Definition at line 83 of file L1TriggerResultMaker.h.

83 {
84 this, "gFexSRJetRoIKeys", {"L1_gFexSRJetRoI"},
85 "Keys of the gFex small-R Jet RoI container to be linked to L1 Trigger Result"};

◆ m_gMETComponentsJwojKeys

SG::ReadHandleKeyArray<xAOD::gFexGlobalRoIContainer> L1TriggerResultMaker::m_gMETComponentsJwojKeys
private
Initial value:
{
this, "gMETComponentsJwojKeys", {},
"Keys of the gFex MET Components (JwoJ) RoI container to be linked to L1 Trigger Result"}

Definition at line 101 of file L1TriggerResultMaker.h.

101 {
102 this, "gMETComponentsJwojKeys", {},
103 "Keys of the gFex MET Components (JwoJ) RoI container to be linked to L1 Trigger Result"};

◆ m_gScalarEJwojKeys

SG::ReadHandleKeyArray<xAOD::gFexGlobalRoIContainer> L1TriggerResultMaker::m_gScalarEJwojKeys
private
Initial value:
{
this, "gScalarEJwojKeys", {},
"Keys of the gFex Scalar E (JwoJ) RoI container to be linked to L1 Trigger Result"}

Definition at line 96 of file L1TriggerResultMaker.h.

96 {
97 this, "gScalarEJwojKeys", {},
98 "Keys of the gFex Scalar E (JwoJ) RoI container to be linked to L1 Trigger Result"};

◆ m_jFexFwdElRoIKeys

SG::ReadHandleKeyArray<xAOD::jFexFwdElRoIContainer> L1TriggerResultMaker::m_jFexFwdElRoIKeys
private
Initial value:
{
this, "jFexFwdElRoIKeys", {"L1_jFexFwdElRoI"},
"Keys of the jFex Fwd El RoI container to be linked to L1 Trigger Result"}

Definition at line 63 of file L1TriggerResultMaker.h.

63 {
64 this, "jFexFwdElRoIKeys", {"L1_jFexFwdElRoI"},
65 "Keys of the jFex Fwd El RoI container to be linked to L1 Trigger Result"};

◆ m_jFexLRJetRoIKeys

SG::ReadHandleKeyArray<xAOD::jFexLRJetRoIContainer> L1TriggerResultMaker::m_jFexLRJetRoIKeys
private
Initial value:
{
this, "jFexLRJetRoIKeys", {"L1_jFexLRJetRoI"},
"Keys of the jFex large-R Jet RoI container to be linked to L1 Trigger Result"}

Definition at line 78 of file L1TriggerResultMaker.h.

78 {
79 this, "jFexLRJetRoIKeys", {"L1_jFexLRJetRoI"},
80 "Keys of the jFex large-R Jet RoI container to be linked to L1 Trigger Result"};

◆ m_jFexSRJetRoIKeys

SG::ReadHandleKeyArray<xAOD::jFexSRJetRoIContainer> L1TriggerResultMaker::m_jFexSRJetRoIKeys
private
Initial value:
{
this, "jFexSRJetRoIKeys", {"L1_jFexSRJetRoI"},
"Keys of the jFex small-R Jet RoI container to be linked to L1 Trigger Result"}

Definition at line 73 of file L1TriggerResultMaker.h.

73 {
74 this, "jFexSRJetRoIKeys", {"L1_jFexSRJetRoI"},
75 "Keys of the jFex small-R Jet RoI container to be linked to L1 Trigger Result"};

◆ m_jFexTauRoIKeys

SG::ReadHandleKeyArray<xAOD::jFexTauRoIContainer> L1TriggerResultMaker::m_jFexTauRoIKeys
private
Initial value:
{
this, "jFexTauRoIKeys", {"L1_jFexTauRoI"},
"Keys of the jFex Tau RoI container to be linked to L1 Trigger Result"}

Definition at line 68 of file L1TriggerResultMaker.h.

68 {
69 this, "jFexTauRoIKeys", {"L1_jFexTauRoI"},
70 "Keys of the jFex Tau RoI container to be linked to L1 Trigger Result"};

◆ m_l1TriggerResultWHKey

SG::WriteHandleKey<xAOD::TrigCompositeContainer> L1TriggerResultMaker::m_l1TriggerResultWHKey
private
Initial value:
{
this, "L1TriggerResultWHKey", "L1TriggerResult",
"Key of the output L1 Trigger Result"}

Definition at line 43 of file L1TriggerResultMaker.h.

43 {
44 this, "L1TriggerResultWHKey", "L1TriggerResult",
45 "Key of the output L1 Trigger Result"};

◆ m_muRoIKeys

SG::ReadHandleKeyArray<xAOD::MuonRoIContainer> L1TriggerResultMaker::m_muRoIKeys
private
Initial value:
{
this, "MuRoIKeys", {"LVL1MuonRoIs"},
"Keys of the muon RoI container to be linked to L1 Trigger Result"}

Definition at line 48 of file L1TriggerResultMaker.h.

48 {
49 this, "MuRoIKeys", {"LVL1MuonRoIs"},
50 "Keys of the muon RoI container to be linked to L1 Trigger Result"};

◆ m_thresholdPatternTools

ToolHandleArray<IRoIThresholdsTool> L1TriggerResultMaker::m_thresholdPatternTools
private
Initial value:
{
this, "ThresholdPatternTools", {},
"Tools decorating RoI containers with threshold patterns"
}

Definition at line 116 of file L1TriggerResultMaker.h.

116 {
117 this, "ThresholdPatternTools", {},
118 "Tools decorating RoI containers with threshold patterns"
119 };

◆ 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.


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