ATLAS Offline Software
Loading...
Searching...
No Matches
CP::DiTauExtraVariablesAlg Class Referencefinal

#include <DiTauExtraVariablesAlg.h>

Inheritance diagram for CP::DiTauExtraVariablesAlg:
Collaboration diagram for CP::DiTauExtraVariablesAlg:

Public Member Functions

virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &ctx) const override
 AnaReentrantAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
 constructor with parameters
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

virtual::StatusCode finalize ()
 finalize this algorithm
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::DiTauJetContainerm_ditausKey { this, "ditaus", "", "the input ditau jet container" }
SG::WriteDecorHandleKey< xAOD::DiTauJetContainerm_nSubjetsKey {this, "nSubjets", "nSubjets", "decoration for the number of subjets"}
SG::WriteDecorHandleKey< xAOD::DiTauJetContainerm_omniScoreKey {this, "omniScore", "omniScore", "decoration name for the ditau ID"}
SG::WriteDecorHandleKey< xAOD::DiTauJetContainerm_leadSubjetPtKey {this, "leadSubjetPt", "leadSubjetPt", "decoration name for leading subjet pt"}
SG::WriteDecorHandleKey< xAOD::DiTauJetContainerm_leadSubjetEtaKey {this, "leadSubjetEta", "leadSubjetEta", "decoration name for leading subjet eta"}
SG::WriteDecorHandleKey< xAOD::DiTauJetContainerm_leadSubjetPhiKey {this, "leadSubjetPhi", "leadSubjetPhi", "decoration name for leading subjet phi"}
SG::WriteDecorHandleKey< xAOD::DiTauJetContainerm_leadSubjetEKey {this, "leadSubjetE", "leadSubjetE", "decoration name for leading subjet energy"}
SG::WriteDecorHandleKey< xAOD::DiTauJetContainerm_leadSubjetNTracksKey {this, "leadSubjetNTracks", "leadSubjetNTracks", "decoration name for leading subjet number of tracks"}
SG::WriteDecorHandleKey< xAOD::DiTauJetContainerm_leadSubjetChargeKey {this, "leadSubjetCharge", "leadSubjetCharge", "decoration name for leading subjet charge"}
SG::WriteDecorHandleKey< xAOD::DiTauJetContainerm_subleadSubjetPtKey {this, "subleadSubjetPt", "subleadSubjetPt", "decoration name for subleading subjet pt"}
SG::WriteDecorHandleKey< xAOD::DiTauJetContainerm_subleadSubjetEtaKey {this, "subleadSubjetEta", "subleadSubjetEta", "decoration name for subleading subjet eta"}
SG::WriteDecorHandleKey< xAOD::DiTauJetContainerm_subleadSubjetPhiKey {this, "subleadSubjetPhi", "subleadSubjetPhi", "decoration name for subleading subjet phi"}
SG::WriteDecorHandleKey< xAOD::DiTauJetContainerm_subleadSubjetEKey {this, "subleadSubjetE", "subleadSubjetE", "decoration name for subleading subjet energy"}
SG::WriteDecorHandleKey< xAOD::DiTauJetContainerm_subleadSubjetNTracksKey {this, "subleadSubjetNTracks", "subleadSubjetNTracks", "decoration name for subleading subjet number of tracks"}
SG::WriteDecorHandleKey< xAOD::DiTauJetContainerm_subleadSubjetChargeKey {this, "subleadSubjetCharge", "subleadSubjetCharge", "decoration name for subleading subjet charge"}
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 17 of file DiTauExtraVariablesAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Member Function Documentation

◆ AnaReentrantAlgorithm()

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

constructor with parameters

This matches the Athena algorithm constructor (for dual-use purposes). Within EventLoop the pSvcLocator will always be nullptr (unless we ever have dual-use services).

Guarantee
strong
Failures
out of memory II

Definition at line 67 of file AnaReentrantAlgorithm.cxx.

32 : AsgComponent (name)
33#else
34 : AthReentrantAlgorithm (name, pSvcLocator)
35#endif
36 {
37 ANA_MSG_DEBUG ("AnaReentrantAlgorithm: " << name);
38 }
#define ANA_MSG_DEBUG(xmsg)
Macro printing debug messages.

