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 205 of file OverlapRemovalGenUseAlg.cxx.

206{
207 if(m_electronLabel.empty()) return true; //disable selection for objects with empty labels
208 const SG::AuxElement::ConstAccessor<char> acc_ElectronPass(m_electronLabel);
209 if(obj.pt() < m_ptCut*GeV || std::abs(obj.eta()) > m_etaCut) return false;
210 if(!acc_ElectronPass(obj)) return false;
211 return true;
212}
SG::ConstAccessor< T, ALLOC > ConstAccessor
Definition AuxElement.h:569

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

template<>
bool OverlapRemovalGenUseAlg::selectObject< xAOD::Jet > ( const xAOD::Jet & obj)

Definition at line 196 of file OverlapRemovalGenUseAlg.cxx.

197{
198 // Selection
199 if(obj.pt() < m_ptCut*GeV || std::abs(obj.eta()) > m_etaCut) return false;
200 return true;
201}

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

template<>
bool OverlapRemovalGenUseAlg::selectObject< xAOD::Muon > ( const xAOD::Muon & obj)

Definition at line 227 of file OverlapRemovalGenUseAlg.cxx.

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

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

Definition at line 216 of file OverlapRemovalGenUseAlg.cxx.

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

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

Definition at line 238 of file OverlapRemovalGenUseAlg.cxx.

239{
240 if(m_tauLabel.empty()) return true; //disable selection for objects with empty labels
241 const SG::AuxElement::ConstAccessor<char> acc_TauPass(m_tauLabel);
242 if(obj.pt() < m_ptCut*GeV || std::abs(obj.eta()) > m_etaCut) return false;
243 if(!acc_TauPass(obj)) return false;
244 return true;
245}