CMS 3D CMS Logo

BeamSpotTransientTrackingRecHit.h
Go to the documentation of this file.
1 #ifndef BeamSpotTransientTrackingRecHit_H
2 #define BeamSpotTransientTrackingRecHit_H
3 
15 #include <cmath>
16 
20 
22 
23 #include "BeamSpotGeomDet.h"
24 
26 
28 public:
30 
34  localError_ =
35  LocalError(std::pow(beamSpot.BeamWidthX() * cos(phi), 2) + std::pow(beamSpot.BeamWidthY() * sin(phi), 2),
36  0.0,
37  std::pow(beamSpot.sigmaZ(), 2));
38  }
39 
41 
42  LocalPoint localPosition() const override { return localPosition_; }
43  LocalError localPositionError() const override { return localError_; }
44 
45  AlgebraicVector parameters() const override;
46  AlgebraicSymMatrix parametersError() const override;
47  int dimension() const override { return 1; }
48 
49  const TrackingRecHit *hit() const override { return nullptr; }
50  TrackingRecHit *cloneHit() const override { return nullptr; }
51 
52  std::vector<const TrackingRecHit *> recHits() const override { return std::vector<const TrackingRecHit *>(); }
53  std::vector<TrackingRecHit *> recHits() override { return std::vector<TrackingRecHit *>(); }
54 
56 
57 protected:
60 
61 private:
62  // should not have assignment operator (?)
64 
65  // hide the clone method for ReferenceCounted. Warning: this method is still
66  // accessible via the bas class TrackingRecHit interface!
68 
70 };
71 
72 #endif
BeamSpotGeomDet.h
BeamSpotTransientTrackingRecHit
Definition: BeamSpotTransientTrackingRecHit.h:27
AlignableBeamSpot.h
pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
BeamSpotTransientTrackingRecHit::projectionMatrix
AlgebraicMatrix projectionMatrix() const override
Definition: BeamSpotTransientTrackingRecHit.h:55
BeamSpotTransientTrackingRecHit::localPosition_
LocalPoint localPosition_
Definition: BeamSpotTransientTrackingRecHit.h:58
AlgebraicObjects.h
TrackingRecHit::det
const GeomDet * det() const
Definition: TrackingRecHit.h:122
BeamSpotTransientTrackingRecHit::localPositionError
LocalError localPositionError() const override
Definition: BeamSpotTransientTrackingRecHit.h:43
BeamSpotTransientTrackingRecHit::cloneHit
TrackingRecHit * cloneHit() const override
Definition: BeamSpotTransientTrackingRecHit.h:50
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
BeamSpotTransientTrackingRecHit::parameters
AlgebraicVector parameters() const override
Definition: BeamSpotTransientTrackingRecHit.cc:11
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
BeamSpot.h
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition: AlgebraicObjects.h:13
BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit
BeamSpotTransientTrackingRecHit(const reco::BeamSpot &beamSpot, const BeamSpotGeomDet *geom, double phi)
Definition: BeamSpotTransientTrackingRecHit.h:31
TrackingRecHit::Type
Type
Definition: TrackingRecHit.h:45
reco::BeamSpot
Definition: BeamSpot.h:21
BeamSpotTransientTrackingRecHit::Type
TrackingRecHit::Type Type
Definition: BeamSpotTransientTrackingRecHit.h:29
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
Point3DBase< float, LocalTag >
OrderedSet.t
t
Definition: OrderedSet.py:90
GeomDet::toLocal
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
Definition: GeomDet.h:58
BeamSpotTransientTrackingRecHit::operator=
BeamSpotTransientTrackingRecHit & operator=(const BeamSpotTransientTrackingRecHit &t)
Definition: BeamSpotTransientTrackingRecHit.h:63
BeamSpotTransientTrackingRecHit::recHits
std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
Definition: BeamSpotTransientTrackingRecHit.h:52
LocalError
Definition: LocalError.h:12
BeamSpotTransientTrackingRecHit::hit
const TrackingRecHit * hit() const override
Definition: BeamSpotTransientTrackingRecHit.h:49
BeamSpotTransientTrackingRecHit::clone
BeamSpotTransientTrackingRecHit * clone() const override
Definition: BeamSpotTransientTrackingRecHit.h:67
BeamSpotTransientTrackingRecHit::localError_
LocalError localError_
Definition: BeamSpotTransientTrackingRecHit.h:59
BeamSpotTransientTrackingRecHit::~BeamSpotTransientTrackingRecHit
~BeamSpotTransientTrackingRecHit() override
Definition: BeamSpotTransientTrackingRecHit.h:40
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition: AlgebraicObjects.h:15
BeamSpotTransientTrackingRecHit::dimension
int dimension() const override
Definition: BeamSpotTransientTrackingRecHit.h:47
BeamSpotTransientTrackingRecHit::theProjectionMatrix
static const AlgebraicMatrix theProjectionMatrix
Definition: BeamSpotTransientTrackingRecHit.h:69
TrackingRecHit
Definition: TrackingRecHit.h:21
DDAxes::phi
BeamSpotGeomDet
Definition: BeamSpotGeomDet.h:22
BeamSpotTransientTrackingRecHit::localPosition
LocalPoint localPosition() const override
Definition: BeamSpotTransientTrackingRecHit.h:42
AlgebraicMatrix
CLHEP::HepMatrix AlgebraicMatrix
Definition: AlgebraicObjects.h:14
ErrorFrameTransformer.h
TValidTrackingRecHit
Definition: TValidTrackingRecHit.h:12
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
TValidTrackingRecHit.h
BeamSpotTransientTrackingRecHit::recHits
std::vector< TrackingRecHit * > recHits() override
Non-const access to component RecHits (if any)
Definition: BeamSpotTransientTrackingRecHit.h:53
BeamSpotTransientTrackingRecHit::parametersError
AlgebraicSymMatrix parametersError() const override
Definition: BeamSpotTransientTrackingRecHit.cc:17