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

Removes charged PFO not associated to the PV. More...

#include <ChargedHadronSubtractionTool.h>

Inheritance diagram for ChargedHadronSubtractionTool:
Collaboration diagram for ChargedHadronSubtractionTool:

Public Member Functions

 ChargedHadronSubtractionTool (const std::string &name)
StatusCode initialize () override final
 Dummy implementation of the initialisation function.
StatusCode configure_decor_handle_keys () override final
StatusCode process (xAOD::IParticleContainer *cont, const EventContext &ctx) const override final
void setInputContainer (const std::string &cont)
void setOutputContainer (const std::string &cont)
void setInputChargedContainer (const std::string &cont)
void setOutputChargedContainer (const std::string &cont)
void setInputNeutralContainer (const std::string &cont)
void setOutputNeutralContainer (const std::string &cont)
virtual void print () const
 Print the state of the tool.
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 sysInitialize () override
 Perform system initialization for an algorithm.
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
Additional helper functions, not directly mimicking Athena
template<class T>
const T * getProperty (const std::string &name) const
 Get one of the tool's properties.
const std::string & msg_level_name () const __attribute__((deprecated))
 A deprecated function for getting the message level's name.
const std::string & getName (const void *ptr) const
 Get the name of an object that is / should be in the event store.
SG::sgkey_t getKey (const void *ptr) const
 Get the (hashed) key of an object that is in the event store.

Protected Member Functions

StatusCode setEtaPhi (xAOD::IParticle *obj, float eta, float phi) const
StatusCode setEnergyPt (xAOD::IParticle *obj, float e, float pt) const
StatusCode setP4 (xAOD::IParticle *obj, const xAOD::JetFourMom_t &p4) const
float getCorrectionFactor (xAOD::IParticle *obj, const float &corrected_energy, const float &corrected_pt) const
float getCorrectionFactor (xAOD::IParticle *obj, const xAOD::JetFourMom_t &corrected_p4) const
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.

Protected Attributes

unsigned int m_inputType =xAOD::Type::Other
std::string m_inputContainer
std::string m_outputContainer
std::string m_inputChargedContainer
std::string m_inputNeutralContainer
std::string m_outputChargedContainer
std::string m_outputNeutralContainer
bool m_applyToChargedPFO =true
bool m_applyToNeutralPFO =true

Private Types

typedef ServiceHandle< StoreGateSvc > StoreGateSvc_t

Private Member Functions

StatusCode process_impl (xAOD::IParticleContainer *cont, const EventContext &ctx) const override final
template<class T, class U>
StatusCode matchToPrimaryVertex (T &, const EventContext &ctx) const
template<class T, class U>
StatusCode matchByPrimaryVertex (T &, const EventContext &ctx) const
const xAOD::Vertex * getPrimaryVertex () const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Static Private Member Functions

static double calcAbsZ0SinTheta (const xAOD::TrackParticle &trk, const xAOD::Vertex &vtx)

Private Attributes

Gaudi::Property< bool > m_useTrackToVertexTool = {this, "UseTrackToVertexTool", false, "True if we will use the track to vertex tool"}
Gaudi::Property< bool > m_ignoreVertex = {this, "IgnoreVertex", false, "Dummy option for cosmics - accept everything"}
Gaudi::Property< float > m_z0sinThetaCutValue = {this, "Z0sinThetaCutValue", 2.0, "True if we will use the track to vertex tool"}
Gaudi::Property< bool > m_byVertex = {this, "DoByVertex", false, "True if we should match to each primary vertex, not just PV0"}
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainer_key = {this, "VertexContainerKey", "PrimaryVertices", "key for the primary vertex container"}
SG::ReadHandleKey< jet::TrackVertexAssociation > m_trkVtxAssoc_key = {this, "TrackVertexAssociation", "JetTrackVtxAssoc", "key for the TrackVertexAssociation object"}
WriteDecorHandleKeyTriplet< char > m_matchedToPVKeys
WriteDecorHandleKeyTriplet< char > m_matchedToPUsidebandKeys
WriteDecorHandleKeyTriplet< std::vector< unsigned > > m_matchingPVsKeys
WriteDecorHandleKeyTriplet< std::vector< unsigned > > m_matchingPUsidebandKeys
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

Removes charged PFO not associated to the PV.

Author
John Stupak, Jennifer Roloff, and Steven Schramm

Definition at line 33 of file ChargedHadronSubtractionTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 376 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ ChargedHadronSubtractionTool()

ChargedHadronSubtractionTool::ChargedHadronSubtractionTool ( const std::string & name)

Definition at line 9 of file ChargedHadronSubtractionTool.cxx.

10{
11}
JetConstituentModifierBase(const std::string &name)

Member Function Documentation

◆ calcAbsZ0SinTheta()

double ChargedHadronSubtractionTool::calcAbsZ0SinTheta ( const xAOD::TrackParticle & trk,
const xAOD::Vertex & vtx )
staticprivate

Definition at line 137 of file ChargedHadronSubtractionTool.cxx.

138{
139 // vtz.z() provides z of that vertex w.r.t the center of the beamspot (z = 0).
140 // Thus we correct the track z0 to be w.r.t z = 0
141 const float z0 = trk.z0() + trk.vz() - vtx.z();
142 const float theta = trk.theta();
143 return std::abs(z0 * std::sin(theta));
144}
Scalar theta() const
theta method
float z0() const
Returns the parameter.
float theta() const
Returns the parameter, which has range 0 to .
float vz() const
The z origin for the parameters.
float z() const
Returns the z position.