◆ 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 }
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 CP::DiTauExtraVariablesAlg::execute ( const EventContext & ctx) const
overridevirtual

Definition at line 93 of file DiTauExtraVariablesAlg.cxx.

93 {
94
95 SG::ReadHandle<xAOD::DiTauJetContainer> ditaus(m_ditausKey, ctx);
96
97 SG::WriteDecorHandle<xAOD::DiTauJetContainer, float> nSubjets(m_nSubjetsKey, ctx);
98
99 SG::WriteDecorHandle<xAOD::DiTauJetContainer, float> omniScoreHandle(m_omniScoreKey, ctx);
100
101 SG::WriteDecorHandle<xAOD::DiTauJetContainer, float> leadSubjetPtHandle(m_leadSubjetPtKey, ctx);
102 SG::WriteDecorHandle<xAOD::DiTauJetContainer, float> leadSubjetEtaHandle(m_leadSubjetEtaKey, ctx);
103 SG::WriteDecorHandle<xAOD::DiTauJetContainer, float> leadSubjetPhiHandle(m_leadSubjetPhiKey, ctx);
104 SG::WriteDecorHandle<xAOD::DiTauJetContainer, float> leadSubjetEHandle(m_leadSubjetEKey, ctx);
105 SG::WriteDecorHandle<xAOD::DiTauJetContainer, int> leadSubjetNTracksHandle(m_leadSubjetNTracksKey, ctx);
106 SG::WriteDecorHandle<xAOD::DiTauJetContainer, int> leadSubjetChargeHandle(m_leadSubjetChargeKey, ctx);
107
108 SG::WriteDecorHandle<xAOD::DiTauJetContainer, float> subleadSubjetPtHandle(m_subleadSubjetPtKey, ctx);
109 SG::WriteDecorHandle<xAOD::DiTauJetContainer, float> subleadSubjetEtaHandle(m_subleadSubjetEtaKey, ctx);
110 SG::WriteDecorHandle<xAOD::DiTauJetContainer, float> subleadSubjetPhiHandle(m_subleadSubjetPhiKey, ctx);
111 SG::WriteDecorHandle<xAOD::DiTauJetContainer, float> subleadSubjetEHandle(m_subleadSubjetEKey, ctx);
112 SG::WriteDecorHandle<xAOD::DiTauJetContainer, int> subleadSubjetNTracksHandle(m_subleadSubjetNTracksKey, ctx);
113 SG::WriteDecorHandle<xAOD::DiTauJetContainer, int> subleadSubjetChargeHandle(m_subleadSubjetChargeKey, ctx);
114
115 // need to check if this decoration exist first because it's only available from ATLASDPD-2318 onward
116 static const SG::ConstAccessor<float> acc_OmniScore("omni_score");
117
118 for (const xAOD::DiTauJet *ditau : *ditaus) {
119
120 // always require at least 2 subjets to have a good ditau
121 if(ditau->nSubjets() < 2) continue;
122
123 nSubjets(*ditau) = ditau->nSubjets();
124
125 if ( acc_OmniScore.isAvailable(*ditau) ) {
126 omniScoreHandle(*ditau) = acc_OmniScore(*ditau);
127 }
128
129 leadSubjetPtHandle(*ditau) = ditau->subjetPt(0);
130 leadSubjetEtaHandle(*ditau) = ditau->subjetEta(0);
131 leadSubjetPhiHandle(*ditau) = ditau->subjetPhi(0);
132 leadSubjetEHandle(*ditau) = ditau->subjetE(0);
133
134 subleadSubjetPtHandle(*ditau) = ditau->subjetPt(1);
135 subleadSubjetEtaHandle(*ditau) = ditau->subjetEta(1);
136 subleadSubjetPhiHandle(*ditau) = ditau->subjetPhi(1);
137 subleadSubjetEHandle(*ditau) = ditau->subjetE(1);
138
139 // leading and subleading subjet ntracks
140 int lead_ntracks = 0;
141 int lead_charge = 0;
142 int subl_ntracks = 0;
143 int subl_charge = 0;
144
145 for (const auto& xTrack : ditau->trackLinks()) {
146 if (!xTrack.isValid())
147 continue;
148
149 for (int i = 0; i < 2; ++i) { // loop over two leading subjets
150 TLorentzVector tlvSubjet = TLorentzVector();
151 tlvSubjet.SetPtEtaPhiE(ditau->subjetPt(i), ditau->subjetEta(i),ditau->subjetPhi(i), ditau->subjetE(i));
152 double dR = tlvSubjet.DeltaR((*xTrack)->p4());
153
154 if (dR < 0.1) {
155 if (i == 0) {
156 lead_ntracks++;
157 lead_charge += (*xTrack)->charge();
158 } else if (i == 1) {
159 subl_ntracks++;
160 subl_charge += (*xTrack)->charge();
161 }
162 break; // prevents double counting of tracks
163 }
164 } // loop over subjets
165 }
166 leadSubjetNTracksHandle(*ditau) = lead_ntracks;
167 leadSubjetChargeHandle(*ditau) = lead_charge;
168 subleadSubjetNTracksHandle(*ditau) = subl_ntracks;
169 subleadSubjetChargeHandle(*ditau) = subl_charge;
170 }
171 return StatusCode::SUCCESS;
172 }
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_subleadSubjetPhiKey
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_nSubjetsKey
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_subleadSubjetEtaKey
SG::ReadHandleKey< xAOD::DiTauJetContainer > m_ditausKey
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_leadSubjetEKey
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_omniScoreKey
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_subleadSubjetPtKey
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_leadSubjetPhiKey
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_subleadSubjetChargeKey
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_subleadSubjetNTracksKey
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_leadSubjetPtKey
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_leadSubjetChargeKey
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_leadSubjetNTracksKey
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_subleadSubjetEKey
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_leadSubjetEtaKey
DiTauJet_v1 DiTauJet
Definition of the current version.
Definition DiTauJet.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

