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

Thin taus below a minimum pt threshold. More...

#include <TauThinningAlg.h>

Inheritance diagram for TauThinningAlg:
Collaboration diagram for TauThinningAlg:

Public Member Functions

virtual StatusCode initialize () override
 Gaudi initialize method.
virtual StatusCode execute (const EventContext &ctx) const override
 Execute the algorithm.
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

Gaudi::Property< bool > m_doVertexCorrection { this, "VertexCorrection", true, "Tau vertex correction" }
Gaudi::Property< bool > m_saveOnlyGoodTracks { this, "SaveOnlyGoodTracks", false, "Option to save only tracks passing quality requirements"}
StringProperty m_streamName { this, "StreamName", "StreamAOD", "Name of the stream being thinned" }
SG::ThinningHandleKey< xAOD::TauJetContainerm_taus { this, "Taus", "TauJets", "Tau container to thin" }
SG::ThinningHandleKey< xAOD::TauTrackContainerm_tauTracks { this, "TauTracks", "TauTracks", "Tau track container to thin" }
SG::ThinningHandleKey< xAOD::PFOContainerm_neutralPFOs { this, "TauNeutralPFOs", "TauNeutralParticleFlowObjects", "Tau neutral PFO container to thin" }
SG::ThinningHandleKey< xAOD::CaloClusterContainerm_pi0clusters { this, "TauPi0Clusters", "TauPi0Clusters", "Tau pi0 cluster container to thin" }
SG::ThinningHandleKey< CaloClusterCellLinkContainerm_pi0CellLinks { this, "TauPi0CellLinks", "TauPi0Clusters_links", "Tau pi0 cluster cell link container to thin" }
SG::ThinningHandleKey< xAOD::ParticleContainerm_finalPi0s { this, "TauFinalPi0s", "TauFinalPi0s", "Tau final pi0 container to thin" }
SG::ThinningHandleKey< xAOD::PFOContainerm_shotPFOs { this, "TauShotPFOs", "TauShotParticleFlowObjects", "Tau shot PFO container to thin" }
SG::ThinningHandleKey< xAOD::CaloClusterContainerm_shotclusters { this, "TauShotClusters", "TauShotClusters", "Tau shot cluster container to thin" }
SG::ThinningHandleKey< CaloClusterCellLinkContainerm_shotCellLinks { this, "TauShotCellLinks", "TauShotClusters_links", "Tau shot cluster cell link container to thin" }
SG::ThinningHandleKey< xAOD::PFOContainerm_hadronicPFOs { this, "TauHadronicPFOs", "TauHadronicParticleFlowObjects", "Tau hadronic PFO container to thin" }
SG::ThinningHandleKey< xAOD::VertexContainerm_secondaryVertices { this, "TauSecondaryVertices", "TauSecondaryVertices", "Tau secondary vertex container to thin" }
SG::ThinningHandleKey< CaloCellContainerm_cells { this, "Cells", "AllCalo", "Cell container to thin" }
SG::ThinningHandleKey< CaloClusterCellLinkContainerm_tauCellLinks { this, "TauCellLinks", "CaloCalTopoClusters_links", "Tau cluster cell link container to thin" }
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

Thin taus below a minimum pt threshold.

Thinning algorithm that removes entries from all tau-related containers for tau candidates below a minimum pt threshold

Definition at line 25 of file TauThinningAlg.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

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

Execute the algorithm.

Parameters
ctxCurrent event context.

Definition at line 36 of file TauThinningAlg.cxx.