◆ configure_decor_handle_keys()

StatusCode ChargedHadronSubtractionTool::configure_decor_handle_keys ( )
finaloverridevirtual

Reimplemented from JetConstituentModifierBase.

Definition at line 41 of file ChargedHadronSubtractionTool.cxx.

42{
43 if (!m_byVertex) {
44
49
54
55 } else {
56
61
66 }
67
68 return StatusCode::SUCCESS;
69}
#define ATH_CHECK
Evaluate an expression and check for errors.
WriteDecorHandleKeyTriplet< char > m_matchedToPUsidebandKeys
WriteDecorHandleKeyTriplet< std::vector< unsigned > > m_matchingPUsidebandKeys
WriteDecorHandleKeyTriplet< char > m_matchedToPVKeys
WriteDecorHandleKeyTriplet< std::vector< unsigned > > m_matchingPVsKeys

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::evtStore ( )
inlineinherited

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

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::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

◆ getCorrectionFactor() [1/2]

float JetConstituentModifierBase::getCorrectionFactor ( xAOD::IParticle * obj,
const float & corrected_energy,
const float & corrected_pt ) const
protectedinherited

Definition at line 158 of file JetConstituentModifierBase.cxx.

158 {
159 float factor = 0.;
160 switch(m_inputType) {
162 {
163 xAOD::CaloCluster* clus = static_cast<xAOD::CaloCluster*>(obj);
164 factor = clus->calE() > 0. ? corrected_energy / clus->calE() : 0.;
165 }
166 break;
168 {
169 xAOD::PFO* pfo = static_cast<xAOD::PFO*>(obj);
170 factor = pfo->pt() > 0. ? corrected_pt / pfo->pt() : 0.;
171 }
172 break;
174 {
175 xAOD::FlowElement* pfo = static_cast<xAOD::FlowElement*>(obj);
176 factor = pfo->pt() > 0. ? corrected_pt / pfo->pt() : 0.;
177 }
178 break;
180 {
182 factor = tcc->pt() > 0. ? corrected_pt / tcc->pt() : 0.;
183 }
184 break;
185 default:
186 ATH_MSG_ERROR("No specialisation for object type " << m_inputType);
187 }
188 return factor;
189}
#define ATH_MSG_ERROR(x,...)
flt_t calE() const
Geet Energy in signal state CALIBRATED.
virtual double pt() const override
virtual double pt() const
The transverse momentum ( ) of the particle.
Definition PFO_v1.cxx:52
virtual double pt() const
The transverse momentum ( ) of the particle.
@ ParticleFlow
The object is a particle-flow object.
Definition ObjectType.h:41
@ FlowElement
The object is a track-calo-cluster.
Definition ObjectType.h:52
@ CaloCluster
The object is a calorimeter cluster.
Definition ObjectType.h:39
@ TrackCaloCluster
The object is a track-calo-cluster.
Definition ObjectType.h:51
PFO_v1 PFO
Definition of the current "pfo version".
Definition PFO.h:17
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
FlowElement_v1 FlowElement
Definition of the current "pfo version".
Definition FlowElement.h:16
TrackCaloCluster_v1 TrackCaloCluster
Reference the current persistent version:

◆ getCorrectionFactor() [2/2]

float JetConstituentModifierBase::getCorrectionFactor ( xAOD::IParticle * obj,
const xAOD::JetFourMom_t & corrected_p4 ) const
protectedinherited

Definition at line 191 of file JetConstituentModifierBase.cxx.

191 {
192 float weight = 0.;
193 switch(m_inputType) {
195 {
196 xAOD::CaloCluster* clus = static_cast<xAOD::CaloCluster*>(obj);
197 weight = clus->calE() > 0. ? corrected_p4.e() / clus->calE() : 0.;
198 }
199 break;
201 {
202 xAOD::PFO* pfo = static_cast<xAOD::PFO*>(obj);
203 // The PFO setter defaults to m=0
204 if( (m_applyToChargedPFO && pfo->isCharged()) || (m_applyToNeutralPFO && !pfo->isCharged()) ) {
205 weight = pfo->pt() > 0. ? corrected_p4.pt() / pfo->pt() : 0.;
206 }
207 }
208 break;
210 {
211 xAOD::FlowElement* pfo = static_cast<xAOD::FlowElement*>(obj);
212 if( (m_applyToChargedPFO && pfo->isCharged()) || (m_applyToNeutralPFO && !pfo->isCharged()) ) {
213 weight = pfo->pt() > 0. ? corrected_p4.pt() / pfo->pt() : 0.;
214 }
215 }
216 break;
218 {
220 if( tcc->taste() != 0) {
221 weight = tcc->pt() > 0. ? corrected_p4.pt() / tcc->pt() : 0.;
222 }
223 break;
224 }
225
226 default:
227 throw std::runtime_error("No specialisation for object type " + std::to_string(m_inputType));
228 }
229 return weight;
230}
bool isCharged() const
is a charged PFO
Definition PFO_v1.cxx:251
virtual int taste() const
The taste of the particle.

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void * ptr) const
inherited

Get the (hashed) key of an object that is in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::Event both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119 {
120
121#ifdef XAOD_STANDALONE
122 // In case we use @c xAOD::Event, we have a direct function call
123 // for this.
124 return evtStore()->event()->getKey( ptr );
125#else
126 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127 return ( proxy == nullptr ? 0 : proxy->sgkey() );
128#endif // XAOD_STANDALONE
129 }
ServiceHandle< StoreGateSvc > & evtStore()

