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 
19 public:
20 
23 
25  EmulatedME0Segment(const LocalPoint& origin, const LocalVector& direction, const AlgebraicSymMatrix& errors, const double chi2);
26 
28  ~EmulatedME0Segment() override;
29 
30  //--- Base class interface
31  EmulatedME0Segment* clone() const override { return new EmulatedME0Segment(*this); }
32 
33  LocalPoint localPosition() const override { return theOrigin; }
34  LocalError localPositionError() const override ;
35 
36  LocalVector localDirection() const override { return theLocalDirection; }
37  LocalError localDirectionError() const override ;
38 
40  AlgebraicVector parameters() const override;
41 
43  AlgebraicSymMatrix parametersError() const override { return theCovMatrix; }
44 
46  AlgebraicMatrix projectionMatrix() const override;
47 
48  std::vector<const TrackingRecHit*> recHits() const override {return std::vector<const TrackingRecHit*> (); }
49 
50  std::vector<TrackingRecHit*> recHits() override {return std::vector<TrackingRecHit*>();}
51 
52  double chi2() const override { return theChi2; }
53 
54  int dimension() const override { return 4; }
55 
56  int degreesOfFreedom() const override { return -1;} //Maybe change later?
57 
58  //--- Extension of the interface
59 
60  int nRecHits() const { return 0;} //theME0RecHits.size(); }
61 
62  void print() const;
63 
64  private:
65 
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