ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
met::METTrackFilterTool Class Reference

#include <METTrackFilterTool.h>

Inheritance diagram for met::METTrackFilterTool:
Collaboration diagram for met::METTrackFilterTool:

Public Member Functions

 METTrackFilterTool (const std::string &name)
 
 ~METTrackFilterTool ()
 
StatusCode initialize ()
 Dummy implementation of the initialisation function. More...
 
StatusCode finalize ()
 
virtual StatusCode execute (xAOD::MissingET *metTerm, xAOD::MissingETComponentMap *metMap) const
 
virtual void print () const
 Print the state of the tool. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

StatusCode executeTool (xAOD::MissingET *metTerm, xAOD::MissingETComponentMap *metMap) const
 
bool isGoodEoverP (const xAOD::TrackParticle *trk, const std::vector< const xAOD::TrackParticle * > &trkList, const xAOD::CaloClusterContainer *clusters) const
 
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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. More...
 

Protected Attributes

std::string m_output_met_key
 
bool m_useRapidity
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

 METTrackFilterTool ()
 
StatusCode buildTrackMET (xAOD::MissingETComponentMap *const metMap, xAOD::MissingET *const metTerm, const xAOD::Vertex *const pv, const std::vector< const xAOD::Electron * > &selElectrons, const std::vector< const xAOD::Muon * > &selMuons, const std::vector< const xAOD::TrackParticle * > &softTracks) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Static Private Member Functions

static bool isElTrack (const xAOD::TrackParticle &trk, const std::vector< const xAOD::Electron * > &electrons, size_t &el_index)
 
static bool isMuTrack (const xAOD::TrackParticle &trk, const std::vector< const xAOD::Muon * > &muons)
 
static void selectElectrons (const xAOD::ElectronContainer &elCont, std::vector< const xAOD::Electron * > &electrons)
 
static void selectMuons (const xAOD::MuonContainer &muCont, std::vector< const xAOD::Muon * > &muons)
 

Private Attributes

ToolHandle< InDet::IInDetTrackSelectionToolm_trkseltool {this,"TrackSelectorTool","",""}
 
ToolHandle< CP::ITrackVertexAssociationToolm_trkToVertexTool {this,"TrackVxAssocTool","",""}
 
ToolHandle< xAOD::ITrackIsolationToolm_trkIsolationTool {this,"TrackIsolationTool","",""}
 
ToolHandle< xAOD::ICaloTopoClusterIsolationToolm_caloIsolationTool {this,"CaloIsolationTool","",""}
 
bool m_trk_doPVsel
 
SG::ReadHandleKey< xAOD::ElectronContainerm_el_inputkey {this,"InputElectronKey","Electrons",""}
 
SG::ReadHandleKey< xAOD::MuonContainerm_mu_inputkey {this,"InputMuonKey","Muons",""}
 
SG::ReadHandleKey< xAOD::VertexContainerm_pv_inputkey {this,"InputPVKey","PrimaryVertices",""}
 
SG::ReadHandleKey< xAOD::CaloClusterContainerm_cl_inputkey {this,"InputClusterKey","CaloCalTopoClusters",""}
 
bool m_doVxSep
 
bool m_doLepRecovery
 
bool m_useIsolationTools
 
bool m_trk_doEoverPsel
 
double m_cenTrackPtThr
 
double m_forTrackPtThr
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 47 of file METTrackFilterTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ METTrackFilterTool() [1/2]

met::METTrackFilterTool::METTrackFilterTool ( const std::string &  name)

Definition at line 55 of file METTrackFilterTool.cxx.

55  :
56  AsgTool(name),
58  {
59  declareProperty( "DoPVSel", m_trk_doPVsel = true );
60  declareProperty( "DoEoverPSel", m_trk_doEoverPsel = false );
61  declareProperty( "DoVxSep", m_doVxSep = false );
62  declareProperty( "DoLepRecovery", m_doLepRecovery=false );
63  declareProperty( "UseIsolationTools", m_useIsolationTools=true );
64  declareProperty( "CentralTrackPtThr", m_cenTrackPtThr = 200e+3 );
65  declareProperty( "ForwardTrackPtThr", m_forTrackPtThr = 120e+3 );
66  }

◆ ~METTrackFilterTool()

met::METTrackFilterTool::~METTrackFilterTool ( )
default

◆ METTrackFilterTool() [2/2]

met::METTrackFilterTool::METTrackFilterTool ( )
private

Member Function Documentation

◆ buildTrackMET()