◆ getName()

const std::string & asg::AsgTool::getName ( const void * ptr) const
inherited

Get the name of an object that is / should be in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::Event both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106 {
107
108#ifdef XAOD_STANDALONE
109 // In case we use @c xAOD::Event, we have a direct function call
110 // for this.
111 return evtStore()->event()->getName( ptr );
112#else
113 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114 static const std::string dummy = "";
115 return ( proxy == nullptr ? dummy : proxy->name() );
116#endif // XAOD_STANDALONE
117 }

◆ getPrimaryVertex()

const xAOD::Vertex * ChargedHadronSubtractionTool::getPrimaryVertex ( ) const
private

Definition at line 95 of file ChargedHadronSubtractionTool.cxx.

96{
97 // Retrieve Primary Vertices
99 if (!handle.isValid())
100 {
101 ATH_MSG_WARNING(" This event has no primary vertex container");
102 return nullptr;
103 }
104
105 const xAOD::VertexContainer *pvtxs = handle.cptr();
106 if (pvtxs->empty())
107 {
108 ATH_MSG_WARNING(" Failed to retrieve valid primary vertex container");
109 return nullptr;
110 }
111
112 // Usually the 0th vertex is the primary one, but this is not always
113 // the case. So we will choose the first vertex of type PriVtx
114 for (const auto *theVertex : *pvtxs)
115 {
116 if (theVertex->vertexType() == xAOD::VxType::PriVtx)
117 {
118 return theVertex;
119 } // If we have a vertex of type primary vertex
120 } // iterate over the vertices and check their type
121
122 // If we failed to find an appropriate vertex, return the dummy vertex
123 ATH_MSG_DEBUG("Could not find a primary vertex in this event");
124 for (const auto *theVertex : *pvtxs)
125 {
126 if (theVertex->vertexType() == xAOD::VxType::NoVtx)
127 {
128 return theVertex;
129 }
130 }
131
132 // If there is no primary vertex, then we cannot do PV matching.
133 ATH_MSG_WARNING("Primary vertex container is empty");
134 return nullptr;
135}
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_WARNING(x,...)
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainer_key
bool empty() const noexcept
Returns true if the collection is empty.
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())
@ PriVtx
Primary vertex.
@ NoVtx
Dummy vertex. TrackParticle was not used in vertex fit.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".

◆ getProperty()

template<class T>
const T * asg::AsgTool::getProperty ( const std::string & name) const
inherited

Get one of the tool's properties.

◆ initialize()

StatusCode ChargedHadronSubtractionTool::initialize ( void )
finaloverridevirtual

Dummy implementation of the initialisation function.

It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...

Reimplemented from asg::AsgTool.

Definition at line 13 of file ChargedHadronSubtractionTool.cxx.

14{
16 {
17 ATH_MSG_ERROR("ChargedHadronSubtractionTool requires PFO inputs. It cannot operate on objects of type "
18 << m_inputType);
19 return StatusCode::FAILURE;
20 }
21
22 if(m_byVertex){
23 ATH_MSG_INFO("Running ChargedHadronSubtractionTool by-vertex: " << m_byVertex.value());
24 }
26 ATH_MSG_INFO("Running ChargedHadronSubtractionTool using TTVA: " << m_useTrackToVertexTool.value());
27 }
28
31
32 ATH_CHECK(m_matchedToPVKeys.initialize());
34 ATH_CHECK(m_matchingPVsKeys.initialize());
36
37
38 return StatusCode::SUCCESS;
39}
#define ATH_MSG_INFO(x,...)
SG::ReadHandleKey< jet::TrackVertexAssociation > m_trkVtxAssoc_key
Gaudi::Property< bool > m_useTrackToVertexTool

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::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.

◆ matchByPrimaryVertex()

template<class T, class U>
StatusCode ChargedHadronSubtractionTool::matchByPrimaryVertex ( T & cont,
const EventContext & ctx ) const
private

Definition at line 224 of file ChargedHadronSubtractionTool.h.

