17 StatusCode AsgLeptonTrackDecorationAlg ::
44 return StatusCode::SUCCESS;
47 StatusCode AsgLeptonTrackDecorationAlg ::
58 if (primaryVertex ==
nullptr)
60 primaryVertex = vertex;
79 float deltaZ0SinTheta = -999;
80 float deltaZ0SinThetasig = -999;
89 return StatusCode::FAILURE;
92 if (
track !=
nullptr) {
101 eventInfo->beamPosSigmaX(),
102 eventInfo->beamPosSigmaY(),
103 eventInfo->beamPosSigmaXY());
106 const double vertex_z = primaryVertex ? primaryVertex->
z() : 0;
107 deltaZ0SinTheta = (z0 + copyTrack.
vz() - vertex_z) * sin (particle->p4().Theta());
119 return StatusCode::SUCCESS;
#define ANA_CHECK_CORRECTION(helper, object, expr)
a helper check macro to work with OutOfValidityHelper
ToolHandle< InDet::IInDetTrackSmearingTool > m_smearingTool
the smearing tool
SysWriteDecorHandle< float > m_d0sigHandle
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
the EventInfo key
SysReadHandle< xAOD::IParticleContainer > m_particlesHandle
the particle container we run on
SysWriteDecorHandle< float > m_z0Handle
SysWriteDecorHandle< float > m_d0Handle
ToolHandle< InDet::IInDetTrackBiasingTool > m_biasingTool
the biasing tool
SysWriteDecorHandle< float > m_z0sinthetasigHandle
SysWriteDecorHandle< float > m_z0sinthetaHandle
SysListHandle m_systematicsList
the systematics list we run
OutOfValidityHelper m_outOfValidity
the helper for OutOfValidity results
SG::ReadHandleKey< xAOD::VertexContainer > m_primaryVerticesKey
the PrimaryVertex key
Class providing the definition of the 4-vector interface.
float z0() const
Returns the parameter.
float vz() const
The z origin for the parameters.
float d0() const
Returns the parameter.
float z() const
Returns the z position.
Select isolated Photons, Electrons and Muons.
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...
double d0significance(const xAOD::TrackParticle *tp, double d0_uncert_beam_spot_2)
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Vertex_v1 Vertex
Define the latest version of the vertex class.
Muon_v1 Muon
Reference the current persistent version:
Electron_v1 Electron
Definition of the current "egamma version".
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.