StatusCode met::METTrackFilterTool::buildTrackMET ( xAOD::MissingETComponentMap *const  metMap,
xAOD::MissingET *const  metTerm,
const xAOD::Vertex *const  pv,
const std::vector< const xAOD::Electron * > &  selElectrons,
const std::vector< const xAOD::Muon * > &  selMuons,
const std::vector< const xAOD::TrackParticle * > &  softTracks 
) const
private

Definition at line 310 of file METTrackFilterTool.cxx.

315  {
316 
317  vector<const IParticle*> dummyList;
318  MissingETBase::Types::weight_t unitWeight(1.,1.,1.);
319 
320  const MissingETComponent* metComp = MissingETComposition::getComponent(metMap,metTerm);
321  if(!metComp) {
322  ATH_MSG_WARNING("Failed to find MissingETComponent for MET term " << metTerm->name());
323  return StatusCode::FAILURE;
324  }
325  // Loop over the tracks and select only good ones
326  for( const auto& trk : softTracks ) {
327  // Could/should use common implementation of addToMET here -- derive builder and refiner from a common base tool?
328  bool passFilters = true;
330  if (!tcCont.isValid()) {
331  ATH_MSG_WARNING("Unable to retrieve topocluster container " << m_cl_inputkey << " for overlap removal");
332  }
333  if(m_trk_doEoverPsel && !isGoodEoverP(trk,softTracks,tcCont.cptr())) passFilters = false;
334  if(m_trk_doPVsel) {
335  if(!(m_trkseltool->accept( *trk, pv ))) passFilters=false;
336  } else {
337  if(!(m_trkseltool->accept( trk ))) passFilters=false;
338  }
339 
340  bool isMuon=false;
341  bool isElectron=false;
342  size_t el_index=-1;
343 
344  if(m_doLepRecovery) {
345  isMuon=isMuTrack(*trk,selMuons);
346  isElectron=isElTrack(*trk,selElectrons, el_index);
347  }
348 
349  bool isLepton=(isMuon||isElectron);
350 
351  if(passFilters || (m_doLepRecovery && isLepton)) {
352  if(!passFilters && isElectron && m_doLepRecovery) {
353  //electron track fails, replace with electron pt
354  const Electron* el = selElectrons[el_index];
355 
356  metTerm->add(el->pt()*cos(trk->phi()),
357  el->pt()*sin(trk->phi()),
358  el->pt());
359  MissingETComposition::insert(metMap,metTerm,el,dummyList,unitWeight);
360  } else {
361  metTerm->add(trk->pt()*cos(trk->phi()),trk->pt()*sin(trk->phi()),trk->pt());
362  MissingETComposition::insert(metMap,metTerm,trk,dummyList,unitWeight);
363  ATH_MSG_VERBOSE("METTerm " << metTerm->name() <<" sumpt: " << metTerm->sumet());
364  }
365  }
366  }
367  return StatusCode::SUCCESS;
368  }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

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

95 { return m_detStore; }

◆ evtStore() [1/2]

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.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode met::METRefinerTool::execute ( xAOD::MissingET metTerm,
xAOD::MissingETComponentMap metMap 
) const
virtualinherited

Implements IMETToolBase.

Definition at line 59 of file METRefinerTool.cxx.

60  {
61  ATH_MSG_DEBUG ("In execute: " << name() << "...");
62 
63  if( metTerm==nullptr ) {
64  ATH_MSG_ERROR("Invalid input MissingET pointer provided!");
65  return StatusCode::FAILURE;
66  }
67  if( metMap==nullptr ) {
68  ATH_MSG_ERROR("Invalid input MissingETComponentMap pointer provided!");
69  return StatusCode::FAILURE;
70  }
71 
72  metTerm->setName(m_output_met_key);
73  return this->executeTool(metTerm,metMap);
74  }

◆ executeTool()

StatusCode met::METTrackFilterTool::executeTool ( xAOD::MissingET metTerm,
xAOD::MissingETComponentMap metMap 
) const
protectedvirtual

Implements met::METRefinerTool.

Definition at line 198 of file METTrackFilterTool.cxx.