225{
226
227 auto matchingPVsHandle =
228 m_matchingPVsKeys.makeHandles(m_inputType, ctx);
229
230 auto matchingPUsidebandHandle =
231 m_matchingPUsidebandKeys.makeHandles(m_inputType, ctx);
232
233 // Retrieve Primary Vertices
235 if (!handle.isValid())
236 {
237 ATH_MSG_WARNING(" This event has no primary vertex container");
238 return StatusCode::FAILURE;
239 }
240
241 const xAOD::VertexContainer *pvtxs = handle.cptr();
242 if (pvtxs->empty())
243 {
244 ATH_MSG_WARNING(" Failed to retrieve valid primary vertex container");
245 return StatusCode::FAILURE;
246 }
247
248 // Use only one of TVA or PV
249 const jet::TrackVertexAssociation *trkVtxAssoc = nullptr;
251 {
253 if (!handle.isValid())
254 {
255 ATH_MSG_ERROR("Can't retrieve TrackVertexAssociation : " << m_trkVtxAssoc_key.key());
256 return StatusCode::FAILURE;
257 }
258 trkVtxAssoc = handle.cptr();
259 }
260
261 for (U *ppfo : cont)
262 {
263 // Ignore neutral PFOs
264 if constexpr (std::is_same_v<U, xAOD::PFO>) {
265 if (std::abs(ppfo->charge()) < FLT_MIN)
266 continue;
267 } else if constexpr (std::is_same_v<U, xAOD::FlowElement>) {
268 if (!ppfo->isCharged())
269 continue;
270 }
271
272 // Get the track for this charged PFO
273 const xAOD::TrackParticle* ptrk = nullptr;
274
275 // Use different methods to get TrackParticle based on U
276 if constexpr (std::is_same_v<U, xAOD::PFO>) {
277 ptrk = ppfo->track(0);
278 } else if constexpr (std::is_same_v<U, xAOD::FlowElement>) {
279 ptrk = dynamic_cast<const xAOD::TrackParticle*>(ppfo->chargedObject(0));
280 }
281 if (ptrk == nullptr)
282 {
283 ATH_MSG_WARNING("Charged PFO with index " << ppfo->index() << " has no ID track!");
284 continue;
285 }
286
287 std::vector<unsigned> matchingVertexList;
288 std::vector<unsigned> matchingPUSBList;
289
290 if (trkVtxAssoc)
291 {
292 // Use TrackVertexAssociation
293 const xAOD::Vertex *thisTracksVertex = trkVtxAssoc->associatedVertex(ptrk);
294 if (thisTracksVertex == nullptr)
295 {
296 ATH_MSG_DEBUG("No vertex associated to track " << ptrk->index() << "! So it cannot be associated to the primary vertex");
297 }
298 else
299 {
300 matchingVertexList.push_back(thisTracksVertex->index());
301 for (const xAOD::Vertex *vtx : *pvtxs){
302 if (vtx != nullptr && vtx->vertexType() != xAOD::VxType::NoVtx)
303 {
304 float z0 = ptrk->z0() + ptrk->vz() - vtx->z();
305 float theta = ptrk->theta();
306
307 if (std::abs(z0 * sin(theta)) < 2.0 * m_z0sinThetaCutValue && std::abs(z0 * sin(theta)) >= m_z0sinThetaCutValue)
308 matchingPUSBList.push_back(vtx->index());
309 }
310 }
311 }
312 }
313 else{
314 // Use z0sinThetaCutValue
315 // Loop over the primary vertices to determine which ones potentially match
316 for (const xAOD::Vertex *vtx : *pvtxs)
317 {
318 bool matchedToVertex = false;
319 bool matchedToPileupSideband = false;
320
321 if (vtx == nullptr)
322 {
323 ATH_MSG_WARNING("Encountered a nullptr vertex when trying to match charged PFOs to vertices");
324 continue;
325 }
326 else if (vtx->vertexType() == xAOD::VxType::NoVtx)
327 { // No reconstructed vertices
328 matchedToVertex = true; // simply match all cPFOs in this case
329 }
330 else
331 { // Had a good reconstructed vertex
332 const double absZ0sinTheta = calcAbsZ0SinTheta(*ptrk, *vtx);
333 matchedToVertex = (absZ0sinTheta < m_z0sinThetaCutValue);
334 if (absZ0sinTheta < 2.0 * m_z0sinThetaCutValue && absZ0sinTheta >= m_z0sinThetaCutValue)
335 matchedToPileupSideband = true;
336 }
337
338 if (matchedToVertex)
339 matchingVertexList.push_back(vtx->index());
340 if (matchedToPileupSideband)
341 matchingPUSBList.push_back(vtx->index());
342 }
343 }
344
346 matchingPVsHandle(*ppfo) = std::move(matchingVertexList);
347 matchingPUsidebandHandle(*ppfo) = std::move(matchingPUSBList);
348 }
349 }
350 return StatusCode::SUCCESS;
351}
static double calcAbsZ0SinTheta(const xAOD::TrackParticle &trk, const xAOD::Vertex &vtx)
Gaudi::Property< float > m_z0sinThetaCutValue
const xAOD::Vertex * associatedVertex(const xAOD::TrackParticle *trk) const
const Trk::Track * track() const
Returns a pointer (which can be NULL) to the Trk::Track which was used to make this TrackParticle.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Vertex_v1 Vertex
Define the latest version of the vertex class.

◆ matchToPrimaryVertex()

template<class T, class U>
StatusCode ChargedHadronSubtractionTool::matchToPrimaryVertex ( T & cont,
const EventContext & ctx ) const
private

Definition at line 98 of file ChargedHadronSubtractionTool.h.

