CMS 3D CMS Logo

EmulatedME0Segment.h
Go to the documentation of this file.
1 #ifndef DataFormats_MuonReco_EmulatedME0Segment_h
2 #define DataFormats_MuonReco_EmulatedME0Segment_h
3 
14 
15 #include <iosfwd>
16 
18 public:
20  EmulatedME0Segment() : theOrigin(0, 0, 0), theLocalDirection(0, 0, 0), theCovMatrix(4, 0), theChi2(0.) {}
21 
23  EmulatedME0Segment(const LocalPoint& origin,
24  const LocalVector& direction,
26  const double chi2);
27 
29  ~EmulatedME0Segment() override;
30 
31  //--- Base class interface
32  EmulatedME0Segment* clone() const override { return new EmulatedME0Segment(*this); }
33 
34  LocalPoint localPosition() const override { return theOrigin; }
35  LocalError localPositionError() const override;
36 
37  LocalVector localDirection() const override { return theLocalDirection; }
38  LocalError localDirectionError() const override;
39 
41  AlgebraicVector parameters() const override;
42 
44  AlgebraicSymMatrix parametersError() const override { return theCovMatrix; }
45 
47  AlgebraicMatrix projectionMatrix() const override;
48 
49  std::vector<const TrackingRecHit*> recHits() const override { return std::vector<const TrackingRecHit*>(); }
50 
51  std::vector<TrackingRecHit*> recHits() override { return std::vector<TrackingRecHit*>(); }
52 
53  double chi2() const override { return theChi2; }
54 
55  int dimension() const override { return 4; }
56 
57  int degreesOfFreedom() const override { return -1; } //Maybe change later?
58 
59  //--- Extension of the interface
60 
61  int nRecHits() const { return 0; } //theME0RecHits.size(); }
62 
63  void print() const;
64 
65 private:
66  //std::vector<ME0RecHit2D> theME0RecHits;
67  // CAVEAT: these "Local" paramaters will in fact be filled by global coordinates
68  LocalPoint theOrigin; // in chamber frame - the GeomDet local coordinate system
69  LocalVector theLocalDirection; // in chamber frame - the GeomDet local coordinate system
70  AlgebraicSymMatrix theCovMatrix; // the covariance matrix
71  double theChi2;
72 };
73 
74 std::ostream& operator<<(std::ostream& os, const EmulatedME0Segment& seg);
75 
76 #endif // ME0RecHit_EmulatedME0Segment_h
std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
LocalVector localDirection() const override
Local direction.
EmulatedME0Segment()
Default constructor.
LocalError localPositionError() const override
~EmulatedME0Segment() override
Destructor.
LocalPoint localPosition() const override
CLHEP::HepMatrix AlgebraicMatrix
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
EmulatedME0Segment * clone() const override
CLHEP::HepVector AlgebraicVector
AlgebraicSymMatrix parametersError() const override
Covariance matrix of parameters()
double chi2() const override
Chi2 of the segment fit.
std::ostream & operator<<(std::ostream &os, const EmulatedME0Segment &seg)
AlgebraicMatrix projectionMatrix() const override
The projection matrix relates the trajectory state parameters to the segment parameters().
CLHEP::HepSymMatrix AlgebraicSymMatrix
LocalVector theLocalDirection
AlgebraicVector parameters() const override
Parameters of the segment, for the track fit in the order (dx/dz, dy/dz, x, y )
Definition: errors.py:1
std::vector< TrackingRecHit * > recHits() override
Non-const access to component RecHits (if any)
LocalError localDirectionError() const override
Error on the local direction.
int dimension() const override
Dimension (in parameter space)
AlgebraicSymMatrix theCovMatrix