43 return StatusCode::SUCCESS;
95 return StatusCode::FAILURE;
106 if (conts.insert(c).second) {
116 return StatusCode::SUCCESS;
119 template <
class CONT_TYPE>
127 for (
auto particle : particles ) {
128 ATH_MSG_DEBUG(
"selectLeptonsAndPhotons: pt, eta, ph " << particle->pt()/1000. <<
", " << particle->eta() <<
", " << particle->phi() );
131 return StatusCode::SUCCESS;
145 return StatusCode::SUCCESS;
154 return StatusCode::SUCCESS;
161 return StatusCode::SUCCESS;
167 return StatusCode::SUCCESS;
181 return StatusCode::SUCCESS;
189 return StatusCode::SUCCESS;
196 return StatusCode::SUCCESS;
200 ATH_MSG_VERBOSE(
"applySelection: " << elec->
type() <<
", " << elec->
pt() <<
", " << elec->
eta() <<
", " << elec->
phi() <<
", " << (
int)isOK(*elec));
202 return StatusCode::SUCCESS;
216 return StatusCode::SUCCESS;
225 return StatusCode::SUCCESS;
233 return StatusCode::SUCCESS;
238 ATH_MSG_VERBOSE(
"applySelection: " << phot->
type() <<
", " << phot->
pt() <<
", " << phot->
eta() <<
", " << phot->
phi() <<
", " << (
int)isOK(*phot));
240 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
Handle class for reading a decoration on an object.
Handle class for reading from StoreGate.
Define macros for attributes used to control the static checker.
#define ATLAS_THREAD_SAFE
An algorithm that can be simultaneously executed in multiple threads.
@ Error
Some error happened during the object correction.
Gaudi::Property< float > m_minElecPt
Kinematic cuts - if needed.
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_elecSelKey
SG::ReadHandleKeyArray< xAOD::IParticleContainer > m_contKeys
Input containers to retrieve from the storegate.
SG::ReadDecorHandleKey< xAOD::MuonContainer > m_muonSelKey
For lepton/photon selection, normally one uses either a decorator xxxSelKey, or a tool xxxSelTool,...
Gaudi::Property< std::string > m_quality_name
Gaudi::Property< float > m_minPhotPt
StatusCode selectLeptonsAndPhotons(const EventContext &ctx, CONT_TYPE particles, const SG::Decorator< char > &isOK) const
IsoCloseByCorrectionAlg(const std::string &name, ISvcLocator *svcLoc)
ToolHandle< CP::IIsolationCloseByCorrectionTool > m_closeByCorrTool
The closeBy isolation correction tool.
StatusCode execute(const EventContext &ctx) const override
StatusCode applySelection(const EventContext &ctx, const xAOD::Electron *elec, const SG::Decorator< char > &isOK) const
ToolHandle< IAsgPhotonIsEMSelector > m_photSelTool
ToolHandle< IAsgElectronLikelihoodTool > m_elecSelTool
SG::ReadDecorHandleKey< xAOD::PhotonContainer > m_photSelKey
StatusCode initialize() override
ToolHandle< CP::IMuonSelectionTool > m_muonSelTool
tools for selection of incoming particles
Gaudi::Property< float > m_minMuonPt
DataVector adapter that acts like it holds const pointers.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const DV * asDataVector() const
Return a pointer to this object, as a const DataVector.
Manage lookup of vectors of auxiliary data.
void lockDecoration(SG::auxid_t auxid)
Explicitly lock a decoration.
Helper class to provide type-safe access to aux data.
SG::auxid_t auxid() const
Return the aux id for this variable.
Handle class for reading a decoration on an object.
Property holding a SG store/key/clid from which a ReadHandle is made.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
virtual double phi() const override final
The azimuthal angle ( ) of the particle.
virtual Type::ObjectType type() const override final
The type of the object as a simple enumeration.
Class providing the definition of the 4-vector interface.
virtual Type::ObjectType type() const override final
The type of the object as a simple enumeration.
Select isolated Photons, Electrons and Muons.
std::unordered_set< const SG::AuxVectorData * > UnorderedContainerSet
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
@ Photon
The object is a photon.
@ Muon
The object is a muon.
@ Electron
The object is an electron.
Muon_v1 Muon
Reference the current persistent version:
Photon_v1 Photon
Definition of the current "egamma version".
Electron_v1 Electron
Definition of the current "egamma version".