ATLAS Offline Software
METAssociator.cxx
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // METAssociator.cxx
8 // Implementation for class METAssociator
9 //
10 // This is the base class for tools that construct MET terms
11 // from other object collections.
12 //
13 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
14 //
15 // Author: P Loch, S Resconi, TJ Khoo, AS Mete
17 
18 // METReconstruction includes
24 
25 // Tracking EDM
26 #include "xAODTracking/Vertex.h"
28 
29 // Track errors
31 
32 // Tool interface headers
36 
37 // For DeltaR
39 
40 namespace met {
41 
42  using namespace xAOD;
43 
45  // Public methods:
47 
48  // Constructors
50  METAssociator::METAssociator(const std::string& name) :
51  AsgTool(name),
52  m_trkseltool(this,""),
53  m_trkIsolationTool(this,""),
54  m_caloIsolationTool(this,"")
55  {
56  ATH_MSG_INFO("METAssoc constructor");
57  declareProperty( "UseModifiedClus", m_useModifiedClus = false );
58  declareProperty( "UseTracks", m_useTracks = true );
59  declareProperty( "PFlow", m_pflow = false );
60  declareProperty( "UseRapidity", m_useRapidity = false );
61  declareProperty( "TrackSelectorTool", m_trkseltool );
62  declareProperty( "TrackIsolationTool", m_trkIsolationTool );
63  declareProperty( "CaloIsolationTool", m_caloIsolationTool );
64  declareProperty( "IgnoreJetConst", m_skipconst = false );
65  declareProperty( "ForwardColl", m_forcoll = "" );
66  declareProperty( "ForwardDef", m_foreta = 2.5 );
67  declareProperty( "CentralTrackPtThr", m_cenTrackPtThr = 30e+3 );
68  declareProperty( "ForwardTrackPtThr", m_forTrackPtThr = 30e+3 );
69  declareProperty( "CleanCPFO", m_cleanChargedPFO = true );
70  declareProperty( "UsePFOLinks", m_usePFOLinks = false );
71  declareProperty( "UseFELinks", m_useFELinks = false );
72  declareProperty( "NeutralPFOLinksKey", m_neutralPFOLinksKey = "neutralpfoLinks");
73  declareProperty( "ChargedPFOLinksKey", m_chargedPFOLinksKey = "chargedpfoLinks");
74  declareProperty( "NeutralFELinksKey", m_neutralFELinksKey = "neutralGlobalFELinks");
75  declareProperty( "ChargedFELinksKey", m_chargedFELinksKey = "chargedGlobalFELinks");
76  }
77 
78  // Destructor
81  = default;
82 
83  // Athena algtool's Hooks
86  {
87  ATH_MSG_DEBUG ("Initializing " << name() << "...");
88 
89  ATH_CHECK( m_trkseltool.retrieve() );
90  ATH_CHECK(m_trkIsolationTool.retrieve());
91  ATH_CHECK(m_caloIsolationTool.retrieve());
92 
93  if(m_clcollKey.key() == "CaloCalTopoClusters") {
94  if(m_useModifiedClus) {
95  ATH_MSG_ERROR("Configured to use modified topocluster collection but \"CaloCalTopoClusters\" collection specified!");
96  return StatusCode::FAILURE;
97  } else {
98  ATH_MSG_INFO("Configured to use standard topocluster collection.");
99  }
100  } else {
101  if(m_useModifiedClus) {
102  ATH_MSG_INFO("Configured to use modified topocluster collection \"" << m_clcollKey.key() << "\".");
103  } else {
104  ATH_MSG_ERROR("Configured to use topocluster collection \"" << m_clcollKey.key() << "\", but modified clusters flag not set!");
105  return StatusCode::FAILURE;
106  }
107  }
108 
109  //initialise read handle keys
110  ATH_CHECK( m_pvcollKey.initialize(m_useTracks));
112 
113  ATH_CHECK(m_fecollKey.initialize(m_pflow && !m_fecollKey.key().empty()));
114  ATH_CHECK( m_pfcollKey.initialize(m_pflow && m_fecollKey.key().empty()));
115  if(m_pflow){
116  if(!m_fecollKey.key().empty()){
117  ATH_MSG_INFO("Configured to use FlowElement collection \"" << m_fecollKey.key() << "\".");
118  }
119  else{
120  ATH_MSG_INFO("Configured to use PFlow collection \"" << m_pfcollKey.key() << "\".");
121  if(m_pfcollKey.key() == "JetETMissParticleFlowObjects") {
122  ATH_MSG_ERROR("Configured to use standard pflow collection \"" << m_pfcollKey.key() << "\".");
123  ATH_MSG_ERROR("This is no longer supported -- please use the CHSParticleFlowObjects collection, which has the four-vector corrections built in.");
124  return StatusCode::FAILURE;
125  }
126  }
127  }
128 
129  ATH_CHECK( m_clcollKey.initialize(!m_skipconst || m_forcoll.empty()));
130 
131  std::string hybridname = "Etmiss";
132  hybridname += m_clcollKey.key();
133  hybridname += m_foreta;
134  hybridname += m_forcoll;
135  ATH_CHECK( m_hybridContKey.assign(hybridname));
136  ATH_CHECK( m_hybridContKey.initialize(m_skipconst && !m_forcoll.empty()));
137 
138  return StatusCode::SUCCESS;
139  }
140 
142  {
143  ATH_MSG_DEBUG ("In execute: " << name() << "...");
144  if(!metCont) {
145  ATH_MSG_WARNING("Invalid pointer to MissingETContainer supplied! Abort.");
146  return StatusCode::FAILURE;
147  }
148 
149  if(!metMap) {
150  ATH_MSG_WARNING("Invalid pointer to MissingETAssociationMap supplied! Abort.");
151  return StatusCode::FAILURE;
152  }
153  if(m_pflow && !m_useTracks ){
154  ATH_MSG_WARNING("Attempting to build PFlow MET without a track collection.");
155  return StatusCode::FAILURE;
156  }
157 
158  return this->executeTool(metCont, metMap);
159  }
160 
162  {
163  ATH_MSG_DEBUG ("In execute: " << name() << "...");
164  if (!m_skipconst || m_forcoll.empty()) {
165 
167  if (!topoclusterCont.isValid()) {
168  ATH_MSG_WARNING("Unable to retrieve topocluster container " << m_clcollKey.key() << " for overlap removal");
169  return StatusCode::FAILURE;
170  }
171  constits.tcCont=topoclusterCont.cptr();
172  ATH_MSG_DEBUG("Successfully retrieved topocluster collection");
173  } else {
174  std::string hybridname = "Etmiss";
175  hybridname += m_clcollKey.key();
176  hybridname += m_foreta;
177  hybridname += m_forcoll;
178 
180  if( hybridCont.isValid()) {
181  constits.tcCont=hybridCont.cptr();
182  } else {
183  ATH_MSG_WARNING("Trying to do something currently unsupported- lets abort");
184  return StatusCode::FAILURE;
185  // Trying to do this using write handles (need to get some input here)
186  /*std::unique_ptr<ConstDataVector<IParticleContainer>> hybridCont = std::make_unique<ConstDataVector<IParticleContainer>>();
187  SG::WriteHandle<ConstDataVector<IParticleContainer>> hybridContHandle(hybridname);
188 
189  StatusCode sc = hybridContHandle.record(std::make_unique<ConstDataVector<IParticleContainer>>(*hybridCont));
190 
191  if (sc.isFailure()) {
192  ATH_MSG_WARNING("Unable to record container");
193  return StatusCode::SUCCESS;
194 
195  }*/
196 
197  /*SG::ReadHandle<IParticleContainer> centCont(m_clcoll);
198  if (!centCont.isValid()) {
199  ATH_MSG_WARNING("Unable to retrieve central container " << m_clcoll << " for overlap removal");
200  return StatusCode::FAILURE;
201  }
202 
203  SG::ReadHandle<IParticleContainer> forCont(m_forcoll);
204  if (!forCont.isValid()) {
205  ATH_MSG_WARNING("Unable to retrieve forward container " << m_forcoll << " for overlap removal");
206  return StatusCode::FAILURE;
207  }
208  ConstDataVector<IParticleContainer> *hybridCont = new ConstDataVector<IParticleContainer>(SG::VIEW_ELEMENTS);
209 
210  const IParticleContainer* centCont=0;
211  if( evtStore()->retrieve(centCont, m_clcoll).isFailure() ) {
212  ATH_MSG_WARNING("Unable to retrieve central container " << m_clcoll << " for overlap removal");
213  return StatusCode::FAILURE;
214  }
215 
216  const IParticleContainer* forCont=0;
217  if( evtStore()->retrieve(forCont, m_forcoll).isFailure() ) {
218  ATH_MSG_WARNING("Unable to retrieve forward container " << m_forcoll << " for overlap removal");
219  return StatusCode::FAILURE;
220  }
221 
222  for(const auto clus : *centCont) if (fabs(clus->eta())<m_foreta) hybridCont->push_back(clus);
223  for(const auto clus : *forCont) if (fabs(clus->eta())>=m_foreta) hybridCont->push_back(clus);
224  ATH_CHECK( evtStore()->record(hybridCont,hybridname));
225  constits.tcCont = hybridCont->asDataVector();
226  */
227  }
228  }
229 
230  if( !m_useTracks){
231  //if you want to skip tracks, set the track collection empty manually
232  ATH_MSG_DEBUG("Skipping tracks");
233  }else{
235  if (!vxCont.isValid()) {
236  ATH_MSG_WARNING("Unable to retrieve primary vertex container " << m_pvcollKey.key());
237  //this is actually really bad. If it's empty that's okay
238  return StatusCode::FAILURE;
239  }
240 
241  ATH_MSG_DEBUG("Successfully retrieved primary vertex container");
242  ATH_MSG_DEBUG("Container holds " << vxCont->size() << " vertices");
243 
244  for(const auto *const vx : *vxCont) {
245  ATH_MSG_VERBOSE( "Testing vertex " << vx->index() );
246  if(vx->vertexType()==VxType::PriVtx)
247  {constits.pv = vx; break;}
248  }
249  if(!constits.pv) {
250  ATH_MSG_DEBUG("Failed to find primary vertex! Reject all tracks.");
251  } else {
252  ATH_MSG_VERBOSE("Primary vertex has z = " << constits.pv->z());
253  }
254 
255  constits.trkCont=nullptr;
256  ATH_MSG_DEBUG("Retrieving Track collection " << m_trkcollKey.key());
258  if (!trCont.isValid()) {
259  ATH_MSG_WARNING("Unable to retrieve track particle container");
260  return StatusCode::FAILURE;
261  }
262  constits.trkCont=trCont.cptr();
263 
264  if(m_pflow){
265  if(!m_fecollKey.key().empty()){
266  ATH_MSG_DEBUG("Retrieving FlowElement collection " << m_fecollKey.key());
267  constits.feCont = nullptr;
269  if (!feCont.isValid()) {
270  ATH_MSG_ERROR("Unable to retrieve FlowElement container "<< m_fecollKey.key());
271  return StatusCode::FAILURE;
272  }
273  constits.feCont=feCont.cptr();
274  }
275  else{
276  ATH_MSG_DEBUG("Retrieving PFlow collection " << m_pfcollKey.key());
277  constits.pfoCont = nullptr;
279  if (!pfCont.isValid()) {
280  ATH_MSG_WARNING("Unable to PFlow object container");
281  return StatusCode::FAILURE;
282  }
283  constits.pfoCont=pfCont.cptr();
284  }
285  }//pflow
286  }//retrieve track/pfo containers
287 
288  return StatusCode::SUCCESS;
289  }
290 
292  // Protected methods:
294 
296  const xAOD::IParticleContainer* hardObjs) const
297  {
298  ConstitHolder constits;
299 
300  if (retrieveConstituents(constits).isFailure()) {
301  ATH_MSG_DEBUG("Unable to retrieve constituent containers");
302  return StatusCode::FAILURE;
303  }
304 
305  std::vector<const IParticle*> constlist;
306  constlist.reserve(20);
307  std::vector<const IParticle*> hardObjs_tmp;
308  for(const auto *const obj : *hardObjs) {
309  hardObjs_tmp.push_back(obj);
310  }
311  std::sort(hardObjs_tmp.begin(),hardObjs_tmp.end(),greaterPt);
312 
313  for(const auto& obj : hardObjs_tmp) {
314  if(obj->pt()<4e3 && obj->type()!=xAOD::Type::Muon) continue;
315  constlist.clear();
316  ATH_MSG_VERBOSE( "Object type, pt, eta, phi = " << obj->type() << ", " << obj->pt() << ", " << obj->eta() << "," << obj->phi() );
317  if(m_pflow){
318  if(!m_fecollKey.key().empty()){
319  if(!m_useTracks){
320  ATH_MSG_ERROR("Attempting to build FlowElement MET without a track collection.");
321  return StatusCode::FAILURE;
322  }
323  std::map<const IParticle*, MissingETBase::Types::constvec_t> momentumOverride;
324  ATH_CHECK( this->extractFE(obj, constlist, constits, momentumOverride) );
325  MissingETComposition::insert(metMap, obj, constlist, momentumOverride);
326  }
327  else{
328  // Old PFO EDM
329  if(!m_useTracks){
330  ATH_MSG_DEBUG("Attempting to build PFlow without a track collection.");
331  return StatusCode::FAILURE;
332  }else{
333  std::map<const IParticle*,MissingETBase::Types::constvec_t> momentumOverride;
334  ATH_CHECK( this->extractPFO(obj,constlist,constits,momentumOverride) );
335  MissingETComposition::insert(metMap,obj,constlist,momentumOverride);
336  }
337  }
338  } else {
339  std::vector<const IParticle*> tclist;
340  tclist.reserve(20);
341  ATH_CHECK( this->extractTopoClusters(obj,tclist,constits) );
342  if(m_useModifiedClus) {
343  for(const auto& cl : tclist) {
344  // use index-parallelism to identify shallow copied constituents
345  constlist.push_back((*constits.tcCont)[cl->index()]);
346  }
347  } else {
348  constlist = tclist;
349  }
350  if(m_useTracks) ATH_CHECK( this->extractTracks(obj,constlist,constits) );
351  MissingETComposition::insert(metMap,obj,constlist);
352  }
353  }
354  return StatusCode::SUCCESS;
355  }
356 
357  // Accept Track
360  {
361 
362  if (!vx) return false;//in events with no pv, we will just reject all tracks, and therefore build only the calo MET
363  return static_cast<bool> (m_trkseltool->accept( *trk, vx ));
364  }
365 
366 
368  {
369 
370  if( (fabs(trk->eta())<1.5 && trk->pt()>m_cenTrackPtThr) ||
371  (fabs(trk->eta())>=1.5 && trk->pt()>m_forTrackPtThr) ) {
372 
373  // Get relative error on qoverp
374  float Rerr = Amg::error(trk->definingParametersCovMatrix(),4)/fabs(trk->qOverP());
375  ATH_MSG_VERBOSE( "Track momentum error (%): " << Rerr*100 );
376 
377  // first compute track and calo isolation variables
378  float ptcone20 = 0., isolfrac = 0., etcone10 = 0., EoverP = 0.;
379  // ptcone
380  TrackIsolation trkIsoResult;
381  std::vector<Iso::IsolationType> trkIsoCones;
382  trkIsoCones.push_back(xAOD::Iso::IsolationType::ptcone20);
383  xAOD::TrackCorrection trkIsoCorr;
385  m_trkIsolationTool->trackIsolation(trkIsoResult,
386  *trk,
387  trkIsoCones,
388  trkIsoCorr);
389  ptcone20 = !trkIsoResult.ptcones.empty() ? trkIsoResult.ptcones[0] : 0;
390  isolfrac = ptcone20/trk->pt();
391  // etcone
392  CaloIsolation caloIsoResult;
393  std::vector<Iso::IsolationType> caloIsoCones;
394  // We can't actually configure the tool to give etcone10, so instead we have to compute etcone20,
395  // applying the core cone correction.
396  // Then, we retrieve the correction value, which is etcone10, rather than the isolation value
397  caloIsoCones.push_back(xAOD::Iso::IsolationType::etcone20);
398  xAOD::CaloCorrection caloIsoCorr_coreCone;
399  caloIsoCorr_coreCone.calobitset.set(xAOD::Iso::IsolationCaloCorrection::coreCone); // this is etcone10
400  m_caloIsolationTool->caloTopoClusterIsolation(caloIsoResult,
401  *trk,
402  caloIsoCones,
403  caloIsoCorr_coreCone);
404  if(!caloIsoResult.etcones.empty()) {
405  // retrieve the correction value for the core cone
407  } else {
408  ATH_MSG_WARNING("isGoodEoverP: Failed to retrieve the isolation core correction (etcone10)! Setting etcone10=0");
409  etcone10 = 0.;
410  }
411  EoverP = etcone10/trk->pt();
413  ATH_MSG_VERBOSE( "Track isolation fraction: " << isolfrac );
414  ATH_MSG_VERBOSE( "Track E/P = " << EoverP );
415 
416  if(isolfrac<0.1) {
417  // isolated track cuts
418  if(Rerr>0.4) return false;
419  else if (EoverP<0.65 && ((EoverP>0.1 && Rerr>0.05) || Rerr>0.1)) return false;
420  } else {
421  // non-isolated track cuts
422  float trkptsum = ptcone20+trk->pt();
423  if(etcone10/trkptsum<0.6 && trk->pt()/trkptsum>0.6) return false;
424  }
425  }
426  return true;
427  }
428 
429 }
met::METAssociator::m_forcoll
std::string m_forcoll
Definition: METAssociator.h:112
met::METAssociator::greaterPt
static bool greaterPt(const xAOD::IParticle *part1, const xAOD::IParticle *part2)
Definition: METAssociator.h:144
xAOD::TrackParticle_v1::pt
virtual double pt() const override final
The transverse momentum ( ) of the particle.
Definition: TrackParticle_v1.cxx:73
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
met::METAssociator::m_neutralPFOLinksKey
std::string m_neutralPFOLinksKey
Definition: METAssociator.h:91
met::METAssociator::m_useModifiedClus
bool m_useModifiedClus
Definition: METAssociator.h:107
met::METAssociator::m_foreta
double m_foreta
Definition: METAssociator.h:113
met::METAssociator::extractFE
virtual StatusCode extractFE(const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &felist, const met::METAssociator::ConstitHolder &constits, std::map< const xAOD::IParticle *, MissingETBase::Types::constvec_t > &momenta) const =0
xAOD::TrackCorrection
Definition: IsolationCommon.h:18
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
xAOD::Iso::coreEnergy
@ coreEnergy
energy stored for this correction
Definition: Event/xAOD/xAODPrimitives/xAODPrimitives/IsolationCorrection.h:93
SG::ReadHandle::cptr
const_pointer_type cptr()
Dereference the pointer.
met::METAssociator::m_useFELinks
bool m_useFELinks
Definition: METAssociator.h:94
METAssociator.h
ConstDataVector.h
DataVector adapter that acts like it holds const pointers.
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
xAODP4Helpers.h
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
xAOD::TrackParticle_v1::eta
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
Definition: TrackParticle_v1.cxx:77
xAOD::Iso::coreTrackPtr
@ coreTrackPtr
tracks pointer
Definition: Event/xAOD/xAODPrimitives/xAODPrimitives/IsolationCorrection.h:66
EventPrimitivesHelpers.h
met::METAssociator::m_forTrackPtThr
double m_forTrackPtThr
Definition: METAssociator.h:116
met::METAssociator::retrieveConstituents
StatusCode retrieveConstituents(met::METAssociator::ConstitHolder &constits) const
Definition: METAssociator.cxx:161
met::METAssociator::m_trkcollKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trkcollKey
Definition: METAssociator.h:98
xAOD::TrackCorrection::trackbitset
Iso::IsolationTrackCorrectionBitset trackbitset
Definition: IsolationCommon.h:19
met::METAssociator::m_trkseltool
ToolHandle< InDet::IInDetTrackSelectionTool > m_trkseltool
Definition: METAssociator.h:85
test_pyathena.pt
pt
Definition: test_pyathena.py:11
xAOD::Iso::ptcone20
@ ptcone20
Track isolation.
Definition: IsolationType.h:40
met::METAssociator::m_clcollKey
SG::ReadHandleKey< xAOD::IParticleContainer > m_clcollKey
Definition: METAssociator.h:97
met::METAssociator::ConstitHolder::pfoCont
const xAOD::PFOContainer * pfoCont
Definition: METAssociator.h:66
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
met::METAssociator::ConstitHolder::feCont
const xAOD::FlowElementContainer * feCont
Definition: METAssociator.h:67
met::METAssociator::m_pfcollKey
SG::ReadHandleKey< xAOD::PFOContainer > m_pfcollKey
Definition: METAssociator.h:99
met::METAssociator::m_chargedPFOLinksKey
std::string m_chargedPFOLinksKey
Definition: METAssociator.h:92
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
met::METAssociator::m_useRapidity
bool m_useRapidity
Definition: METAssociator.h:105
met::METAssociator::extractTracks
virtual StatusCode extractTracks(const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &constlist, const met::METAssociator::ConstitHolder &constits) const =0
met::METAssociator::m_fecollKey
SG::ReadHandleKey< xAOD::FlowElementContainer > m_fecollKey
Definition: METAssociator.h:100
xAOD::MissingETAssociationMap_v1
Definition: MissingETAssociationMap_v1.h:29
ICaloTopoClusterIsolationTool.h
met::METAssociator::METAssociator
METAssociator()
met::METAssociator::m_useTracks
bool m_useTracks
Definition: METAssociator.h:104
met::METAssociator::m_pvcollKey
SG::ReadHandleKey< xAOD::VertexContainer > m_pvcollKey
Definition: METAssociator.h:96
met::METAssociator::m_cenTrackPtThr
double m_cenTrackPtThr
Definition: METAssociator.h:115
met::METAssociator::ConstitHolder::pv
const xAOD::Vertex * pv
Definition: METAssociator.h:68
xAOD::MissingETComposition::insert
static bool insert(MissingETComponentMap *pMap, const MissingET *pMET, const IParticle *pPart, MissingETBase::Types::weight_t weight=MissingETBase::Types::weight_t())
Insert contributing signal or physics object by pointer, with optional kinematic weight object.
Definition: Event/xAOD/xAODMissingET/Root/MissingETComposition.cxx:42
met::METAssociator::ConstitHolder::tcCont
const xAOD::IParticleContainer * tcCont
Definition: METAssociator.h:65
xAOD::CaloIsolation
Definition: IsolationCommon.h:22
met
Definition: IMETSignificance.h:24
met::METAssociator::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: METAssociator.cxx:85
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
met::METAssociator::m_trkIsolationTool
ToolHandle< xAOD::ITrackIsolationTool > m_trkIsolationTool
Definition: METAssociator.h:86
CheckAppliedSFs.e3
e3
Definition: CheckAppliedSFs.py:264
xAOD::Iso::etcone20
@ etcone20
Calorimeter isolation.
Definition: IsolationType.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
xAOD::CaloIsolation::coreCorrections
std::map< Iso::IsolationCaloCorrection, std::map< Iso::IsolationCorrectionParameter, float > > coreCorrections
Definition: IsolationCommon.h:26
xAOD::VxType::PriVtx
@ PriVtx
Primary vertex.
Definition: TrackingPrimitives.h:571
met::METAssociator::m_neutralFELinksKey
std::string m_neutralFELinksKey
Definition: METAssociator.h:89
met::METAssociator::~METAssociator
virtual ~METAssociator()
met::METAssociator::extractPFO
virtual StatusCode extractPFO(const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &pfolist, const met::METAssociator::ConstitHolder &constits, std::map< const xAOD::IParticle *, MissingETBase::Types::constvec_t > &momenta) const =0
met::METAssociator::m_chargedFELinksKey
std::string m_chargedFELinksKey
Definition: METAssociator.h:90
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
xAOD::Vertex_v1::z
float z() const
Returns the z position.
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
Vertex.h
IInDetTrackSelectionTool.h
SG::ReadHandle::isValid
virtual bool isValid() override final
Can the handle be successfully dereferenced?
xAOD::TrackIsolation
Definition: IsolationCommon.h:33
xAOD::MissingETContainer_v1
Container for xAOD::MissingET_v1 objects.
Definition: MissingETContainer_v1.h:21
xAOD::TrackParticle_v1::qOverP
float qOverP() const
Returns the parameter.
xAOD::TrackParticle_v1::definingParametersCovMatrix
const ParametersCovMatrix_t definingParametersCovMatrix() const
Returns the 5x5 symmetric matrix containing the defining parameters covariance matrix.
Definition: TrackParticle_v1.cxx:246
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
Amg::error
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
Definition: EventPrimitivesHelpers.h:40
xAOD::CaloIsolation::etcones
std::vector< float > etcones
Definition: IsolationCommon.h:30
xAOD::Iso::coreCone
@ coreCone
core energy (in dR<0.1).
Definition: Event/xAOD/xAODPrimitives/xAODPrimitives/IsolationCorrection.h:29
met::METAssociator::isGoodEoverP
bool isGoodEoverP(const xAOD::TrackParticle *trk) const
Definition: METAssociator.cxx:367
met::METAssociator::acceptTrack
bool acceptTrack(const xAOD::TrackParticle *trk, const xAOD::Vertex *pv) const
Definition: METAssociator.cxx:359
xAOD::TrackIsolation::ptcones
std::vector< float > ptcones
Definition: IsolationCommon.h:36
Muon
struct TBPatternUnitContext Muon
met::METAssociator::fillAssocMap
virtual StatusCode fillAssocMap(xAOD::MissingETAssociationMap *metMap, const xAOD::IParticleContainer *hardObjs) const
Definition: METAssociator.cxx:295
TrackParticle.h
ITrackIsolationTool.h
met::METAssociator::executeTool
virtual StatusCode executeTool(xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap) const =0
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
met::METAssociator::m_hybridContKey
SG::ReadHandleKey< xAOD::IParticleContainer > m_hybridContKey
Definition: METAssociator.h:101
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
xAOD::CaloCorrection
Definition: IsolationCommon.h:14
met::METAssociator::m_pflow
bool m_pflow
Definition: METAssociator.h:103
met::METAssociator::m_usePFOLinks
bool m_usePFOLinks
Definition: METAssociator.h:93
met::METAssociator::execute
virtual StatusCode execute(xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap) const override
Definition: METAssociator.cxx:141
met::METAssociator::m_skipconst
bool m_skipconst
Definition: METAssociator.h:111
MissingETAssociationMap.h
AllowedVariables::EoverP
@ EoverP
Definition: AsgElectronSelectorTool.cxx:56
met::METAssociator::ConstitHolder::trkCont
const xAOD::TrackParticleContainer * trkCont
Definition: METAssociator.h:63
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
python.PyAthena.obj
obj
Definition: PyAthena.py:132
met::METAssociator::m_cleanChargedPFO
bool m_cleanChargedPFO
Definition: METAssociator.h:109
python.Dumpers.etcone10
int etcone10
Definition: Dumpers.py:41
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
MissingETComposition.h
MissingETContainer.h
met::METAssociator::extractTopoClusters
virtual StatusCode extractTopoClusters(const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &tclist, const met::METAssociator::ConstitHolder &constits) const =0
xAOD::CaloCorrection::calobitset
Iso::IsolationCaloCorrectionBitset calobitset
Definition: IsolationCommon.h:15
met::METAssociator::ConstitHolder
Definition: METAssociator.h:62
met::METAssociator::m_caloIsolationTool
ToolHandle< xAOD::ICaloTopoClusterIsolationTool > m_caloIsolationTool
Definition: METAssociator.h:87