|
ATLAS Offline Software
|
Go to the documentation of this file.
19 const std::string&
name, ISvcLocator* loc )
57 return StatusCode::SUCCESS;
71 ATH_MSG_DEBUG(
"Retrieved " << primary_vertices->
size() <<
" primary vertices..." );
99 float energy =
el->caloCluster()->e();
100 auto track =
el->trackParticle();
105 el_z0_sig = el_z0 / std::sqrt(
track->definingParametersCovMatrixDiagVec().at(1));
111 el_qoverp =
track->qOverP();
117 el_dpop = 1 - el_qoverp / (refittedTrack_LMqoverp);
121 dec_electron_et(*
el) = el_et;
123 dec_electron_z0(*
el) = el_z0;
124 dec_electron_z0_significance(*
el) = el_z0_sig;
126 dec_electron_isoPtOverPt(*
el) = el_iso_pt;
128 dec_electron_deltaPOverP(*
el) = el_dpop;
130 dec_electron_energyOverP(*
el) =
energy * std::abs(
track->qOverP());
132 return StatusCode::SUCCESS;
136 if (vertices.
size() == 0) {
137 throw std::runtime_error(
"no primary vertices");
145 return vertices.front();
This file contains "getter" functions used for accessing tagger inputs from the EDM.
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_z0_significance
@ LastMeasurement
Parameter defined at the position of the last measurement.
const std::string & key() const
Return the StoreGate ID for the referenced object.
virtual StatusCode initialize() override
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_energyOverP
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_deltaPOverP
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
const xAOD::Vertex * primary(const xAOD::VertexContainer &vertices) const
Handle class for adding a decoration to an object.
SG::ReadHandleKey< xAOD::ElectronContainer > m_ElectronContainerKey
SoftElectronDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
ElectronContainer_v1 ElectronContainer
Definition of the current "electron container version".
SG::ReadHandleKey< xAOD::VertexContainer > m_VertexContainerKey
virtual StatusCode execute(const EventContext &) const override
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Class describing a Vertex.
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_z0
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_et
Handle class for reading a decoration on an object.
const float EC[NC]
Energy levels for Carbon.
constexpr int pow(int base, int exp) noexcept
size_type size() const noexcept
Returns the number of elements in the collection.
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_isoPtOverPt
SG::AuxElement::ConstAccessor< float > m_pt_varcone30