99{
100
101 auto matchedToPVHandle =
102 m_matchedToPVKeys.makeHandles(m_inputType, ctx);
103
104 auto matchedToPUsidebandHandle =
105 m_matchedToPUsidebandKeys.makeHandles(m_inputType, ctx);
106
107
108 // Use only one of TVA or PV
109 const jet::TrackVertexAssociation *trkVtxAssoc = nullptr;
110 const xAOD::Vertex *vtx = nullptr;
111 if (!m_ignoreVertex)
112 {
113 // In cosmics, there's no PV container so we need to avoid attempting
114 // to retrieve anything related to it
116 {
118 if (!handle.isValid())
119 {
120 ATH_MSG_ERROR("Can't retrieve TrackVertexAssociation : " << m_trkVtxAssoc_key.key());
121 return StatusCode::FAILURE;
122 }
123 trkVtxAssoc = handle.cptr();
124 }
125 else
126 {
127 vtx = getPrimaryVertex();
128 if (vtx == nullptr)
129 {
130 ATH_MSG_ERROR("Primary vertex container was empty or no valid vertex found!");
131 return StatusCode::FAILURE;
132 }
133 else if (vtx->vertexType() == xAOD::VxType::NoVtx)
134 {
135 ATH_MSG_VERBOSE("No genuine primary vertex found. Will consider all PFOs matched.");
136 }
137 }
138 }
139
140 for (U *ppfo : cont)
141 {
142 // Ignore neutral PFOs
143 if constexpr (std::is_same_v<U, xAOD::PFO>) {
144 if (std::abs(ppfo->charge()) < FLT_MIN)
145 continue;
146 } else if constexpr (std::is_same_v<U, xAOD::FlowElement>) {
147 if (!ppfo->isCharged())
148 continue;
149 }
150
151 bool matchedToPrimaryVertex = false;
152 bool matchedToPileupSideband = false;
153 if (m_ignoreVertex)
154 {
155 // If we don't use vertex information, don't bother computing the decision
156 // Just pass every cPFO -- there shouldn't be many in cosmics!
157 matchedToPrimaryVertex = true;
158 }
159 else
160 {
161 const xAOD::TrackParticle* ptrk = nullptr;
162
163 // Use different methods to get TrackParticle based on U
164 if constexpr (std::is_same_v<U, xAOD::PFO>) {
165 ptrk = ppfo->track(0);
166 } else if constexpr (std::is_same_v<U, xAOD::FlowElement>) {
167 ptrk = dynamic_cast<const xAOD::TrackParticle*>(ppfo->chargedObject(0));
168 }
169 if (ptrk == nullptr)
170 {
171 ATH_MSG_WARNING("Charged PFO with index " << ppfo->index() << " has no ID track!");
172 continue;
173 }
174 if (trkVtxAssoc)
175 { // Use TrackVertexAssociation
176 const xAOD::Vertex *thisTracksVertex = trkVtxAssoc->associatedVertex(ptrk);
177 if (thisTracksVertex == nullptr)
178 {
179 ATH_MSG_DEBUG("No vertex associated to track " << ptrk->index() << "! So it cannot be associated to the primary vertex");
180 matchedToPrimaryVertex = false;
181 }
182 else
183 {
184 matchedToPrimaryVertex = (xAOD::VxType::PriVtx == thisTracksVertex->vertexType());
185
186 // r21 PU sideband definition (see below)
187 // needed for comparisons with new r22 definition (neutral only)
188 vtx = getPrimaryVertex();
189 if (vtx != nullptr && vtx->vertexType() != xAOD::VxType::NoVtx)
190 {
191 const double absZ0sinTheta = calcAbsZ0SinTheta(*ptrk, *vtx);
192 if (absZ0sinTheta < 2.0 * m_z0sinThetaCutValue && absZ0sinTheta >= m_z0sinThetaCutValue)
193 matchedToPileupSideband = true;
194 }
195 }
196 }
197 else if (vtx) { // Use Primary Vertex
198 if (vtx->vertexType() == xAOD::VxType::NoVtx)
199 { // No reconstructed vertices
200 matchedToPrimaryVertex = true; // simply match all cPFOs in this case
201 }
202 else
203 { // Had a good reconstructed vertex.
204 // vtz.z() provides z of that vertex w.r.t the center of the beamspot (z = 0).
205 // Thus we correct the track z0 to be w.r.t z = 0
206 float z0 = ptrk->z0() + ptrk->vz() - vtx->z();
207 float theta = ptrk->theta();
208 matchedToPrimaryVertex = (std::abs(z0 * sin(theta)) < m_z0sinThetaCutValue);
209 if (std::abs(z0 * sin(theta)) < 2.0 * m_z0sinThetaCutValue && std::abs(z0 * sin(theta)) >= m_z0sinThetaCutValue)
210 matchedToPileupSideband = true;
211 }
212 } // TVA vs PV decision
213 }
215 matchedToPVHandle(*ppfo) = (char)matchedToPrimaryVertex;
216 matchedToPUsidebandHandle(*ppfo) = (char)matchedToPileupSideband;
217 }
218
219 }
220
221 return StatusCode::SUCCESS;
222}
#define ATH_MSG_VERBOSE(x,...)
const xAOD::Vertex * getPrimaryVertex() const
VxType::VertexType vertexType() const
The type of the vertex.

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
inherited

A deprecated function for getting the message level's name.

Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101 {
102
103 return MSG::name( msg().level() );
104 }
MsgStream & msg() const
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition MsgLevel.cxx:19

◆ msgLvl()

bool AthCommonMsg< AlgTool >::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< AlgTool > >::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.

◆ print()

void asg::AsgTool::print ( ) const
virtualinherited

Print the state of the tool.

Implements asg::IAsgTool.

Reimplemented in AsgHelloTool, HI::HIPileupTool, JetFromPseudojet, JetPileupLabelingTool, JetPseudojetRetriever, JetSubStructureMomentToolsBase, JetTruthLabelingTool, and KtDeltaRTool.

Definition at line 131 of file AsgTool.cxx.

131 {
132
133 ATH_MSG_INFO( "AsgTool " << name() << " @ " << this );
134 return;
135 }

◆ process()

StatusCode JetConstituentModifierBase::process ( xAOD::IParticleContainer * cont,
const EventContext & ctx ) const
finaloverridevirtualinherited

Implements IJetConstituentModifier.

Definition at line 25 of file JetConstituentModifierBase.cxx.

