|
ATLAS Offline Software
|
Go to the documentation of this file.
18 m_constraintFit(
"ZMassConstraint::ConstraintFit/ConstraintFit", this)
34 return StatusCode::SUCCESS;
55 std::vector<const xAOD::Electron*> els;
66 if (fabs(
el->caloCluster()->eta()) >= 2.47)
continue;
67 if (
el->pt() <= 7000.)
continue;
69 float d0 = el_tp->
d0();
70 if (primaryVtx)
d0 = (el_tp->
z0() - primaryVtx->
z() + el_tp->
vz());
72 if (fabs(
d0) > 10.)
continue;
89 float res = el0->
pt() * 0.1 / sqrt(el0->
e());
91 res = el1->
pt() * 0.1 / sqrt(el1->
e());
98 TLorentzVector fit4vec;
99 result.getCompositeFourVector(fit4vec);
109 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
virtual StatusCode initialize()
Function initialising the algorithm.
float charge() const
Obtain the charge of the object.
uint64_t eventNumber() const
The current event's event number.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual double e() const override final
The total energy of the particle.
float vz() const
The z origin for the parameters.
float z0() const
Returns the parameter.
float d0() const
Returns the parameter.
uint32_t runNumber() const
The current event's run number.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::pair< std::vector< unsigned int >, bool > res
virtual double phi() const override final
The azimuthal angle ( ) of the particle.
ToolHandle< ZMassConstraint::IConstraintFit > m_constraintFit
float z() const
Returns the z position.
std::string m_electronContName
virtual StatusCode execute()
Function executing the algorithm.
Class describing the basic event information.
Class describing a Vertex.
TestAthenaConstraintFit(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
Class describing a TrackParticle.
std::string m_vertexContName