37{
38 SG::ThinningHandle<xAOD::TauJetContainer> taus (m_taus, ctx);
39 taus.thinAll();
40
41 SG::ThinningHandle<xAOD::TauTrackContainer> tauTracks (m_tauTracks, ctx);
42 tauTracks.thinAll();
43
44 SG::ThinningHandle<xAOD::PFOContainer> neutralPFOs (m_neutralPFOs, ctx);
45 neutralPFOs.thinAll();
46
47 SG::ThinningHandle<xAOD::CaloClusterContainer> pi0clusters (m_pi0clusters, ctx);
48 pi0clusters.thinAll();
49
50 SG::ThinningHandle<CaloClusterCellLinkContainer> pi0CellLinks (m_pi0CellLinks, ctx);
51 pi0CellLinks.thinAll();
52
53 SG::ThinningHandle<xAOD::PFOContainer> shotPFOs (m_shotPFOs, ctx);
54 shotPFOs.thinAll();
55
56 SG::ThinningHandle<xAOD::PFOContainer> hadronicPFOs (m_hadronicPFOs, ctx);
57 hadronicPFOs.thinAll();
58
59 SG::ThinningHandle<xAOD::VertexContainer> secondaryVertices (m_secondaryVertices, ctx);
60 secondaryVertices.thinAll();
61
62 SG::ThinningHandle<CaloCellContainer> cells (m_cells, ctx);
63 cells.thinAll();
64
65 SG::ThinningHandle<CaloClusterCellLinkContainer> tauCellLinks (m_tauCellLinks, ctx);
66 tauCellLinks.thinAll();
67
68 // The three following containers didn't exist in r21.
69 // Make them optional, so we won't crash processing a r21 ESD.
70
71 std::optional<SG::ThinningHandle<xAOD::ParticleContainer> > finalPi0sOpt;
73 finalPi0sOpt.emplace (m_finalPi0s, ctx);
74 finalPi0sOpt->thinAll();
75 }
76
77 std::optional<SG::ThinningHandle<xAOD::CaloClusterContainer> > shotclustersOpt;
79 shotclustersOpt.emplace (m_shotclusters, ctx);
80 shotclustersOpt->thinAll();
81 }
82
83 std::optional<SG::ThinningHandle<CaloClusterCellLinkContainer> > shotCellLinksOpt;
85 shotCellLinksOpt.emplace (m_shotCellLinks, ctx);
86 shotCellLinksOpt->thinAll();
87 }
88
89 static const SG::ConstAccessor<char> acc_passThinning("passThinning");
90
91 for (const xAOD::TauJet* tau : *taus) {
92
93 if (!acc_passThinning(*tau)) continue;
94
95 // keep tau
96 taus.keep(tau->index());
97
98 // keep tau tracks
99 for (const xAOD::TauTrack* track : tau->allTracks()) {
100
102 continue;
103
104 tauTracks.keep(track->index());
105 }
106
107 // keep tau cluster cell links and cells within 0.2 of the tau axis
108 TLorentzVector tauAxis = tauRecTools::getTauAxis(*tau, m_doVertexCorrection);
109 const xAOD::Vertex* tauVertex = tau->vertex();
110
111 for (const xAOD::IParticle* particle : tau->clusters()) {
112 const xAOD::CaloCluster* cluster = static_cast<const xAOD::CaloCluster*>(particle);
113 TLorentzVector clusterP4 = cluster->p4();
114
115 // correct the four momentum to point to the tau vertex
116 if (tauVertex) {
117 xAOD::CaloVertexedTopoCluster vertexedCluster(*cluster, tauVertex->position());
118 clusterP4 = vertexedCluster.p4();
119 }
120
121 if (clusterP4.DeltaR(tauAxis) > 0.2) continue;
122
123 const CaloClusterCellLink* cellLinks = cluster->getCellLinks();
124 if (!cellLinks) {
125 ATH_MSG_WARNING( "Skipping cluster without cell links." );
126 continue;
127 }
128
129 // cluster cell links
130 CaloClusterCellLinkContainer::const_iterator cellLinks_it = std::find(tauCellLinks->begin(), tauCellLinks->end(), cellLinks);
131 if(cellLinks_it != tauCellLinks->end()) {
132 size_t link_index = std::distance(tauCellLinks->begin(), cellLinks_it);
133 tauCellLinks.keep(link_index);
134 }
135 else {
136 ATH_MSG_WARNING( "Could not find cluster cell link in " << m_tauCellLinks.key() << ", skipping cluster." );
137 continue;
138 }
139
140 // cells
141 CaloClusterCellLink::const_iterator it = cellLinks->begin();
142 CaloClusterCellLink::const_iterator end = cellLinks->end();
143 for (; it != end; ++it) {
144 if (it.index() >= cells->size()) {
145 ATH_MSG_WARNING( "Cell index " << it.index() << " is larger than the number of cells in " << m_cells.key() << " (" << cells->size() << ")" );
146 continue;
147 }
148 cells.keep (it.index());
149 }
150 }
151
152 // keep neutral PFOs, pi0 clusters, cell links and cells
153 for(size_t i=0; i<tau->nNeutralPFOs(); i++) {
154 // neutral PFOs
155 neutralPFOs.keep(tau->neutralPFO(i)->index());
156
157 // pi0 clusters
158 const xAOD::CaloCluster* cluster = tau->neutralPFO(i)->cluster(0);
159 pi0clusters.keep(cluster->index());
160
161 // pi0 cell links
162 const CaloClusterCellLink* cellLinks = cluster->getCellLinks();
163 CaloClusterCellLinkContainer::const_iterator cellLinks_it = std::find(pi0CellLinks->begin(), pi0CellLinks->end(), cellLinks);
164 if(cellLinks_it != pi0CellLinks->end()) {
165 size_t link_index = std::distance(pi0CellLinks->begin(), cellLinks_it);
166 pi0CellLinks.keep(link_index);
167 }
168 else {
169 ATH_MSG_WARNING( "Could not find cluster cell link in " << m_pi0CellLinks.key() << ", won't be saved in xAOD." );
170 }
171
172 // pi0 cells
173 CaloClusterCellLink::const_iterator it = cellLinks->begin();
174 CaloClusterCellLink::const_iterator end = cellLinks->end();
175 for (; it != end; ++it) {
176 if (it.index() >= cells->size()) {
177 ATH_MSG_WARNING( "Cell index " << it.index() << " is larger than the number of cells in " << m_cells.key() << " (" << cells->size() << ")" );
178 continue;
179 }
180 cells.keep (it.index());
181 }
182 }
183
184 // keep final pi0s
185 if (finalPi0sOpt) {
186 for(size_t i=0; i<tau->nPi0s(); i++) {
187 finalPi0sOpt->keep(tau->pi0(i)->index());
188 }
189 }
190
191 // keep shot PFOs, clusters, cell links and cells
192 for(size_t i=0; i<tau->nShotPFOs(); i++) {
193 // shot PFOs
194 shotPFOs.keep(tau->shotPFO(i)->index());
195
196 // shot clusters
197 const xAOD::CaloCluster* cluster = tau->shotPFO(i)->cluster(0);
198 if (!cluster) continue;
199 if (shotclustersOpt) {
200 shotclustersOpt->keep(cluster->index());
201 }
202
203 // shot cell links
204 const CaloClusterCellLink* cellLinks = cluster->getCellLinks();
205 if (shotCellLinksOpt) {
206 CaloClusterCellLinkContainer::const_iterator cellLinks_it = std::find((*shotCellLinksOpt)->begin(), (*shotCellLinksOpt)->end(), cellLinks);
207 if(cellLinks_it != (*shotCellLinksOpt)->end()) {
208 size_t link_index = std::distance((*shotCellLinksOpt)->begin(), cellLinks_it);
209 shotCellLinksOpt->keep(link_index);
210 }
211 else {
212 ATH_MSG_WARNING( "Could not find cluster cell link in " << m_shotCellLinks.key() << ", won't be saved in xAOD." );
213 }
214 }
215
216 // shot cells
217 CaloClusterCellLink::const_iterator it = cellLinks->begin();
218 CaloClusterCellLink::const_iterator end = cellLinks->end();
219 for (; it != end; ++it) {
220 if (it.index() >= cells->size()) {
221 ATH_MSG_WARNING( "Cell index " << it.index() << " is larger than the number of cells in " << m_cells.key() << " (" << cells->size() << ")" );
222 continue;
223 }
224 cells.keep (it.index());
225 }
226 }
227
228 // keep hadronic PFOs
229 for(size_t i=0; i<tau->nHadronicPFOs(); i++) {
230 hadronicPFOs.keep(tau->hadronicPFO(i)->index());
231 }
232
233 // keep secondary vertex when present
234 if (tau->secondaryVertex() != nullptr) {
235 secondaryVertices.keep(tau->secondaryVertex()->index());
236 }
237 }
238
239 return StatusCode::SUCCESS;
240}
#define ATH_MSG_WARNING(x)
static Double_t taus
DataModel_detail::const_iterator< DataVector > const_iterator
Definition DataVector.h:838
size_t index() const
Return the index of this element within its container.
SG::ThinningHandleKey< CaloClusterCellLinkContainer > m_tauCellLinks
SG::ThinningHandleKey< xAOD::ParticleContainer > m_finalPi0s
SG::ThinningHandleKey< xAOD::VertexContainer > m_secondaryVertices
SG::ThinningHandleKey< CaloClusterCellLinkContainer > m_pi0CellLinks
Gaudi::Property< bool > m_saveOnlyGoodTracks
SG::ThinningHandleKey< xAOD::TauJetContainer > m_taus
SG::ThinningHandleKey< xAOD::CaloClusterContainer > m_shotclusters
Gaudi::Property< bool > m_doVertexCorrection
SG::ThinningHandleKey< xAOD::PFOContainer > m_shotPFOs
SG::ThinningHandleKey< xAOD::CaloClusterContainer > m_pi0clusters
SG::ThinningHandleKey< xAOD::PFOContainer > m_hadronicPFOs
SG::ThinningHandleKey< CaloCellContainer > m_cells
SG::ThinningHandleKey< CaloClusterCellLinkContainer > m_shotCellLinks
SG::ThinningHandleKey< xAOD::PFOContainer > m_neutralPFOs
SG::ThinningHandleKey< xAOD::TauTrackContainer > m_tauTracks
const CaloClusterCellLink * getCellLinks() const
Get a pointer to the CaloClusterCellLink object (const version)
virtual FourMom_t p4() const
The full 4-momentum of the particle.
const Amg::Vector3D & position() const
Returns the 3-pos.
bool contains(const std::string &s, const std::string &regx)
does a string contain the substring
Definition hcg.cxx:114
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
TLorentzVector getTauAxis(const xAOD::TauJet &tau, bool doVertexCorrection=true)
Return the four momentum of the tau axis The tau axis is widely used to select clusters and cells in ...
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Vertex_v1 Vertex
Define the latest version of the vertex class.
TauTrack_v1 TauTrack
Definition of the current version.
Definition TauTrack.h:16
TauJet_v3 TauJet
Definition of the current "tau version".