26{
27 // Test that we are operating on the type of object that
28 // we will be writing out.
29 // By implication, any supporting containers should not
30 // be the ones passed to this method...
31 if(!cont->empty() && cont->front()->type() != m_inputType) {
32 ATH_MSG_ERROR("Object type mismatch! This tool expects " << m_inputType
33 << ", but received " << cont->front()->type());
34 return StatusCode::FAILURE;
35 }
36
37 ATH_CHECK(process_impl(cont, ctx));
38
39 return StatusCode::SUCCESS;
40}
const T * front() const
Access the first element in the collection as an rvalue.
virtual StatusCode process_impl(xAOD::IParticleContainer *, const EventContext &) const

◆ process_impl()

StatusCode ChargedHadronSubtractionTool::process_impl ( xAOD::IParticleContainer * cont,
const EventContext & ctx ) const
finaloverrideprivatevirtual

Reimplemented from JetConstituentModifierBase.

Definition at line 71 of file ChargedHadronSubtractionTool.cxx.

72{
73
74 // Type-checking happens in the JetConstituentModifierBase class
75 // so it is safe just to static_cast
77 {
78 xAOD::FlowElementContainer *feCont = static_cast<xAOD::FlowElementContainer *>(cont);
79
80 // Check that these FlowElements are actually PFOs; nothing else is supported
81 if (!feCont->empty() && !(feCont->front()->signalType() & xAOD::FlowElement::PFlow))
82 {
83 ATH_MSG_ERROR("This tool correctly recieved a FlowElement, but it wasn't a PFO!"
84 << " Signal type was " << feCont->front()->signalType());
85 return StatusCode::FAILURE;
86 }
87
89 }
90 xAOD::PFOContainer *pfoCont = static_cast<xAOD::PFOContainer *>(cont);
91 return !m_byVertex ? matchToPrimaryVertex<xAOD::PFOContainer, xAOD::PFO>(*pfoCont, ctx) : matchByPrimaryVertex<xAOD::PFOContainer, xAOD::PFO>(*pfoCont, ctx);
92}
StatusCode matchToPrimaryVertex(T &, const EventContext &ctx) const
StatusCode matchByPrimaryVertex(T &, const EventContext &ctx) const
signal_t signalType() const
FlowElementContainer_v1 FlowElementContainer
Definition of the current "pfo container version".
PFOContainer_v1 PFOContainer
Definition of the current "pfo container version".

◆ 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< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 368 of file AthCommonDataStore.h.

369 {
370 h.renounce();
372 }
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< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 352 of file AthCommonDataStore.h.

352 {
354 }

◆ setEnergyPt()

StatusCode JetConstituentModifierBase::setEnergyPt ( xAOD::IParticle * obj,
float e,
float pt ) const
protectedinherited

Definition at line 63 of file JetConstituentModifierBase.cxx.

64{
65 switch(m_inputType) {
67 {
68 xAOD::CaloCluster* clus = static_cast<xAOD::CaloCluster*>(obj);
69 // Clusters get pt via the energy
70 // This currently leaves the mass unaltered.
71 clus->setCalE(e);
72 }
73 break;
75 {
76 xAOD::PFO* pfo = static_cast<xAOD::PFO*>(obj);
77 if( (m_applyToChargedPFO && pfo->isCharged()) ||
78 (m_applyToNeutralPFO && !pfo->isCharged()) ) {
79 // KTJ: Temporary fix
80 // Defeats the purpose, but we need to use this to reset the 4-vec cache
81 pfo->setP4(pt, pfo->eta(), pfo->phi());
82 }
83 }
84 break;
86 {
87 xAOD::FlowElement* pfo = static_cast<xAOD::FlowElement*>(obj);
88 if( (m_applyToChargedPFO && pfo->isCharged()) ||
89 (m_applyToNeutralPFO && !pfo->isCharged()) ) {
90 pfo->setP4(pt, pfo->eta(), pfo->phi(), 0.);
91 }
92 }
93 break;
95 {
97 if( tcc->taste() != 0) {
98 tcc->setParameters(pt, tcc->eta(), tcc->phi(), tcc->m(), xAOD::TrackCaloCluster::Taste(tcc->taste()), tcc->trackParticleLink(), tcc->caloClusterLinks());
99 }
100 }
101 break;
102 default:
103 // Should not get here, because type-checking should happen in process()
104 ATH_MSG_ERROR("No specialisation for object type " << m_inputType);
105 return StatusCode::FAILURE;
106 }
107 return StatusCode::SUCCESS;
108}
void setCalE(flt_t)
Set Energy for signal state CALIBRATED.
void setP4(float pt, float eta, float phi, float m)
virtual double phi() const override
The azimuthal angle ( ) of the particle.
virtual double eta() const override
The pseudorapidity ( ) of the particle.
void setP4(const FourMom_t &vec)
set the 4-vec
Definition PFO_v1.cxx:107
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition PFO_v1.cxx:60
virtual double phi() const
The azimuthal angle ( ) of the particle.
Definition PFO_v1.cxx:67
virtual double m() const
The invariant mass of the particle..
virtual double phi() const
The azimuthal angle ( ) of the particle (has range to .).
Taste
Type of TrackCaloCluster - Charged - Neutral - Combined.
const ElementLink< xAOD::TrackParticleContainer > & trackParticleLink() const
virtual double eta() const
The pseudorapidity ( ) of the particle.
const std::vector< ElementLink< xAOD::CaloClusterContainer > > & caloClusterLinks() const
Returns a vector to the links (which can be invalid) to the xAOD::CaloClusters associated with this T...
void setParameters(float pt, float eta, float phi, float m, TrackCaloCluster_v1::Taste taste, const ElementLink< xAOD::TrackParticleContainer > &particle, const std::vector< ElementLink< xAOD::CaloClusterContainer > > &clusters)

