ATLAS Offline Software
Functions
OverlapRemovalGenUseAlg.cxx File Reference
#include "AssociationUtils/OverlapRemovalDefs.h"
#include "AssociationUtils/OverlapRemovalGenUseAlg.h"
#include "AsgDataHandles/ReadHandle.h"
#include "AsgTools/CurrentContext.h"
Include dependency graph for OverlapRemovalGenUseAlg.cxx:

Go to the source code of this file.

Functions

template<>
bool OverlapRemovalGenUseAlg::selectObject< xAOD::Jet > (const xAOD::Jet &obj)
 
template<>
bool OverlapRemovalGenUseAlg::selectObject< xAOD::Electron > (const xAOD::Electron &obj)
 
template<>
bool OverlapRemovalGenUseAlg::selectObject< xAOD::Photon > (const xAOD::Photon &obj)
 
template<>
bool OverlapRemovalGenUseAlg::selectObject< xAOD::Muon > (const xAOD::Muon &obj)
 
template<>
bool OverlapRemovalGenUseAlg::selectObject< xAOD::TauJet > (const xAOD::TauJet &obj)
 

Function Documentation

◆ OverlapRemovalGenUseAlg::selectObject< xAOD::Electron >()

Definition at line 209 of file OverlapRemovalGenUseAlg.cxx.

210 {
211  if(m_electronLabel.empty()) return true; //disable selection for objects with empty labels
212  const static SG::AuxElement::ConstAccessor<char> acc_ElectronPass(m_electronLabel);
213  if(obj.pt() < m_ptCut*GeV || std::abs(obj.eta()) > m_etaCut) return false;
214  if(!acc_ElectronPass(obj)) return false;
215  return true;
216 }

◆ OverlapRemovalGenUseAlg::selectObject< xAOD::Jet >()

Definition at line 196 of file OverlapRemovalGenUseAlg.cxx.

197 {
198  // Label bjets
199  //const static SG::AuxElement::ConstAccessor<float> acc_applyBTag("DFCommonJets_FixedCutBEff_85_MV2c10");
200  //static ort::inputDecorator_t bJetDec(m_bJetLabel);
201  //bJetDec(obj) = acc_applyBTag(obj);
202  // Selection
203  if(obj.pt() < m_ptCut*GeV || std::abs(obj.eta()) > m_etaCut) return false;
204  return true;
205 }

◆ OverlapRemovalGenUseAlg::selectObject< xAOD::Muon >()

Definition at line 231 of file OverlapRemovalGenUseAlg.cxx.

232 {
233  if(m_muonLabel.empty()) return true; //disable selection for objects with empty labels
234  const static SG::AuxElement::ConstAccessor<char> acc_MuonPass(m_muonLabel);
235  if(obj.pt() < m_ptCut*GeV || std::abs(obj.eta()) > m_etaCut) return false;
236  if(!acc_MuonPass(obj)) return false;
237  return true;
238 }

◆ OverlapRemovalGenUseAlg::selectObject< xAOD::Photon >()

Definition at line 220 of file OverlapRemovalGenUseAlg.cxx.

221 {
222  if(m_photonLabel.empty()) return true; //disable selection for objects with empty labels
223  const static SG::AuxElement::ConstAccessor<char> acc_PhotonPass(m_photonLabel);
224  if(obj.pt() < m_ptCut*GeV || std::abs(obj.eta()) > m_etaCut) return false;
225  if(!acc_PhotonPass(obj)) return false;
226  return true;
227 }

◆ OverlapRemovalGenUseAlg::selectObject< xAOD::TauJet >()

Definition at line 242 of file OverlapRemovalGenUseAlg.cxx.

243 {
244  if(m_tauLabel.empty()) return true; //disable selection for objects with empty labels
245  const static SG::AuxElement::ConstAccessor<char> acc_TauPass(m_tauLabel);
246  if(obj.pt() < m_ptCut*GeV || std::abs(obj.eta()) > m_etaCut) return false;
247  if(!acc_TauPass(obj)) return false;
248  return true;
249 }
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition: ConstAccessor.h:54
python.PyAthena.obj
obj
Definition: PyAthena.py:135
GeV
#define GeV
Definition: CaloTransverseBalanceVecMon.cxx:30