◆ 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 TauThinningAlg::initialize ( )
overridevirtual

Gaudi initialize method.

Definition at line 13 of file TauThinningAlg.cxx.

14{
15 ATH_CHECK( m_taus.initialize(m_streamName) );
16 ATH_CHECK( m_tauTracks.initialize(m_streamName) );
20 ATH_CHECK( m_finalPi0s.initialize(m_streamName) );
21 ATH_CHECK( m_shotPFOs.initialize(m_streamName) );
26 ATH_CHECK( m_cells.initialize(m_streamName) );
28
29 return StatusCode::SUCCESS;
30}
#define ATH_CHECK
Evaluate an expression and check for errors.
StringProperty m_streamName

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

SG::ThinningHandleKey<CaloCellContainer> TauThinningAlg::m_cells { this, "Cells", "AllCalo", "Cell container to thin" }
private

Definition at line 102 of file TauThinningAlg.h.

103{ this, "Cells", "AllCalo", "Cell container to thin" };

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

Gaudi::Property<bool> TauThinningAlg::m_doVertexCorrection { this, "VertexCorrection", true, "Tau vertex correction" }
private

Definition at line 46 of file TauThinningAlg.h.

47{ this, "VertexCorrection", true, "Tau vertex correction" };

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

SG::ThinningHandleKey<xAOD::ParticleContainer> TauThinningAlg::m_finalPi0s { this, "TauFinalPi0s", "TauFinalPi0s", "Tau final pi0 container to thin" }
private