◆ setEtaPhi()

StatusCode JetConstituentModifierBase::setEtaPhi ( xAOD::IParticle * obj,
float eta,
float phi ) const
protectedinherited

Definition at line 43 of file JetConstituentModifierBase.cxx.

44{
45 switch(m_inputType) {
46 // The main (only?) application is origin-correcting LC topoclusters
47 // By convention we leave the raw p4 unmodified
49 {
50 xAOD::CaloCluster* clus = static_cast<xAOD::CaloCluster*>(obj);
51 clus->setCalEta(eta);
52 clus->setCalPhi(phi);
53 }
54 break;
55 default:
56 // Should not get here, because type-checking should happen in process()
57 ATH_MSG_ERROR("No specialisation for object type " << m_inputType);
58 return StatusCode::FAILURE;
59 }
60 return StatusCode::SUCCESS;
61}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
void setCalPhi(flt_t)
Set for signal state CALIBRATED.
void setCalEta(flt_t)
Set for signal state CALIBRATED.

◆ setInputChargedContainer()

void JetConstituentModifierBase::setInputChargedContainer ( const std::string & cont)
inlineinherited

Definition at line 47 of file JetConstituentModifierBase.h.

◆ setInputContainer()

void JetConstituentModifierBase::setInputContainer ( const std::string & cont)
inlineinherited

Definition at line 45 of file JetConstituentModifierBase.h.

◆ setInputNeutralContainer()

void JetConstituentModifierBase::setInputNeutralContainer ( const std::string & cont)
inlineinherited

Definition at line 49 of file JetConstituentModifierBase.h.

◆ setOutputChargedContainer()

void JetConstituentModifierBase::setOutputChargedContainer ( const std::string & cont)
inlineinherited

Definition at line 48 of file JetConstituentModifierBase.h.

◆ setOutputContainer()

void JetConstituentModifierBase::setOutputContainer ( const std::string & cont)
inlineinherited

Definition at line 46 of file JetConstituentModifierBase.h.

46{m_outputContainer = cont;}

◆ setOutputNeutralContainer()

void JetConstituentModifierBase::setOutputNeutralContainer ( const std::string & cont)
inlineinherited

Definition at line 50 of file JetConstituentModifierBase.h.

◆ setP4()

StatusCode JetConstituentModifierBase::setP4 ( xAOD::IParticle * obj,
const xAOD::JetFourMom_t & p4 ) const
protectedinherited

Definition at line 110 of file JetConstituentModifierBase.cxx.

110 {
111 switch(m_inputType) {
113 {
114 xAOD::CaloCluster* clus = static_cast<xAOD::CaloCluster*>(obj);
115 // This currently leaves the mass unaltered
116 clus->setCalE(p4.e());
117 clus->setCalEta(p4.eta());
118 clus->setCalPhi(p4.phi());
119 }
120 break;
122 {
123 xAOD::PFO* pfo = static_cast<xAOD::PFO*>(obj);
124 // The PFO setter defaults to m=0
125 if( (m_applyToChargedPFO && pfo->isCharged()) ||
126 (m_applyToNeutralPFO && !pfo->isCharged()) ) {
127 pfo->setP4(p4.pt(),p4.eta(),p4.phi(),p4.mass());
128 }
129 }
130 break;
132 {
133 xAOD::FlowElement* pfo = static_cast<xAOD::FlowElement*>(obj);
134 if( (m_applyToChargedPFO && pfo->isCharged()) ||
135 (m_applyToNeutralPFO && !pfo->isCharged()) ) {
136 pfo->setP4(p4.pt(),p4.eta(),p4.phi(),p4.mass());
137 }
138 }
139 break;
141 {
143 if( tcc->taste() != 0) {
144 tcc->setParameters(p4.pt(), p4.eta(), p4.phi(), p4.mass(), xAOD::TrackCaloCluster::Taste(tcc->taste()), tcc->trackParticleLink(), tcc->caloClusterLinks());
145 }
146 break;
147 }
148
149 default:
150 // Should not get here, because type-checking should happen in process()
151 ATH_MSG_ERROR("No specialisation for object type " << m_inputType);
152 return StatusCode::FAILURE;
153 }
154 return StatusCode::SUCCESS;
155}

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, and AthCheckedComponent<::AthAlgTool >.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 298 of file AthCommonDataStore.h.

