CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Typedefs | Functions
RecoConversionMaker.cc File Reference
#include "DQM/PhysicsHWW/interface/RecoConversionMaker.h"

Go to the source code of this file.

Typedefs

typedef math::XYZTLorentzVectorF LorentzVector
 
typedef math::XYZPointF Point
 

Functions

double lxy (const math::XYZPoint &myBeamSpot, const Conversion &conv)
 

Typedef Documentation

Definition at line 6 of file RecoConversionMaker.cc.

Definition at line 7 of file RecoConversionMaker.cc.

Function Documentation

double lxy ( const math::XYZPoint myBeamSpot,
const Conversion conv 
)

Definition at line 16 of file RecoConversionMaker.cc.

References reco::Conversion::conversionVertex(), reco::Vertex::isValid(), reco::Conversion::refittedPairMomentum(), reco::Vertex::x(), and reco::Vertex::y().

Referenced by TkConvValidator::analyze(), HLTmumutkFilter::hltFilter(), HLTmumutktkFilter::hltFilter(), HLTDisplacedtktkFilter::hltFilter(), HLTDisplacedmumuFilter::hltFilter(), HLTDisplacedmumumuFilter::hltFilter(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), ConversionTools::isGoodConversion(), pat::PATConversionProducer::produce(), and RecoConversionMaker::SetVars().

16  {
17 
18  const reco::Vertex &vtx = conv.conversionVertex();
19  if (!vtx.isValid()) return -9999.;
20 
22 
23  double dbsx = vtx.x() - myBeamSpot.x();
24  double dbsy = vtx.y() - myBeamSpot.y();
25  double lxy = (mom.x()*dbsx + mom.y()*dbsy)/mom.rho();
26  return lxy;
27 
28 }
const reco::Vertex & conversionVertex() const
returns the reco conversion vertex
Definition: Conversion.h:97
double lxy(const math::XYZPoint &myBeamSpot, const Conversion &conv)
double y() const
y coordinate
Definition: Vertex.h:110
bool isValid() const
Tells whether the vertex is valid.
Definition: Vertex.h:60
math::XYZVectorF refittedPairMomentum() const
Conversion tracks momentum from the tracks refitted with vertex constraint.
Definition: Conversion.cc:248
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:17
double x() const
x coordinate
Definition: Vertex.h:108