Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
34 return StatusCode::SUCCESS;
38 execute (
const EventContext &ctx)
const
48 if (primaryVertex ==
nullptr)
50 primaryVertex = vertex;
64 float deltaZ0SinTheta = -999;
65 float deltaZ0SinThetasig = -999;
71 track = electron->trackParticle();
74 return StatusCode::FAILURE;
77 if (
track !=
nullptr) {
80 eventInfo->beamPosSigmaX(),
81 eventInfo->beamPosSigmaY(),
82 eventInfo->beamPosSigmaXY());
84 const double vertex_z = primaryVertex ? primaryVertex->z() : 0;
85 deltaZ0SinTheta = (
track->z0() +
track->vz() - vertex_z) *
sin (particle->p4().Theta());
96 return StatusCode::SUCCESS;
void set(const SG::AuxElement &object, const T &value, const CP::SystematicSet &sys) const
set the object decoration for the given systematic
SysWriteDecorHandle< float > m_d0sigHandle
double d0significance(const xAOD::TrackParticle *tp, double d0_uncert_beam_spot_2)
StatusCode initialize() override
const std::vector< CP::SystematicSet > & systematicsVector() const
the list of systematics to loop over
SysListHandle m_systematicsList
the systematics list we run
Class providing the definition of the 4-vector interface.
Select isolated Photons, Electrons and Muons.
SysWriteDecorHandle< float > m_z0sinthetaHandle
double z0sinthetasignificance(const xAOD::TrackParticle *tp, const xAOD::Vertex *vx=NULL)
Get the impact parameter significance of a track particle in the z direction, including the sin(theta...
::StatusCode initialize()
intialize this property
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize this handle
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
the EventInfo key
Class describing a Vertex.
SysWriteDecorHandle< float > m_z0sinthetasigHandle
SysWriteDecorHandle< float > m_d0Handle
SG::ReadHandleKey< xAOD::VertexContainer > m_primaryVerticesKey
the PrimaryVertex key
Class describing a TrackParticle.
StatusCode execute(const EventContext &ctx) const override
SysReadHandle< xAOD::IParticleContainer > m_particlesHandle
the particle container we run on