Definition at line 78 of file TauThinningAlg.h.

79{ this, "TauFinalPi0s", "TauFinalPi0s", "Tau final pi0 container to thin" };

◆ m_hadronicPFOs

SG::ThinningHandleKey<xAOD::PFOContainer> TauThinningAlg::m_hadronicPFOs { this, "TauHadronicPFOs", "TauHadronicParticleFlowObjects", "Tau hadronic PFO container to thin" }
private

Definition at line 94 of file TauThinningAlg.h.

95{ this, "TauHadronicPFOs", "TauHadronicParticleFlowObjects", "Tau hadronic PFO container to thin" };

◆ m_neutralPFOs

SG::ThinningHandleKey<xAOD::PFOContainer> TauThinningAlg::m_neutralPFOs { this, "TauNeutralPFOs", "TauNeutralParticleFlowObjects", "Tau neutral PFO container to thin" }
private

Definition at line 66 of file TauThinningAlg.h.

67{ this, "TauNeutralPFOs", "TauNeutralParticleFlowObjects", "Tau neutral PFO container to thin" };

◆ m_pi0CellLinks

SG::ThinningHandleKey<CaloClusterCellLinkContainer> TauThinningAlg::m_pi0CellLinks { this, "TauPi0CellLinks", "TauPi0Clusters_links", "Tau pi0 cluster cell link container to thin" }
private