◆ finalize()

StatusCode EL::AnaReentrantAlgorithm::finalize ( )
protectedinherited

finalize this algorithm

This gets called after event processing has finished. The last event may no longer be in memory, and the code should not try to access it.

Definition at line 102 of file AnaReentrantAlgorithm.cxx.

104 {
105 return StatusCode::SUCCESS;
106 }

◆ initialize()

StatusCode CP::DiTauExtraVariablesAlg::initialize ( )
overridevirtual

Definition at line 14 of file DiTauExtraVariablesAlg.cxx.

14 {
15
16 if (m_omniScoreKey.contHandleKey().key() == m_omniScoreKey.key()) {
17 m_omniScoreKey = m_ditausKey.key() + "." + m_omniScoreKey.key();
18 }
19
20 if (m_nSubjetsKey.contHandleKey().key() == m_nSubjetsKey.key()) {
21 m_nSubjetsKey = m_ditausKey.key() + "." + m_nSubjetsKey.key();
22 }
23
24 // leading subjet info
25 if (m_leadSubjetPtKey.contHandleKey().key() == m_leadSubjetPtKey.key()) {
27 }
28
29 if (m_leadSubjetEtaKey.contHandleKey().key() == m_leadSubjetEtaKey.key()) {
31 }
32
33 if (m_leadSubjetPhiKey.contHandleKey().key() == m_leadSubjetPhiKey.key()) {
35 }
36
37 if (m_leadSubjetEKey.contHandleKey().key() == m_leadSubjetEKey.key()) {
38 m_leadSubjetEKey = m_ditausKey.key() + "." + m_leadSubjetEKey.key();
39 }
40
41 if (m_leadSubjetNTracksKey.contHandleKey().key() == m_leadSubjetNTracksKey.key()) {
43 }
44
45 if (m_leadSubjetChargeKey.contHandleKey().key() == m_leadSubjetChargeKey.key()) {
47 }
48
49 // subleading subjet info
50 if (m_subleadSubjetPtKey.contHandleKey().key() == m_subleadSubjetPtKey.key()) {
52 }
53
54 if (m_subleadSubjetEtaKey.contHandleKey().key() == m_subleadSubjetEtaKey.key()) {
56 }
57
58 if (m_subleadSubjetPhiKey.contHandleKey().key() == m_subleadSubjetPhiKey.key()) {
60 }
61
62 if (m_subleadSubjetEKey.contHandleKey().key() == m_subleadSubjetEKey.key()) {
64 }
65
66 if (m_subleadSubjetNTracksKey.contHandleKey().key() == m_subleadSubjetNTracksKey.key()) {
68 }
69
70 if (m_subleadSubjetChargeKey.contHandleKey().key() == m_subleadSubjetChargeKey.key()) {
72 }
73
74 ANA_CHECK(m_ditausKey.initialize());
75 ANA_CHECK(m_nSubjetsKey.initialize());
76 ANA_CHECK(m_omniScoreKey.initialize());
77 ANA_CHECK(m_leadSubjetPtKey.initialize());
78 ANA_CHECK(m_leadSubjetEtaKey.initialize());
79 ANA_CHECK(m_leadSubjetPhiKey.initialize());
80 ANA_CHECK(m_leadSubjetEKey.initialize());
82 ANA_CHECK(m_leadSubjetChargeKey.initialize());
83 ANA_CHECK(m_subleadSubjetPtKey.initialize());
84 ANA_CHECK(m_subleadSubjetEtaKey.initialize());
85 ANA_CHECK(m_subleadSubjetPhiKey.initialize());
86 ANA_CHECK(m_subleadSubjetEKey.initialize());
89
90 return StatusCode::SUCCESS;
91 }
#define ANA_CHECK(EXP)
check whether the given expression was successful