298 {
299 for (auto &a : m_vhka) {
301 for (auto k : keys) {
302 k->setOwner(this);
303 }
304 }
305 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_applyToChargedPFO

bool JetConstituentModifierBase::m_applyToChargedPFO =true
protectedinherited

Definition at line 84 of file JetConstituentModifierBase.h.

◆ m_applyToNeutralPFO

bool JetConstituentModifierBase::m_applyToNeutralPFO =true
protectedinherited

Definition at line 85 of file JetConstituentModifierBase.h.

◆ m_byVertex

Gaudi::Property<bool> ChargedHadronSubtractionTool::m_byVertex = {this, "DoByVertex", false, "True if we should match to each primary vertex, not just PV0"}
private

Definition at line 57 of file ChargedHadronSubtractionTool.h.

57{this, "DoByVertex", false, "True if we should match to each primary vertex, not just PV0"};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 381 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 378 of file AthCommonDataStore.h.

◆ m_ignoreVertex

Gaudi::Property<bool> ChargedHadronSubtractionTool::m_ignoreVertex = {this, "IgnoreVertex", false, "Dummy option for cosmics - accept everything"}
private

Definition at line 55 of file ChargedHadronSubtractionTool.h.

55{this, "IgnoreVertex", false, "Dummy option for cosmics - accept everything"};

◆ m_inputChargedContainer

std::string JetConstituentModifierBase::m_inputChargedContainer
protectedinherited

Definition at line 78 of file JetConstituentModifierBase.h.

◆ m_inputContainer

std::string JetConstituentModifierBase::m_inputContainer
protectedinherited

Definition at line 76 of file JetConstituentModifierBase.h.

◆ m_inputNeutralContainer

std::string JetConstituentModifierBase::m_inputNeutralContainer
protectedinherited

Definition at line 79 of file JetConstituentModifierBase.h.

◆ m_inputType

unsigned int JetConstituentModifierBase::m_inputType =xAOD::Type::Other
protectedinherited

Definition at line 74 of file JetConstituentModifierBase.h.

◆ m_matchedToPUsidebandKeys

WriteDecorHandleKeyTriplet<char> ChargedHadronSubtractionTool::m_matchedToPUsidebandKeys
private
Initial value:
{
this,
"MatchedToPUsidebandKey",
"matchedToPUsideband",
"decor key for objects matched to PU sideband"
}

Definition at line 73 of file ChargedHadronSubtractionTool.h.

73 {
74 this,
75 "MatchedToPUsidebandKey",
76 "matchedToPUsideband",
77 "decor key for objects matched to PU sideband"
78 };

◆ m_matchedToPVKeys

WriteDecorHandleKeyTriplet<char> ChargedHadronSubtractionTool::m_matchedToPVKeys
private
Initial value:
{
this,
"MatchedToPVKey",
"matchedToPV",
"decor key for objects matched to PV"
}

Definition at line 65 of file ChargedHadronSubtractionTool.h.

65 {
66 this,
67 "MatchedToPVKey",
68 "matchedToPV",
69 "decor key for objects matched to PV"
70 };

◆ m_matchingPUsidebandKeys

WriteDecorHandleKeyTriplet<std::vector<unsigned> > ChargedHadronSubtractionTool::m_matchingPUsidebandKeys
private
Initial value:
{
this,
"MatchingPUsidebandKey",
"MatchingPUsidebands",
"decor key for objects matching PU sidebands"
}

Definition at line 89 of file ChargedHadronSubtractionTool.h.

89 {
90 this,
91 "MatchingPUsidebandKey",
92 "MatchingPUsidebands",
93 "decor key for objects matching PU sidebands"
94 };

◆ m_matchingPVsKeys

WriteDecorHandleKeyTriplet<std::vector<unsigned> > ChargedHadronSubtractionTool::m_matchingPVsKeys
private
Initial value:
{
this,
"MatchingPVsKey",
"MatchingPVs",
"decor key for objects matching PVs"
}

Definition at line 81 of file ChargedHadronSubtractionTool.h.

81 {
82 this,
83 "MatchingPVsKey",
84 "MatchingPVs",
85 "decor key for objects matching PVs"
86 };

◆ m_outputChargedContainer

std::string JetConstituentModifierBase::m_outputChargedContainer
protectedinherited

Definition at line 80 of file JetConstituentModifierBase.h.

◆ m_outputContainer

std::string JetConstituentModifierBase::m_outputContainer
protectedinherited

Definition at line 77 of file JetConstituentModifierBase.h.

◆ m_outputNeutralContainer

std::string JetConstituentModifierBase::m_outputNeutralContainer
protectedinherited

Definition at line 81 of file JetConstituentModifierBase.h.

◆ m_trkVtxAssoc_key

SG::ReadHandleKey<jet::TrackVertexAssociation> ChargedHadronSubtractionTool::m_trkVtxAssoc_key = {this, "TrackVertexAssociation", "JetTrackVtxAssoc", "key for the TrackVertexAssociation object"}
private

Definition at line 62 of file ChargedHadronSubtractionTool.h.

62{this, "TrackVertexAssociation", "JetTrackVtxAssoc", "key for the TrackVertexAssociation object"};

◆ m_useTrackToVertexTool

Gaudi::Property<bool> ChargedHadronSubtractionTool::m_useTrackToVertexTool = {this, "UseTrackToVertexTool", false, "True if we will use the track to vertex tool"}
private

Definition at line 54 of file ChargedHadronSubtractionTool.h.

54{this, "UseTrackToVertexTool", false, "True if we will use the track to vertex tool"};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 387 of file AthCommonDataStore.h.

◆ m_vertexContainer_key

SG::ReadHandleKey<xAOD::VertexContainer> ChargedHadronSubtractionTool::m_vertexContainer_key = {this, "VertexContainerKey", "PrimaryVertices", "key for the primary vertex container"}
private

Definition at line 61 of file ChargedHadronSubtractionTool.h.

61{this, "VertexContainerKey", "PrimaryVertices", "key for the primary vertex container"};

◆ m_vhka

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

Definition at line 386 of file AthCommonDataStore.h.

◆ m_z0sinThetaCutValue

Gaudi::Property<float> ChargedHadronSubtractionTool::m_z0sinThetaCutValue = {this, "Z0sinThetaCutValue", 2.0, "True if we will use the track to vertex tool"}
private

Definition at line 56 of file ChargedHadronSubtractionTool.h.

56{this, "Z0sinThetaCutValue", 2.0, "True if we will use the track to vertex tool"};

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