199  {
200 
201  ATH_MSG_DEBUG ("In execute: " << name() << "...");
202 
203  std::vector<const xAOD::Electron*> selElectrons;
204  std::vector<const xAOD::Muon*> selMuons;
205 
206  if(m_doLepRecovery)
207  {
209  if (!elCont.isValid()) {
210  ATH_MSG_WARNING("Unable to retrieve electron container " << m_el_inputkey.key());
211  return StatusCode::SUCCESS;
212  } else {
213  selectElectrons(*elCont, selElectrons);
214  }
216  if (!muCont.isValid()) {
217  ATH_MSG_WARNING("Unable to retrieve muon container " << m_mu_inputkey.key());
218  return StatusCode::SUCCESS;
219  } else {
220  selectMuons(*muCont, selMuons);
221  }
222 
223  }
224 
226  if(iter==metMap->end()) {
227  ATH_MSG_WARNING("Could not find current METComponent in MET Map!");
228  return StatusCode::FAILURE;
229  }
230  MissingETComponent* newComp = *iter;
233 
234  // Extract the component corresponding to the Track SoftTerms
237  metTerm->setSource(src_ST_refTrk);
238 
240  if(citer==metMap->end()) {
241  ATH_MSG_WARNING("Could not find Soft ID Track component in MET Map!");
242  return StatusCode::FAILURE;
243  }
244  vector<const TrackParticle*> softTracks;
245  softTracks.reserve((*citer)->size());
246  for(const auto& obj : (*citer)->objects()) {
247  const TrackParticle* trk = dynamic_cast<const TrackParticle*>(obj);
248  if(trk) {softTracks.push_back(trk);}
249  else {ATH_MSG_WARNING("Track filter given an object of type " << obj->type());}
250  }
251 
252  const Vertex* pv=nullptr;
254  if (!vxCont.isValid()) {
255  ATH_MSG_WARNING("Unable to retrieve input primary vertex container");
256  }
257  vector<const Vertex*> vertices;
258 
259  if(m_trk_doPVsel) {
260  if(!vxCont->empty()) {
261  vertices.reserve(vxCont->size());
262  for(const auto *const vx : *vxCont) {
263  if(vx->vertexType()==VxType::PriVtx) {pv = vx;}
264  vertices.push_back(vx);
265  }
266  } else{
267  ATH_MSG_WARNING("Event has no primary vertices");
268  return StatusCode::FAILURE;
269  }
270  if(pv) { ATH_MSG_DEBUG("Main primary vertex has z = " << pv->z()); }
271  else {
272  ATH_MSG_DEBUG("Did not find a primary vertex in the container. Reject all tracks.");
273  return StatusCode::SUCCESS;
274  }
275  }
276 
277  if(m_doVxSep) {
278  xAOD::TrackVertexAssociationMap trktovxmap=m_trkToVertexTool->getUniqueMatchMap(softTracks, vertices);
279 
280  // initialize metContainer and metTerm
281  MissingETContainer* metCont = static_cast<MissingETContainer*>( metTerm->container() );
282 
283  bool firstVx(true);
284  std::string basename = metTerm->name()+"_vx";
285  for(const auto *const vx : *vxCont){
286  if(vx->vertexType()==VxType::PriVtx || vx->vertexType()==VxType::PileUp) {
287  MissingET *met_vx = metTerm;
288  if(!firstVx) {
289  met_vx = new MissingET(0. ,0. ,0. );
290  metCont->push_back(met_vx);
291  met_vx->setSource(metTerm->source());
292  MissingETComposition::add(metMap, met_vx);
293  }
294  met_vx->setName(basename+std::to_string(vx->index()));
295  ATH_MSG_VERBOSE("Building " << met_vx->name());
296 
297  ATH_MSG_VERBOSE("Number of tracks associated to vertex " << vx->index() << ": "<< (trktovxmap[vx]).size());
298 
299  ATH_CHECK( buildTrackMET(metMap,met_vx,vx,selElectrons,selMuons,trktovxmap[vx]) );
300  firstVx = false;
301  }
302  }
303  } else {
304  ATH_CHECK( buildTrackMET(metMap,metTerm,pv,selElectrons,selMuons,softTracks) );
305  }
306 
307  return StatusCode::SUCCESS;
308  }

◆ 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

◆ finalize()

StatusCode met::METTrackFilterTool::finalize ( )
virtual

Reimplemented from met::METRefinerTool.

Definition at line 96 of file METTrackFilterTool.cxx.

97  {
98  ATH_MSG_INFO ("Finalizing " << name() << "...");
99 
100  return StatusCode::SUCCESS;
101  }

◆ 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::TEvent 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::TEvent, 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  }

◆ 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::TEvent 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::TEvent, 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  }

◆ getProperty()

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

Get one of the tool's properties.

◆ initialize()

StatusCode met::METTrackFilterTool::initialize ( )
virtual

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 met::METRefinerTool.

Definition at line 75 of file METTrackFilterTool.cxx.

76  {
78  ATH_MSG_INFO ("Initializing " << name() << "...");
79  ATH_CHECK(m_trkseltool.retrieve());
80  ATH_CHECK(m_trkToVertexTool.retrieve());
81  ATH_CHECK(m_trkIsolationTool.retrieve());
82  ATH_CHECK(m_caloIsolationTool.retrieve());
83 
84  if(m_doVxSep) ATH_MSG_INFO("Building TrackMET for each vertex");
85 
87  ATH_CHECK( m_pv_inputkey.initialize());
88  if(m_doLepRecovery){
90  ATH_CHECK( m_mu_inputkey.initialize());
91  }
92 
93  return StatusCode::SUCCESS;
94  }

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