◆ 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}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_WARNING(x)
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_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_ditausKey

SG::ReadHandleKey<xAOD::DiTauJetContainer> CP::DiTauExtraVariablesAlg::m_ditausKey { this, "ditaus", "", "the input ditau jet container" }
private

Definition at line 25 of file DiTauExtraVariablesAlg.h.

25{ this, "ditaus", "", "the input ditau jet container" };

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

SG::WriteDecorHandleKey<xAOD::DiTauJetContainer> CP::DiTauExtraVariablesAlg::m_leadSubjetChargeKey {this, "leadSubjetCharge", "leadSubjetCharge", "decoration name for leading subjet charge"}
private

Definition at line 36 of file DiTauExtraVariablesAlg.h.

36{this, "leadSubjetCharge", "leadSubjetCharge", "decoration name for leading subjet charge"};

◆ m_leadSubjetEKey

SG::WriteDecorHandleKey<xAOD::DiTauJetContainer> CP::DiTauExtraVariablesAlg::m_leadSubjetEKey {this, "leadSubjetE", "leadSubjetE", "decoration name for leading subjet energy"}
private

Definition at line 34 of file DiTauExtraVariablesAlg.h.

34{this, "leadSubjetE", "leadSubjetE", "decoration name for leading subjet energy"};

◆ m_leadSubjetEtaKey

SG::WriteDecorHandleKey<xAOD::DiTauJetContainer> CP::DiTauExtraVariablesAlg::m_leadSubjetEtaKey {this, "leadSubjetEta", "leadSubjetEta", "decoration name for leading subjet eta"}
private

Definition at line 32 of file DiTauExtraVariablesAlg.h.

32{this, "leadSubjetEta", "leadSubjetEta", "decoration name for leading subjet eta"};

◆ m_leadSubjetNTracksKey

SG::WriteDecorHandleKey<xAOD::DiTauJetContainer> CP::DiTauExtraVariablesAlg::m_leadSubjetNTracksKey {this, "leadSubjetNTracks", "leadSubjetNTracks", "decoration name for leading subjet number of tracks"}
private

Definition at line 35 of file DiTauExtraVariablesAlg.h.

35{this, "leadSubjetNTracks", "leadSubjetNTracks", "decoration name for leading subjet number of tracks"};

◆ m_leadSubjetPhiKey

SG::WriteDecorHandleKey<xAOD::DiTauJetContainer> CP::DiTauExtraVariablesAlg::m_leadSubjetPhiKey {this, "leadSubjetPhi", "leadSubjetPhi", "decoration name for leading subjet phi"}
private

Definition at line 33 of file DiTauExtraVariablesAlg.h.

33{this, "leadSubjetPhi", "leadSubjetPhi", "decoration name for leading subjet phi"};

◆ m_leadSubjetPtKey

