 |
ATLAS Offline Software
|
Go to the documentation of this file.
31 return StatusCode::SUCCESS;
39 using IPLV = std::vector<ElementLink<xAOD::IParticleContainer>>;
51 std::set<size_t> used_electrons_idx;
54 IPLV electrons_in_jet;
55 std::vector<const xAOD::TrackParticle*> jet_tracks;
58 if (used_electrons_idx.count(electron->index()))
continue;
62 for (
unsigned int i = 0;
i < jet_tracks.size();
i++){
63 if (track == jet_tracks[
i]){
65 used_electrons_idx.insert(electron->index());
70 electrons_out(*
jet) = electrons_in_jet;
72 return StatusCode::SUCCESS;
This file contains "getter" functions used for accessing tagger inputs from the EDM.
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_ElectronsOutKey
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode execute(const EventContext &) const override
SG::ReadHandleKey< xAOD::JetContainer > m_JetContainerKey
double deltaR(double rapidity1, double phi1, double rapidity2, double phi2)
from bare bare rapidity,phi
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
Handle class for adding a decoration to an object.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual StatusCode initialize() override
ElectronContainer_v1 ElectronContainer
Definition of the current "electron container version".
ElementLink implementation for ROOT usage.
SG::ReadHandleKey< xAOD::ElectronContainer > m_ElectronContainerKey
const xAOD::TrackParticle * getOriginalTrackParticle(const xAOD::Electron *el)
Helper function for getting the "Original" Track Particle (i.e before GSF) via the electron.
Class describing a TrackParticle.
const float EC[NC]
Energy levels for Carbon.
FTagGhostElectronAssociationAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor