ATLAS Offline Software
Loading...
Searching...
No Matches
Analysis::JetBTaggingAlg Class Reference

#include <JetBTaggingAlg.h>

Inheritance diagram for Analysis::JetBTaggingAlg:
Collaboration diagram for Analysis::JetBTaggingAlg:

Public Member Functions

 JetBTaggingAlg (const std::string &name, ISvcLocator *pSvcLocator)
 Constructors and destructors.
virtual ~JetBTaggingAlg ()=default
virtual StatusCode initialize () override
 Main routines specific to an ATHENA algorithm.
virtual StatusCode execute (const EventContext &ctx) const override final
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
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
virtual void setFilterPassed (bool state, const EventContext &ctx) const
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

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

Private Attributes

SG::ReadHandleKey< xAOD::JetContainerm_JetCollectionName {this, "JetCollectionName", "", "Input jet container"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_IncomingTracks { this, "IncomingTracks", "", "Element Link vector from jet to particle container"}
SG::WriteDecorHandleKey< xAOD::BTaggingContainerm_OutgoingTracks { this, "OutgoingTracks", "", "Element Link vector from BTagging to track container"}
SG::ReadDecorHandleKey< xAOD::JetContainerm_IncomingMuons { this, "IncomingMuons", "", "Element Link vector from jet to particle container"}
SG::WriteDecorHandleKey< xAOD::BTaggingContainerm_OutgoingMuons { this, "OutgoingMuons", "", "Element Link vector from BTagging to muon container"}
SG::ReadCondHandleKey< AtlasFieldCacheCondObjm_fieldCacheCondObjInputKey {this, "AtlasFieldCacheCondObj", "fieldCondObj", "Name of the Magnetic Field conditions object key"}
SG::WriteDecorHandleKey< xAOD::JetContainerm_jetBTaggingLinkName {this, "BTaggingLinkName", "", "Element link from jet to BTagging container"}
SG::WriteHandleKey< xAOD::BTaggingContainerm_BTaggingCollectionName {this, "BTaggingCollectionName", "", "Output BTagging container"}
SG::WriteDecorHandleKey< xAOD::BTaggingContainerm_bTagJetDecorLinkName {this, "JetLinkName", "", "Element Link from BTagging to Jet container"}
std::string m_JetName
bool m_DoMuons = false
ToolHandle< IBTagToolm_bTagTool
ToolHandle< IBTagLightSecVertexingm_bTagSecVtxTool
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

Definition at line 31 of file JetBTaggingAlg.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

◆ JetBTaggingAlg()

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

Constructors and destructors.

Definition at line 18 of file JetBTaggingAlg.cxx.

18 :
19 AthReentrantAlgorithm(n,p),
20 m_JetName(""),
21 m_bTagTool("Analysis::BTagTool",this)
22 {
23 declareProperty("JetCalibrationName", m_JetName);
24 declareProperty("BTagTool", m_bTagTool);
25 }
ToolHandle< IBTagTool > m_bTagTool
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ ~JetBTaggingAlg()

virtual Analysis::JetBTaggingAlg::~JetBTaggingAlg ( )
virtualdefault

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

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

◆ 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 Analysis::JetBTaggingAlg::execute ( const EventContext & ctx) const
finaloverridevirtual

Definition at line 89 of file JetBTaggingAlg.cxx.

89 {
90 //retrieve the Jet container
91 SG::ReadHandle<xAOD::JetContainer> h_JetCollectionName (m_JetCollectionName, ctx);
92 if (!h_JetCollectionName.isValid()) {
93 ATH_MSG_ERROR( " cannot retrieve jet container with key " << m_JetCollectionName.key() );
94 return StatusCode::FAILURE;
95 }
96
97 if (h_JetCollectionName->empty()) {
98 ATH_MSG_DEBUG("#BTAG# Empty JetContainer !!");
99 }
100 else {
101 ATH_MSG_DEBUG("#BTAG# Nb jets in JetContainer: "<< h_JetCollectionName->size());
102 }
103
104 SG::ReadDecorHandle<xAOD::JetContainer, std::vector<ElementLink< xAOD::IParticleContainer> > >
105 h_IncomingTracks(m_IncomingTracks, ctx);
106
107 std::optional<SG::ReadDecorHandle<xAOD::JetContainer, std::vector<ElementLink< xAOD::IParticleContainer> > > >
108 h_IncomingMuons;
109
110 if (m_DoMuons) {
111 SG::ReadDecorHandle<xAOD::JetContainer, std::vector<ElementLink< xAOD::IParticleContainer> > >
112 tmp(m_IncomingMuons, ctx);
113 h_IncomingMuons = tmp;
114 }
115
116
117 SG::WriteDecorHandle<xAOD::BTaggingContainer, std::vector<ElementLink< xAOD::TrackParticleContainer> > >
118 h_OutgoingTracks(m_OutgoingTracks, ctx);
119
120 SG::WriteDecorHandle<xAOD::BTaggingContainer, std::vector<ElementLink< xAOD::MuonContainer> > >
121 h_OutgoingMuons(m_OutgoingMuons, ctx);
122
123
124 //Decor Jet with element link to the BTagging
125 SG::WriteDecorHandle<xAOD::JetContainer, ElementLink< xAOD::BTaggingContainer > > h_jetBTaggingLinkName(m_jetBTaggingLinkName, ctx);
126 //Decor BTagging with element link to the Jet
127 SG::WriteDecorHandle<xAOD::BTaggingContainer, ElementLink< xAOD::JetContainer > > h_bTagJetLinkName(m_bTagJetDecorLinkName, ctx);
128
129 //Create a xAOD::BTaggingContainer in any case (must be done)
130 std::string bTaggingContName = m_BTaggingCollectionName.key();
131 ATH_MSG_DEBUG("#BTAG# Container name: "<< bTaggingContName);
132
133 /* Record the BTagging output container */
134 SG::WriteHandle<xAOD::BTaggingContainer> h_BTaggingCollectionName (m_BTaggingCollectionName, ctx);
135 ATH_CHECK( h_BTaggingCollectionName.record(std::make_unique<xAOD::BTaggingContainer>(),
136 std::make_unique<xAOD::BTaggingAuxContainer>()) );
137
138 MagField::AtlasFieldCache fieldCache;
139 // Get field cache object
140 SG::ReadCondHandle<AtlasFieldCacheCondObj> readHandle{m_fieldCacheCondObjInputKey, ctx};
141 const AtlasFieldCacheCondObj* fieldCondObj{*readHandle};
142
143 if (fieldCondObj == nullptr) {
144 ATH_MSG_ERROR("Failed to retrieve AtlasFieldCacheCondObj with key " << m_fieldCacheCondObjInputKey.key());
145 return StatusCode::FAILURE;
146 }
147 fieldCondObj->getInitializedCache (fieldCache);
148
149 if (!fieldCache.solenoidOn()) {
150 for (const auto *jet : *h_JetCollectionName) {
151 ElementLink< xAOD::BTaggingContainer> linkBTagger;
152 h_jetBTaggingLinkName(*jet) = linkBTagger;
153 }
154 return StatusCode::SUCCESS;
155 } else { //Solenoid ON
156 for (const auto *jet : *h_JetCollectionName.ptr()) {
157 xAOD::BTagging *newBTagMT = new xAOD::BTagging();
158 h_BTaggingCollectionName->push_back(newBTagMT);
159
160 // Track association
161 const std::vector<ElementLink<xAOD::IParticleContainer> >& trackLinks = h_IncomingTracks(*jet);
162
163 std::vector<ElementLink<xAOD::TrackParticleContainer> > tmpTracks;
164
165 tmpTracks.reserve(trackLinks.size());
166 for (const ElementLink<xAOD::IParticleContainer>& elpart : trackLinks)
167 tmpTracks.emplace_back(elpart.key(), elpart.index());
168
169 h_OutgoingTracks(*newBTagMT) = tmpTracks;
170
171 // Muon association
172 // awful hack part deux
173 // if a non-empty incoming muon key was requested
174 // then we actually copy them over
175 // otherwise just create an empty container
176 std::vector<ElementLink<xAOD::MuonContainer> > tmpMuons;
177 if (m_DoMuons) {
178 const std::vector<ElementLink<xAOD::IParticleContainer> >& muonLinks = (*h_IncomingMuons)(*jet);
179
180 for (const ElementLink<xAOD::IParticleContainer>& elpart : muonLinks)
181 tmpMuons.emplace_back(elpart.key(), elpart.index());
182 }
183
184 h_OutgoingMuons(*newBTagMT) = tmpMuons;
185
186 }
187
188 }
189
190 // Secondary vertex reconstruction.
191 if (!m_bTagSecVtxTool.empty()) {
192 StatusCode SV = m_bTagSecVtxTool->BTagSecVertexing_exec(h_JetCollectionName.ptr(), h_BTaggingCollectionName.ptr());
193 if (SV.isFailure()) {
194 ATH_MSG_WARNING("#BTAG# Failed to reconstruct sec vtx");
195 }
196 }
197
198
199 //Tag the jets
200 StatusCode SV = m_bTagTool->tagJet( h_JetCollectionName.ptr(), h_BTaggingCollectionName.ptr(), m_JetName);
201 if (SV.isFailure()) {
202 ATH_MSG_WARNING("#BTAG# Failed in taggers call");
203 }
204
205 //Create the element link from the jet to the btagging and reverse link
206 for (size_t jetIndex=0; jetIndex < h_JetCollectionName->size() ; ++jetIndex) {
207 const xAOD::Jet * jetToTag = h_JetCollectionName->at(jetIndex);
208 xAOD::BTagging * itBTag = h_BTaggingCollectionName->at(jetIndex);
209 ElementLink< xAOD::BTaggingContainer> linkBTagger;
210 linkBTagger.toContainedElement(*h_BTaggingCollectionName.ptr(), itBTag);
211 h_jetBTaggingLinkName(*jetToTag) = linkBTagger;
212 ElementLink< xAOD::JetContainer> linkJet;
213 linkJet.toContainedElement(*h_JetCollectionName.ptr(), jetToTag);
214 h_bTagJetLinkName(*itBTag) = linkJet;
215 }
216
217 return StatusCode::SUCCESS;
218
219 }
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCacheCondObjInputKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetBTaggingLinkName
SG::ReadDecorHandleKey< xAOD::JetContainer > m_IncomingMuons
SG::WriteDecorHandleKey< xAOD::BTaggingContainer > m_OutgoingMuons
ToolHandle< IBTagLightSecVertexing > m_bTagSecVtxTool
SG::ReadDecorHandleKey< xAOD::JetContainer > m_IncomingTracks
SG::ReadHandleKey< xAOD::JetContainer > m_JetCollectionName
SG::WriteHandleKey< xAOD::BTaggingContainer > m_BTaggingCollectionName
SG::WriteDecorHandleKey< xAOD::BTaggingContainer > m_OutgoingTracks
SG::WriteDecorHandleKey< xAOD::BTaggingContainer > m_bTagJetDecorLinkName
void getInitializedCache(MagField::AtlasFieldCache &cache) const
get B field cache for evaluation as a function of 2-d or 3-d position.
bool solenoidOn() const
status of the magnets
::StatusCode StatusCode
StatusCode definition for legacy code.
Jet_v1 Jet
Definition of the current "jet version".
BTagging_v1 BTagging
Definition of the current "BTagging version".
Definition BTagging.h:17

◆ 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 & AthCommonReentrantAlgorithm< 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 94 of file AthCommonReentrantAlgorithm.cxx.

90{
91 // If we didn't find any symlinks to add, just return the collection
92 // from the base class. Otherwise, return the extended collection.
93 if (!m_extendedExtraObjects.empty()) {
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ filterPassed()

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

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ initialize()

StatusCode Analysis::JetBTaggingAlg::initialize ( )
overridevirtual

Main routines specific to an ATHENA algorithm.

retrieve the main BTagTool

retrieve the bTagSecVtxTool

handle to the magnetic field cache

Definition at line 27 of file JetBTaggingAlg.cxx.

27 {
28
31
32 // This will check that the properties were initialized properly
33 // by job configuration.
34 ATH_CHECK( m_JetCollectionName.initialize() );
35 ATH_CHECK( m_IncomingTracks.initialize() );
36 ATH_CHECK( m_OutgoingTracks.initialize() );
37 ATH_CHECK( m_BTaggingCollectionName.initialize() );
38 ATH_CHECK( m_jetBTaggingLinkName.initialize() );
39 ATH_CHECK( m_bTagJetDecorLinkName.initialize() );
40
41 // this is a terrible, awful hack
42 // but right now there aren't any muons for b-tagging in the trigger
43 // so if an empty muon container is passed, DON'T DECLARE A DEPENDENCY
44 // we'll make an empty container on the b-tagging object later...
45 m_DoMuons = !m_IncomingMuons.key().empty();
46
47 if (m_DoMuons) {
48 ATH_MSG_DEBUG("#BTAG# muons requested for: " << m_JetCollectionName.key());
50 ATH_CHECK( m_IncomingMuons.initialize(true) );
51 } else {
52 ATH_MSG_DEBUG("#BTAG# no muons requested for: " << m_JetCollectionName.key());
53 ATH_CHECK( m_IncomingMuons.initialize(false) );
54 }
55
57 ATH_CHECK( m_OutgoingMuons.initialize() );
58
59 ATH_MSG_DEBUG("#BTAG# Jet container name: " << m_JetCollectionName.key());
60 ATH_MSG_DEBUG("#BTAG# BTagging container name: " << m_BTaggingCollectionName.key());
61 ATH_MSG_DEBUG("#BTAG# EL from Jet to BTagging: " << m_jetBTaggingLinkName.key());
62 ATH_MSG_DEBUG("#BTAG# EL from BTagging to Jet: " << m_bTagJetDecorLinkName.key());
63
65 if ( m_bTagTool.retrieve().isFailure() ) {
66 ATH_MSG_FATAL("#BTAG# Failed to retrieve tool " << m_bTagTool);
67 return StatusCode::FAILURE;
68 } else {
69 ATH_MSG_DEBUG("#BTAG# Retrieved tool " << m_bTagTool);
70 }
71
73 if (!m_bTagSecVtxTool.empty()) {
74 if ( m_bTagSecVtxTool.retrieve().isFailure() ) {
75 ATH_MSG_FATAL("#BTAGVTX# Failed to retrieve tool " << m_bTagSecVtxTool);
76 return StatusCode::FAILURE;
77 } else {
78 ATH_MSG_DEBUG("#BTAGVTX# Retrieved tool " << m_bTagSecVtxTool);
79 }
80 }
81
84
85 return StatusCode::SUCCESS;
86 }
#define ATH_MSG_FATAL(x)

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

◆ 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 AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< 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.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77{
78 return BaseAlg::sysExecute (ctx);
79}

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< 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 HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107 {
109
110 if (sc.isFailure()) {
111 return sc;
112 }
113
114 ServiceHandle<ICondSvc> cs("CondSvc",name());
115 for (auto h : outputHandles()) {
116 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117 // do this inside the loop so we don't create the CondSvc until needed
118 if ( cs.retrieve().isFailure() ) {
119 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120 return StatusCode::SUCCESS;
121 }
122 if (cs->regHandle(this,*h).isFailure()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
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_BTaggingCollectionName

SG::WriteHandleKey<xAOD::BTaggingContainer> Analysis::JetBTaggingAlg::m_BTaggingCollectionName {this, "BTaggingCollectionName", "", "Output BTagging container"}
private

Definition at line 56 of file JetBTaggingAlg.h.

56{this, "BTaggingCollectionName", "", "Output BTagging container"};

◆ m_bTagJetDecorLinkName

SG::WriteDecorHandleKey<xAOD::BTaggingContainer> Analysis::JetBTaggingAlg::m_bTagJetDecorLinkName {this, "JetLinkName", "", "Element Link from BTagging to Jet container"}
private

Definition at line 57 of file JetBTaggingAlg.h.

57{this, "JetLinkName", "", "Element Link from BTagging to Jet container"};

◆ m_bTagSecVtxTool

ToolHandle< IBTagLightSecVertexing > Analysis::JetBTaggingAlg::m_bTagSecVtxTool
private
Initial value:
{
this, "BTagSecVertexing", {}, "Light secondary vertexing tool"
}

Definition at line 64 of file JetBTaggingAlg.h.

64 {
65 this, "BTagSecVertexing", {}, "Light secondary vertexing tool"
66 };

◆ m_bTagTool

ToolHandle< IBTagTool > Analysis::JetBTaggingAlg::m_bTagTool
private

Definition at line 63 of file JetBTaggingAlg.h.

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

bool Analysis::JetBTaggingAlg::m_DoMuons = false
private

Definition at line 61 of file JetBTaggingAlg.h.

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

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

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_fieldCacheCondObjInputKey

SG::ReadCondHandleKey<AtlasFieldCacheCondObj> Analysis::JetBTaggingAlg::m_fieldCacheCondObjInputKey {this, "AtlasFieldCacheCondObj", "fieldCondObj", "Name of the Magnetic Field conditions object key"}
private

Definition at line 54 of file JetBTaggingAlg.h.

54{this, "AtlasFieldCacheCondObj", "fieldCondObj", "Name of the Magnetic Field conditions object key"};

◆ m_IncomingMuons

SG::ReadDecorHandleKey<xAOD::JetContainer> Analysis::JetBTaggingAlg::m_IncomingMuons { this, "IncomingMuons", "", "Element Link vector from jet to particle container"}
private

Definition at line 50 of file JetBTaggingAlg.h.

50{ this, "IncomingMuons", "", "Element Link vector from jet to particle container"};

◆ m_IncomingTracks

SG::ReadDecorHandleKey<xAOD::JetContainer> Analysis::JetBTaggingAlg::m_IncomingTracks { this, "IncomingTracks", "", "Element Link vector from jet to particle container"}
private

Definition at line 48 of file JetBTaggingAlg.h.

48{ this, "IncomingTracks", "", "Element Link vector from jet to particle container"};

◆ m_jetBTaggingLinkName

SG::WriteDecorHandleKey<xAOD::JetContainer> Analysis::JetBTaggingAlg::m_jetBTaggingLinkName {this, "BTaggingLinkName", "", "Element link from jet to BTagging container"}
private

Definition at line 55 of file JetBTaggingAlg.h.

55{this, "BTaggingLinkName", "", "Element link from jet to BTagging container"};

◆ m_JetCollectionName

SG::ReadHandleKey<xAOD::JetContainer > Analysis::JetBTaggingAlg::m_JetCollectionName {this, "JetCollectionName", "", "Input jet container"}
private

Definition at line 46 of file JetBTaggingAlg.h.

46{this, "JetCollectionName", "", "Input jet container"};

◆ m_JetName

std::string Analysis::JetBTaggingAlg::m_JetName
private

Definition at line 59 of file JetBTaggingAlg.h.

◆ m_OutgoingMuons

SG::WriteDecorHandleKey<xAOD::BTaggingContainer> Analysis::JetBTaggingAlg::m_OutgoingMuons { this, "OutgoingMuons", "", "Element Link vector from BTagging to muon container"}
private

Definition at line 51 of file JetBTaggingAlg.h.

51{ this, "OutgoingMuons", "", "Element Link vector from BTagging to muon container"};

◆ m_OutgoingTracks

SG::WriteDecorHandleKey<xAOD::BTaggingContainer> Analysis::JetBTaggingAlg::m_OutgoingTracks { this, "OutgoingTracks", "", "Element Link vector from BTagging to track container"}
private

Definition at line 49 of file JetBTaggingAlg.h.

49{ this, "OutgoingTracks", "", "Element Link vector from BTagging to track container"};

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