SG::WriteDecorHandleKey<xAOD::DiTauJetContainer> CP::DiTauExtraVariablesAlg::m_leadSubjetPtKey {this, "leadSubjetPt", "leadSubjetPt", "decoration name for leading subjet pt"}
private

Definition at line 31 of file DiTauExtraVariablesAlg.h.

31{this, "leadSubjetPt", "leadSubjetPt", "decoration name for leading subjet pt"};

◆ m_nSubjetsKey

SG::WriteDecorHandleKey<xAOD::DiTauJetContainer> CP::DiTauExtraVariablesAlg::m_nSubjetsKey {this, "nSubjets", "nSubjets", "decoration for the number of subjets"}
private

Definition at line 27 of file DiTauExtraVariablesAlg.h.

27{this, "nSubjets", "nSubjets", "decoration for the number of subjets"};

◆ m_omniScoreKey

SG::WriteDecorHandleKey<xAOD::DiTauJetContainer> CP::DiTauExtraVariablesAlg::m_omniScoreKey {this, "omniScore", "omniScore", "decoration name for the ditau ID"}
private

Definition at line 29 of file DiTauExtraVariablesAlg.h.

29{this, "omniScore", "omniScore", "decoration name for the ditau ID"};

◆ m_subleadSubjetChargeKey

SG::WriteDecorHandleKey<xAOD::DiTauJetContainer> CP::DiTauExtraVariablesAlg::m_subleadSubjetChargeKey {this, "subleadSubjetCharge", "subleadSubjetCharge", "decoration name for subleading subjet charge"}
private

Definition at line 43 of file DiTauExtraVariablesAlg.h.

43{this, "subleadSubjetCharge", "subleadSubjetCharge", "decoration name for subleading subjet charge"};

◆ m_subleadSubjetEKey

SG::WriteDecorHandleKey<xAOD::DiTauJetContainer> CP::DiTauExtraVariablesAlg::m_subleadSubjetEKey {this, "subleadSubjetE", "subleadSubjetE", "decoration name for subleading subjet energy"}
private

Definition at line 41 of file DiTauExtraVariablesAlg.h.

41{this, "subleadSubjetE", "subleadSubjetE", "decoration name for subleading subjet energy"};

◆ m_subleadSubjetEtaKey

SG::WriteDecorHandleKey<xAOD::DiTauJetContainer> CP::DiTauExtraVariablesAlg::m_subleadSubjetEtaKey {this, "subleadSubjetEta", "subleadSubjetEta", "decoration name for subleading subjet eta"}
private

Definition at line 39 of file DiTauExtraVariablesAlg.h.

39{this, "subleadSubjetEta", "subleadSubjetEta", "decoration name for subleading subjet eta"};

◆ m_subleadSubjetNTracksKey

SG::WriteDecorHandleKey<xAOD::DiTauJetContainer> CP::DiTauExtraVariablesAlg::m_subleadSubjetNTracksKey {this, "subleadSubjetNTracks", "subleadSubjetNTracks", "decoration name for subleading subjet number of tracks"}
private

Definition at line 42 of file DiTauExtraVariablesAlg.h.

42{this, "subleadSubjetNTracks", "subleadSubjetNTracks", "decoration name for subleading subjet number of tracks"};

◆ m_subleadSubjetPhiKey

SG::WriteDecorHandleKey<xAOD::DiTauJetContainer> CP::DiTauExtraVariablesAlg::m_subleadSubjetPhiKey {this, "subleadSubjetPhi", "subleadSubjetPhi", "decoration name for subleading subjet phi"}
private

Definition at line 40 of file DiTauExtraVariablesAlg.h.

40{this, "subleadSubjetPhi", "subleadSubjetPhi", "decoration name for subleading subjet phi"};

◆ m_subleadSubjetPtKey

SG::WriteDecorHandleKey<xAOD::DiTauJetContainer> CP::DiTauExtraVariablesAlg::m_subleadSubjetPtKey {this, "subleadSubjetPt", "subleadSubjetPt", "decoration name for subleading subjet pt"}
private

Definition at line 38 of file DiTauExtraVariablesAlg.h.

38{this, "subleadSubjetPt", "subleadSubjetPt", "decoration name for subleading subjet pt"};

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