Definition at line 74 of file TauThinningAlg.h.

75{ this, "TauPi0CellLinks", "TauPi0Clusters_links", "Tau pi0 cluster cell link container to thin" };

◆ m_pi0clusters

SG::ThinningHandleKey<xAOD::CaloClusterContainer> TauThinningAlg::m_pi0clusters { this, "TauPi0Clusters", "TauPi0Clusters", "Tau pi0 cluster container to thin" }
private

Definition at line 70 of file TauThinningAlg.h.

71{ this, "TauPi0Clusters", "TauPi0Clusters", "Tau pi0 cluster container to thin" };

◆ m_saveOnlyGoodTracks

Gaudi::Property<bool> TauThinningAlg::m_saveOnlyGoodTracks { this, "SaveOnlyGoodTracks", false, "Option to save only tracks passing quality requirements"}
private

Definition at line 50 of file TauThinningAlg.h.

51{ this, "SaveOnlyGoodTracks", false, "Option to save only tracks passing quality requirements"};

◆ m_secondaryVertices

SG::ThinningHandleKey<xAOD::VertexContainer> TauThinningAlg::m_secondaryVertices { this, "TauSecondaryVertices", "TauSecondaryVertices", "Tau secondary vertex container to thin" }
private

Definition at line 98 of file TauThinningAlg.h.

99{ this, "TauSecondaryVertices", "TauSecondaryVertices", "Tau secondary vertex container to thin" };

◆ m_shotCellLinks

SG::ThinningHandleKey<CaloClusterCellLinkContainer> TauThinningAlg::m_shotCellLinks { this, "TauShotCellLinks", "TauShotClusters_links", "Tau shot cluster cell link container to thin" }
private

Definition at line 90 of file TauThinningAlg.h.

91{ this, "TauShotCellLinks", "TauShotClusters_links", "Tau shot cluster cell link container to thin" };

◆ m_shotclusters

SG::ThinningHandleKey<xAOD::CaloClusterContainer> TauThinningAlg::m_shotclusters { this, "TauShotClusters", "TauShotClusters", "Tau shot cluster container to thin" }
private

Definition at line 86 of file TauThinningAlg.h.

87{ this, "TauShotClusters", "TauShotClusters", "Tau shot cluster container to thin" };

◆ m_shotPFOs

SG::ThinningHandleKey<xAOD::PFOContainer> TauThinningAlg::m_shotPFOs { this, "TauShotPFOs", "TauShotParticleFlowObjects", "Tau shot PFO container to thin" }
private

Definition at line 82 of file TauThinningAlg.h.

83{ this, "TauShotPFOs", "TauShotParticleFlowObjects", "Tau shot PFO container to thin" };

◆ m_streamName

StringProperty TauThinningAlg::m_streamName { this, "StreamName", "StreamAOD", "Name of the stream being thinned" }
private

Definition at line 54 of file TauThinningAlg.h.

55{ this, "StreamName", "StreamAOD", "Name of the stream being thinned" };

◆ m_tauCellLinks

SG::ThinningHandleKey<CaloClusterCellLinkContainer> TauThinningAlg::m_tauCellLinks { this, "TauCellLinks", "CaloCalTopoClusters_links", "Tau cluster cell link container to thin" }
private

Definition at line 106 of file TauThinningAlg.h.

107{ this, "TauCellLinks", "CaloCalTopoClusters_links", "Tau cluster cell link container to thin" };

◆ m_taus

SG::ThinningHandleKey<xAOD::TauJetContainer> TauThinningAlg::m_taus { this, "Taus", "TauJets", "Tau container to thin" }
private

Definition at line 58 of file TauThinningAlg.h.

59{ this, "Taus", "TauJets", "Tau container to thin" };

◆ m_tauTracks

SG::ThinningHandleKey<xAOD::TauTrackContainer> TauThinningAlg::m_tauTracks { this, "TauTracks", "TauTracks", "Tau track container to thin" }
private

Definition at line 62 of file TauThinningAlg.h.

63{ this, "TauTracks", "TauTracks", "Tau track container to thin" };

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