ATLAS Offline Software
Loading...
Searching...
No Matches
OverlapRemovalGenUseAlg.cxx File Reference
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 221 of file OverlapRemovalGenUseAlg.cxx.

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

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

Definition at line 212 of file OverlapRemovalGenUseAlg.cxx.

213{
214 // Selection
215 if(obj.pt() < m_ptCut*GeV || std::abs(obj.eta()) > m_etaCut) return false;
216 return true;
217}

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

Definition at line 243 of file OverlapRemovalGenUseAlg.cxx.

244{
245 if(m_muonLabel.empty()) return true; //disable selection for objects with empty labels
246 const SG::AuxElement::ConstAccessor<char> acc_MuonPass(m_muonLabel);
247 if(obj.pt() < m_ptCut*GeV || std::abs(obj.eta()) > m_etaCut) return false;
248 if(!acc_MuonPass(obj)) return false;
249 return true;
250}

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

Definition at line 232 of file OverlapRemovalGenUseAlg.cxx.

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

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

Definition at line 254 of file OverlapRemovalGenUseAlg.cxx.

255{
256 if(m_tauLabel.empty()) return true; //disable selection for objects with empty labels
257 const SG::AuxElement::ConstAccessor<char> acc_TauPass(m_tauLabel);
258 if(obj.pt() < m_ptCut*GeV || std::abs(obj.eta()) > m_etaCut) return false;
259 if(!acc_TauPass(obj)) return false;
260 return true;
261}