◆ isElTrack()

bool met::METTrackFilterTool::isElTrack ( const xAOD::TrackParticle trk,
const std::vector< const xAOD::Electron * > &  electrons,
size_t &  el_index 
)
staticprivate

Definition at line 370 of file METTrackFilterTool.cxx.

371  {
372  for(unsigned int eli=0; eli<electrons.size(); ++eli) {
373  const xAOD::Electron *el=electrons.at(eli);
374  if(&trk==xAOD::EgammaHelpers::getOriginalTrackParticleFromGSF(el->trackParticle())) {
375  el_index=eli;
376  return true;
377  }
378  }
379  return false;
380  }

◆ isGoodEoverP()

bool met::METTrackFilterTool::isGoodEoverP ( const xAOD::TrackParticle trk,
const std::vector< const xAOD::TrackParticle * > &  trkList,
const xAOD::CaloClusterContainer clusters 
) const
protected

Definition at line 117 of file METTrackFilterTool.cxx.

119  {
120 
121  if( (fabs(trk->eta())<1.5 && trk->pt()>m_cenTrackPtThr) ||
122  (fabs(trk->eta())>=1.5 && trk->pt()>m_forTrackPtThr) ) {
123 
124  // Get relative error on qoverp
125  float Rerr = Amg::error(trk->definingParametersCovMatrix(),4)/fabs(trk->qOverP());
126  ATH_MSG_VERBOSE( "Track momentum error (%): " << Rerr*100 );
127 
128  // first compute track and calo isolation variables
129  float ptcone20 = 0., isolfrac = 0., etcone10 = 0., EoverP = 0.;
130  if(!m_useIsolationTools) {
131  ATH_MSG_VERBOSE( "Using OLD track isolation setup");
132  // ptcone
133  for(const auto& obj : trkList) {
134  if(obj->type() == xAOD::Type::TrackParticle) {
135  const TrackParticle* testtrk = static_cast<const TrackParticle*>(obj);
136  if(testtrk==trk) continue;
137  if (xAOD::P4Helpers::isInDeltaR(*testtrk,*trk,0.2,m_useRapidity)) {
138  ptcone20 += testtrk->pt();
139  }
140  }
141  else {ATH_MSG_WARNING("METTrackFilterTool::isGoodEoveP given an object of type " << obj->type());}
142  }
143  isolfrac = ptcone20 / trk->pt();
144  // etcone
145  for(const auto *const clus : *clusters) {
146  if (xAOD::P4Helpers::isInDeltaR(*clus,*trk,0.1,m_useRapidity)) {
147  etcone10 += clus->pt();
148  }
149  }
150  EoverP = etcone10/trk->pt();
151  }
152  else {
153  ATH_MSG_VERBOSE( "Using NEW track isolation setup");
154  // ptcone
155  TrackIsolation trkIsoResult;
156  std::vector<Iso::IsolationType> trkIsoCones;
157  trkIsoCones.push_back(xAOD::Iso::IsolationType::ptcone20);
158  xAOD::TrackCorrection trkIsoCorr;
160  m_trkIsolationTool->trackIsolation(trkIsoResult,
161  *trk,
162  trkIsoCones,
163  trkIsoCorr);
164  ptcone20 = !trkIsoResult.ptcones.empty() ? trkIsoResult.ptcones[0] : 0;
165  isolfrac = ptcone20/trk->pt();
166  // etcone
167  CaloIsolation caloIsoResult_coreCone;
168  std::vector<Iso::IsolationType> caloIsoCones_coreCone;
169  caloIsoCones_coreCone.push_back(xAOD::Iso::IsolationType::etcone20);
170  xAOD::CaloCorrection caloIsoCorr_coreCone;
171  caloIsoCorr_coreCone.calobitset.set(xAOD::Iso::IsolationCaloCorrection::coreCone);
172  m_caloIsolationTool->caloTopoClusterIsolation(caloIsoResult_coreCone,
173  *trk,
174  caloIsoCones_coreCone,
175  caloIsoCorr_coreCone);
176  etcone10 = !caloIsoResult_coreCone.etcones.empty() ?
178  EoverP = etcone10/trk->pt();
180  }
181  ATH_MSG_VERBOSE( "Track isolation fraction: " << isolfrac );
182  ATH_MSG_VERBOSE( "Track E/P = " << EoverP );
183 
184  if(isolfrac<0.1) {
185  // isolated track cuts
186  if(Rerr>0.4) return false;
187  else if (EoverP<0.65 && ((EoverP>0.1 && Rerr>0.05) || Rerr>0.1)) return false;
188  } else {
189  // non-isolated track cuts
190  float trkptsum = ptcone20+trk->pt();
191  if(etcone10/trkptsum<0.6 && trk->pt()/trkptsum>0.6) return false;
192  }
193  }
194 
195  return true;
196  }

