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
Vector3DBase< float, LocalTag >
EmulatedME0Segment::nRecHits
int nRecHits() const
Definition: EmulatedME0Segment.h:61
EmulatedME0Segment::~EmulatedME0Segment
~EmulatedME0Segment() override
Destructor.
Definition: EmulatedME0Segment.cc:16
EmulatedME0Segment::theLocalDirection
LocalVector theLocalDirection
Definition: EmulatedME0Segment.h:69
EmulatedME0Segment::theCovMatrix
AlgebraicSymMatrix theCovMatrix
Definition: EmulatedME0Segment.h:70
RecSegment
Definition: RecSegment.h:27
EmulatedME0Segment::print
void print() const
Definition: EmulatedME0Segment.cc:58
EmulatedME0Segment::parametersError
AlgebraicSymMatrix parametersError() const override
Covariance matrix of parameters()
Definition: EmulatedME0Segment.h:44
EmulatedME0Segment::EmulatedME0Segment
EmulatedME0Segment()
Default constructor.
Definition: EmulatedME0Segment.h:20
EmulatedME0Segment::chi2
double chi2() const override
Chi2 of the segment fit.
Definition: EmulatedME0Segment.h:53
errors
Definition: errors.py:1
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition: AlgebraicObjects.h:13
operator<<
std::ostream & operator<<(std::ostream &os, const EmulatedME0Segment &seg)
Definition: EmulatedME0Segment.cc:60
EmulatedME0Segment::localPositionError
LocalError localPositionError() const override
Definition: EmulatedME0Segment.cc:18
Point3DBase< float, LocalTag >
EmulatedME0Segment::projectionMatrix
AlgebraicMatrix projectionMatrix() const override
The projection matrix relates the trajectory state parameters to the segment parameters().
Definition: EmulatedME0Segment.cc:55
LocalError
Definition: LocalError.h:12
EmulatedME0Segment::parameters
AlgebraicVector parameters() const override
Parameters of the segment, for the track fit in the order (dx/dz, dy/dz, x, y )
Definition: EmulatedME0Segment.cc:26
EmulatedME0Segment
Definition: EmulatedME0Segment.h:17
EmulatedME0Segment::localPosition
LocalPoint localPosition() const override
Definition: EmulatedME0Segment.h:34
EmulatedME0Segment::theOrigin
LocalPoint theOrigin
Definition: EmulatedME0Segment.h:68
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition: AlgebraicObjects.h:15
EmulatedME0Segment::degreesOfFreedom
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.
Definition: EmulatedME0Segment.h:57
AlgebraicMatrix
CLHEP::HepMatrix AlgebraicMatrix
Definition: AlgebraicObjects.h:14
EmulatedME0Segment::recHits
std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
Definition: EmulatedME0Segment.h:49
EmulatedME0Segment::localDirectionError
LocalError localDirectionError() const override
Error on the local direction.
Definition: EmulatedME0Segment.cc:22
EmulatedME0Segment::localDirection
LocalVector localDirection() const override
Local direction.
Definition: EmulatedME0Segment.h:37
RecSegment.h
EmulatedME0Segment::clone
EmulatedME0Segment * clone() const override
Definition: EmulatedME0Segment.h:32
EmulatedME0Segment::theChi2
double theChi2
Definition: EmulatedME0Segment.h:71
EmulatedME0Segment::recHits
std::vector< TrackingRecHit * > recHits() override
Non-const access to component RecHits (if any)
Definition: EmulatedME0Segment.h:51
EmulatedME0Segment::dimension
int dimension() const override
Dimension (in parameter space)
Definition: EmulatedME0Segment.h:55