CMS 3D CMS Logo

TwoBodyDecayVirtualMeasurement.h
Go to the documentation of this file.
1 #ifndef Alignment_TwoBodyDecay_TwoBodyDecayVirtualMeasurement_h
2 #define Alignment_TwoBodyDecay_TwoBodyDecayVirtualMeasurement_h
3 
7 //#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
9 
20 public:
22  const double primaryWidth,
23  const double secondaryMass,
24  const reco::BeamSpot &beamSpot)
29 
35 
36  inline const double &primaryMass(void) const { return thePrimaryMass; }
37  inline const double &primaryWidth(void) const { return thePrimaryWidth; }
38  inline const double &secondaryMass(void) const { return theSecondaryMass; }
39 
40  inline const reco::BeamSpot &beamSpot(void) const { return theBeamSpot; }
41  inline const AlgebraicVector beamSpotPosition(void) const { return convertXYZPoint(theBeamSpot.position()); }
42  inline const AlgebraicSymMatrix beamSpotError(void) const { return extractBeamSpotError(); }
43 
44 private:
45  inline const AlgebraicVector convertXYZPoint(const math::XYZPoint &p) const {
46  AlgebraicVector v(3);
47  v(1) = p.x();
48  v(2) = p.y();
49  v(3) = p.z();
50  return v;
51  }
52 
54  AlgebraicSymMatrix bse(3, 0);
55  bse[0][0] = theBeamSpot.BeamWidthX();
56  bse[1][1] = theBeamSpot.BeamWidthY();
57  bse[2][2] = theBeamSpot.sigmaZ();
58  return bse;
59  }
60 
61  const double thePrimaryMass;
62  const double thePrimaryWidth;
63  const double theSecondaryMass;
65 };
66 
67 #endif
TwoBodyDecayVirtualMeasurement::TwoBodyDecayVirtualMeasurement
TwoBodyDecayVirtualMeasurement(const TwoBodyDecayVirtualMeasurement &other)
Definition: TwoBodyDecayVirtualMeasurement.h:30
AlgebraicObjects.h
TwoBodyDecayVirtualMeasurement::thePrimaryMass
const double thePrimaryMass
Definition: TwoBodyDecayVirtualMeasurement.h:61
findQualityFiles.v
v
Definition: findQualityFiles.py:179
TwoBodyDecayVirtualMeasurement::TwoBodyDecayVirtualMeasurement
TwoBodyDecayVirtualMeasurement(const double primaryMass, const double primaryWidth, const double secondaryMass, const reco::BeamSpot &beamSpot)
Definition: TwoBodyDecayVirtualMeasurement.h:21
TwoBodyDecayVirtualMeasurement::primaryWidth
const double & primaryWidth(void) const
Definition: TwoBodyDecayVirtualMeasurement.h:37
TwoBodyDecayVirtualMeasurement::thePrimaryWidth
const double thePrimaryWidth
Definition: TwoBodyDecayVirtualMeasurement.h:62
reco::BeamSpot::sigmaZ
double sigmaZ() const
sigma z
Definition: BeamSpot.h:76
TwoBodyDecayVirtualMeasurement::theBeamSpot
const reco::BeamSpot & theBeamSpot
Definition: TwoBodyDecayVirtualMeasurement.h:64
TwoBodyDecayVirtualMeasurement::convertXYZPoint
const AlgebraicVector convertXYZPoint(const math::XYZPoint &p) const
Definition: TwoBodyDecayVirtualMeasurement.h:45
BeamSpot.h
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition: AlgebraicObjects.h:13
reco::BeamSpot
Definition: BeamSpot.h:21
trackingPlots.other
other
Definition: trackingPlots.py:1464
reco::BeamSpot::position
const Point & position() const
position
Definition: BeamSpot.h:59
TwoBodyDecayVirtualMeasurement
Definition: TwoBodyDecayVirtualMeasurement.h:19
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
TwoBodyDecayVirtualMeasurement::beamSpotPosition
const AlgebraicVector beamSpotPosition(void) const
Definition: TwoBodyDecayVirtualMeasurement.h:41
GlobalError.h
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition: AlgebraicObjects.h:15
reco::BeamSpot::BeamWidthX
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:82
TwoBodyDecayVirtualMeasurement::theSecondaryMass
const double theSecondaryMass
Definition: TwoBodyDecayVirtualMeasurement.h:63
TwoBodyDecayVirtualMeasurement::beamSpotError
const AlgebraicSymMatrix beamSpotError(void) const
Definition: TwoBodyDecayVirtualMeasurement.h:42
TwoBodyDecayVirtualMeasurement::primaryMass
const double & primaryMass(void) const
Definition: TwoBodyDecayVirtualMeasurement.h:36
TwoBodyDecayVirtualMeasurement::secondaryMass
const double & secondaryMass(void) const
Definition: TwoBodyDecayVirtualMeasurement.h:38
Point3D.h
TwoBodyDecayVirtualMeasurement::extractBeamSpotError
const AlgebraicSymMatrix extractBeamSpotError() const
Definition: TwoBodyDecayVirtualMeasurement.h:53
TwoBodyDecayVirtualMeasurement::beamSpot
const reco::BeamSpot & beamSpot(void) const
Definition: TwoBodyDecayVirtualMeasurement.h:40
reco::BeamSpot::BeamWidthY
double BeamWidthY() const
beam width Y
Definition: BeamSpot.h:84