◆ isMuTrack()

bool met::METTrackFilterTool::isMuTrack ( const xAOD::TrackParticle trk,
const std::vector< const xAOD::Muon * > &  muons 
)
staticprivate

Definition at line 382 of file METTrackFilterTool.cxx.

383  {
384  for(const auto *muon : muons) {
385  // if(((muon_list.at(mui))->trackParticle(xAOD::Muon::InnerDetectorTrackParticle))->pt()==trk->pt())
386  if((muon->trackParticle(xAOD::Muon::InnerDetectorTrackParticle))==&trk) {
387  return true;
388  }
389  }
390  return false;
391  }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

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

◆ 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

◆ 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 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ selectElectrons()

void met::METTrackFilterTool::selectElectrons ( const xAOD::ElectronContainer elCont,
std::vector< const xAOD::Electron * > &  electrons 
)
staticprivate

Definition at line 393 of file METTrackFilterTool.cxx.

394  {
395  for(const auto *el : elCont) {
396  if( (el)->author()&0x1 //electron author
397  && (el)->pt()>10000 // electron pt
398  && fabs(el->eta())<2.47 // electron eta
399  ) {
400  if((fabs((el)->eta())<=1.37) || (fabs((el)->eta())>=1.52) ) {
401  // crack region
402  electrons.push_back(el);
403  }
404  }
405  }
406  }

◆ selectMuons()

void met::METTrackFilterTool::selectMuons ( const xAOD::MuonContainer muCont,
std::vector< const xAOD::Muon * > &  muons 
)
staticprivate

Definition at line 409 of file METTrackFilterTool.cxx.

410  {
411  for(const auto *mu : muCont) {
412  if( (mu->muonType()==xAOD::Muon::Combined)
413  && (mu->pt()>6000.)
414  && fabs(mu->eta())<2.5
415  ) {
416  muons.push_back(mu);
417  }
418  }
419  }

◆ 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 DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ 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 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) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_caloIsolationTool

ToolHandle<xAOD::ICaloTopoClusterIsolationTool> met::METTrackFilterTool::m_caloIsolationTool {this,"CaloIsolationTool","",""}
private

Definition at line 96 of file METTrackFilterTool.h.

◆ m_cenTrackPtThr

double met::METTrackFilterTool::m_cenTrackPtThr
private

Definition at line 114 of file METTrackFilterTool.h.

◆ m_cl_inputkey

SG::ReadHandleKey<xAOD::CaloClusterContainer> met::METTrackFilterTool::m_cl_inputkey {this,"InputClusterKey","CaloCalTopoClusters",""}
private

Definition at line 106 of file METTrackFilterTool.h.

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_doLepRecovery

bool met::METTrackFilterTool::m_doLepRecovery
private

Definition at line 109 of file METTrackFilterTool.h.

◆ m_doVxSep

bool met::METTrackFilterTool::m_doVxSep
private

Definition at line 108 of file METTrackFilterTool.h.

◆ m_el_inputkey

SG::ReadHandleKey<xAOD::ElectronContainer> met::METTrackFilterTool::m_el_inputkey {this,"InputElectronKey","Electrons",""}
private

Definition at line 103 of file METTrackFilterTool.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_forTrackPtThr

double met::METTrackFilterTool::m_forTrackPtThr
private

Definition at line 115 of file METTrackFilterTool.h.

◆ m_mu_inputkey

SG::ReadHandleKey<xAOD::MuonContainer> met::METTrackFilterTool::m_mu_inputkey {this,"InputMuonKey","Muons",""}
private

Definition at line 104 of file METTrackFilterTool.h.

◆ m_output_met_key

std::string met::METRefinerTool::m_output_met_key
protectedinherited

Definition at line 63 of file METRefinerTool.h.

◆ m_pv_inputkey

SG::ReadHandleKey<xAOD::VertexContainer> met::METTrackFilterTool::m_pv_inputkey {this,"InputPVKey","PrimaryVertices",""}
private

Definition at line 105 of file METTrackFilterTool.h.

◆ m_trk_doEoverPsel

bool met::METTrackFilterTool::m_trk_doEoverPsel
private

Definition at line 112 of file METTrackFilterTool.h.

◆ m_trk_doPVsel

bool met::METTrackFilterTool::m_trk_doPVsel
private

Definition at line 101 of file METTrackFilterTool.h.

◆ m_trkIsolationTool

ToolHandle<xAOD::ITrackIsolationTool> met::METTrackFilterTool::m_trkIsolationTool {this,"TrackIsolationTool","",""}
private

Definition at line 95 of file METTrackFilterTool.h.

◆ m_trkseltool

ToolHandle<InDet::IInDetTrackSelectionTool> met::METTrackFilterTool::m_trkseltool {this,"TrackSelectorTool","",""}
private

Definition at line 93 of file METTrackFilterTool.h.

◆ m_trkToVertexTool

ToolHandle<CP::ITrackVertexAssociationTool> met::METTrackFilterTool::m_trkToVertexTool {this,"TrackVxAssocTool","",""}
private

Definition at line 94 of file METTrackFilterTool.h.

◆ m_useIsolationTools

bool met::METTrackFilterTool::m_useIsolationTools
private

Definition at line 110 of file METTrackFilterTool.h.

◆ m_useRapidity

bool met::METRefinerTool::m_useRapidity
protectedinherited

Definition at line 64 of file METRefinerTool.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
met::METTrackFilterTool::m_trkseltool
ToolHandle< InDet::IInDetTrackSelectionTool > m_trkseltool
Definition: METTrackFilterTool.h:93
xAOD::TrackParticle_v1::pt
virtual double pt() const override final
The transverse momentum ( ) of the particle.
Definition: TrackParticle_v1.cxx:73
MissingETContainer
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETContainer.h:22
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
xAOD::muon
@ muon
Definition: TrackingPrimitives.h:195
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
StateLessPT_NewConfig.proxy
proxy
Definition: StateLessPT_NewConfig.py:392
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
xAOD::TrackCorrection
Definition: IsolationCommon.h:18
met::METTrackFilterTool::isMuTrack
static bool isMuTrack(const xAOD::TrackParticle &trk, const std::vector< const xAOD::Muon * > &muons)
Definition: METTrackFilterTool.cxx:382
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
MissingETBase::Status::Vertex::Nominal
@ Nominal
Primary vertex is nominal vertex.
xAOD::MissingET_v1::sumet
float sumet() const
Returns.
met::METTrackFilterTool::m_trk_doEoverPsel
bool m_trk_doEoverPsel
Definition: METTrackFilterTool.h:112
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
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
xAOD::MissingETComposition::find
static MissingETComponentMap::const_iterator find(const MissingETComponentMap *pMap, const MissingET *pmetObj)
Find non-modifiable contribution for a given MET object.
Definition: Event/xAOD/xAODMissingET/Root/MissingETComposition.cxx:82
met::METTrackFilterTool::m_cl_inputkey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_cl_inputkey
Definition: METTrackFilterTool.h:106
met::METTrackFilterTool::buildTrackMET
StatusCode buildTrackMET(xAOD::MissingETComponentMap *const metMap, xAOD::MissingET *const metTerm, const xAOD::Vertex *const pv, const std::vector< const xAOD::Electron * > &selElectrons, const std::vector< const xAOD::Muon * > &selMuons, const std::vector< const xAOD::TrackParticle * > &softTracks) const
Definition: METTrackFilterTool.cxx:310
met::METRefinerTool::m_output_met_key
std::string m_output_met_key
Definition: METRefinerTool.h:63
xAOD::TrackCorrection::trackbitset
Iso::IsolationTrackCorrectionBitset trackbitset
Definition: IsolationCommon.h:19
test_pyathena.pt
pt
Definition: test_pyathena.py:11
MissingETBase::Source::track
static Types::bitmask_t track(Region reg=Region::FullAcceptance)
Bit mask for MET term from Track signal objects.
Definition: MissingETBase.h:291
xAOD::Iso::ptcone20
@ ptcone20
Track isolation.
Definition: IsolationType.h:40
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
xAOD::TrackVertexAssociationMap
std::map< const xAOD::Vertex *, xAOD::TrackVertexAssociationList > TrackVertexAssociationMap
Definition: TrackVertexAssociationMap.h:19
met::METTrackFilterTool::m_trkIsolationTool
ToolHandle< xAOD::ITrackIsolationTool > m_trkIsolationTool
Definition: METTrackFilterTool.h:95
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
met::METTrackFilterTool::selectMuons
static void selectMuons(const xAOD::MuonContainer &muCont, std::vector< const xAOD::Muon * > &muons)
Definition: METTrackFilterTool.cxx:409
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
met::METTrackFilterTool::m_trkToVertexTool
ToolHandle< CP::ITrackVertexAssociationTool > m_trkToVertexTool
Definition: METTrackFilterTool.h:94
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
MissingETBase::Types::bitmask_t
uint64_t bitmask_t
Type for status word bit mask.
Definition: MissingETBase.h:39
xAOD::MissingET_v1::setSource
void setSource(MissingETBase::Types::bitmask_t src)
Set the source of the MET object.
MissingETBase::Status::Tags::correctedTerm
static Types::bitmask_t correctedTerm(Vertex vtx=Vertex::Nominal, Correction cor=Correction::Corrected)
Definition: MissingETCompositionBase.h:128
MissingETBase::Source::idTrack
static Types::bitmask_t idTrack(Region reg=Region::FullAcceptance)
Bit pattern indicating a ID Track MET term.
Definition: MissingETBase.h:366
MissingETBase::Source::Type::SoftEvent
@ SoftEvent
Indicator for the MET term from reconstructed soft event signals (tracks, clusters) or MC truth parti...
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
xAOD::MissingETComponent_v1::setStatusWord
bool setStatusWord(MissingETBase::Types::bitmask_t sw=MissingETBase::Status::clearedStatus())
Set the statusword of a MET term.
met::METRefinerTool::executeTool
virtual StatusCode executeTool(xAOD::MissingET *metTerm, xAOD::MissingETComponentMap *metMap) const =0
xAOD::TrackParticle
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Definition: Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h:13
xAOD::MissingET_v1::setName
void setName(const std::string &name)
Set the name of the MET object.
xAOD::MissingETComposition::getComponent
static const MissingETComponent * getComponent(const MissingETComponentMap *pMap, const IParticle *pPart)
Access non-modifiable contribution object.
Definition: Event/xAOD/xAODMissingET/Root/MissingETComposition.cxx:122
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
MissingETBase::Status::Correction::PileupTrack
@ PileupTrack
Reconstructed track based pile-up correction.
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
met::METTrackFilterTool::m_trk_doPVsel
bool m_trk_doPVsel
Definition: METTrackFilterTool.h:101
asg::AsgTool::AsgTool
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition: AsgTool.cxx:58
xAOD::CaloIsolation
Definition: IsolationCommon.h:22
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
met::METTrackFilterTool::m_doVxSep
bool m_doVxSep
Definition: METTrackFilterTool.h:108
DataModel_detail::iterator
(Non-const) Iterator class for DataVector/DataList.
Definition: DVLIterator.h:184
xAOD::Iso::etcone20
@ etcone20
Calorimeter isolation.
Definition: IsolationType.h:32
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::EgammaHelpers::isElectron
bool isElectron(const xAOD::Egamma *eg)
is the object an electron (not Fwd)
Definition: EgammaxAODHelpers.cxx:13
PyAlgorithmExample.EoverP
int EoverP
Definition: PyAlgorithmExample.py:122
xAOD::VxType::PriVtx
@ PriVtx
Primary vertex.
Definition: TrackingPrimitives.h:571
met::METTrackFilterTool::m_forTrackPtThr
double m_forTrackPtThr
Definition: METTrackFilterTool.h:115
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
python.xAODType.dummy
dummy
Definition: xAODType.py:4
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
MSG::name
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition: MsgLevel.cxx:19
met::METTrackFilterTool::m_caloIsolationTool
ToolHandle< xAOD::ICaloTopoClusterIsolationTool > m_caloIsolationTool
Definition: METTrackFilterTool.h:96
met::METTrackFilterTool::m_mu_inputkey
SG::ReadHandleKey< xAOD::MuonContainer > m_mu_inputkey
Definition: METTrackFilterTool.h:104
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
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
Electron
met::METTrackFilterTool::isGoodEoverP
bool isGoodEoverP(const xAOD::TrackParticle *trk, const std::vector< const xAOD::TrackParticle * > &trkList, const xAOD::CaloClusterContainer *clusters) const
Definition: METTrackFilterTool.cxx:117
xAOD::MissingET_v1::name
const std::string & name() const
Identifier getters.
MissingET
Athena::TPCnvVers::Old Athena::TPCnvVers::Old MissingET
Definition: RecTPCnv.cxx:64
Trk::Combined
@ Combined
Definition: TrackSummaryTool.h:32
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
xAOD::TrackIsolation
Definition: IsolationCommon.h:33
xAOD::MissingET_v1::add
void add(const IParticle *particle)
Add particle kinematics to MET.
Definition: MissingET_v1.cxx:77
xAOD::VxType::PileUp
@ PileUp
Pile-up vertex.
Definition: TrackingPrimitives.h:573
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
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
met::METTrackFilterTool::m_cenTrackPtThr
double m_cenTrackPtThr
Definition: METTrackFilterTool.h:114
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
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
met::METRefinerTool::METRefinerTool
METRefinerTool()
Default constructor:
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::METTrackFilterTool::isElTrack
static bool isElTrack(const xAOD::TrackParticle &trk, const std::vector< const xAOD::Electron * > &electrons, size_t &el_index)
Definition: METTrackFilterTool.cxx:370
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
xAOD::MissingETComposition::add
static bool add(MissingETComponentMap *pMap, const MissingET *pMET, MissingETBase::Types::bitmask_t sw=MissingETBase::Status::clearedStatus())
Adding a MissingET object to the map.
Definition: Event/xAOD/xAODMissingET/Root/MissingETComposition.cxx:29
xAOD::EgammaHelpers::getOriginalTrackParticleFromGSF
const xAOD::TrackParticle * getOriginalTrackParticleFromGSF(const xAOD::TrackParticle *trkPar)
Helper function for getting the "Original" Track Particle (i.e before GSF) via the GSF Track Particle...
Definition: ElectronxAODHelpers.cxx:22
xAOD::MissingET_v1::source
MissingETBase::Types::bitmask_t source() const
MET object source tag.
met::METTrackFilterTool::selectElectrons
static void selectElectrons(const xAOD::ElectronContainer &elCont, std::vector< const xAOD::Electron * > &electrons)
Definition: METTrackFilterTool.cxx:393
xAOD::Electron_v1
Definition: Electron_v1.h:34
xAOD::TrackIsolation::ptcones
std::vector< float > ptcones
Definition: IsolationCommon.h:36
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
met::METTrackFilterTool::m_pv_inputkey
SG::ReadHandleKey< xAOD::VertexContainer > m_pv_inputkey
Definition: METTrackFilterTool.h:105
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
a
TList * a
Definition: liststreamerinfos.cxx:10
h
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
MissingET
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingET.h:23
xAOD::CaloCorrection
Definition: IsolationCommon.h:14
CaloCondBlobAlgs_fillNoiseFromASCII.author
string author
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:26
isLepton
bool isLepton(const T &p)
APID: the fourth generation leptons are leptons.
Definition: AtlasPID.h:130
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
RunTileMonitoring.clusters
clusters
Definition: RunTileMonitoring.py:133
met::METTrackFilterTool::m_doLepRecovery
bool m_doLepRecovery
Definition: METTrackFilterTool.h:109
python.changerun.pv
pv
Definition: changerun.py:81
xAOD::MissingETComponent_v1::Weight
Kinematic weight descriptor.
Definition: MissingETComponent_v1.h:28
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
met::METTrackFilterTool::m_useIsolationTools
bool m_useIsolationTools
Definition: METTrackFilterTool.h:110
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
SG::AuxElement::container
const SG::AuxVectorData * container() const
Return the container holding this element.
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
xAOD::P4Helpers::isInDeltaR
bool isInDeltaR(const xAOD::IParticle &p1, const xAOD::IParticle &p2, double dR, bool useRapidity=true)
Check if 2 xAOD::IParticle are in a cone.
Definition: xAODP4Helpers.h:174
python.PyAthena.obj
obj
Definition: PyAthena.py:135
SG::DataProxy
Definition: DataProxy.h:44
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53
python.Dumpers.etcone10
int etcone10
Definition: Dumpers.py:41
MissingETBase::Source::softEvent
static Types::bitmask_t softEvent(Region reg=Region::FullAcceptance)
Standard MET term from reconstructed soft event.
Definition: MissingETBase.h:264
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
InDetDD::electrons
@ electrons
Definition: InDetDD_Defs.h:17
xAOD::CaloCorrection::calobitset
Iso::IsolationCaloCorrectionBitset calobitset
Definition: IsolationCommon.h:15
fitman.k
k
Definition: fitman.py:528
xAOD::MissingETComponent_v1
MET component descriptor contains object links and corresponding parameters.
Definition: MissingETComponent_v1.h:24
met::METRefinerTool::m_useRapidity
bool m_useRapidity
Definition: METRefinerTool.h:64
met::METTrackFilterTool::m_el_inputkey
SG::ReadHandleKey< xAOD::ElectronContainer > m_el_inputkey
Definition: METTrackFilterTool.h:103
isMuon
bool isMuon(const T &p)
Definition: AtlasPID.h:145
beamspotman.basename
basename
Definition: beamspotman.py:640
met::METRefinerTool::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: METRefinerTool.cxx:52