CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ME0Segment.h
Go to the documentation of this file.
1 #ifndef GEMRecHit_ME0Segment_h
2 #define GEMRecHit_ME0Segment_h
3 
15 
16 #include <iosfwd>
17 
18 class ME0DetId;
19 
20 class ME0Segment final : public RecSegment {
21 
22 public:
23 
25  ME0Segment() : theChi2(0.){}
26 
28  ME0Segment(const std::vector<const ME0RecHit*>& proto_segment, LocalPoint origin,
29  LocalVector direction, AlgebraicSymMatrix errors, double chi2);
30 
31  ME0Segment(const std::vector<const ME0RecHit*>& proto_segment, LocalPoint origin,
32  LocalVector direction, AlgebraicSymMatrix errors, double chi2, double time, double timeErr);
33 
35  virtual ~ME0Segment();
36 
37  //--- Base class interface
38  ME0Segment* clone() const { return new ME0Segment(*this); }
39 
40  LocalPoint localPosition() const { return theOrigin; }
42 
45 
48 
51 
53  virtual AlgebraicMatrix projectionMatrix() const;
54 
55  virtual std::vector<const TrackingRecHit*> recHits() const;
56 
57  virtual std::vector<TrackingRecHit*> recHits();
58 
59  double chi2() const { return theChi2; };
60 
61  virtual int dimension() const { return 4; }
62 
63  virtual int degreesOfFreedom() const { return 2*nRecHits() - 4;}
64 
65  //--- Extension of the interface
66 
67  const std::vector<ME0RecHit>& specificRecHits() const { return theME0RecHits; }
68 
69  int nRecHits() const { return theME0RecHits.size(); }
70 
71  ME0DetId me0DetId() const { return geographicalId(); }
72 
73  float time() const { return theTimeValue; }
74  float timeErr() const { return theTimeUncrt; }
75 
76  void print() const;
77 
78  private:
79 
80  std::vector<ME0RecHit> theME0RecHits;
81  LocalPoint theOrigin; // in chamber frame - the GeomDet local coordinate system
82  LocalVector theLocalDirection; // in chamber frame - the GeomDet local coordinate system
83  AlgebraicSymMatrix theCovMatrix; // the covariance matrix
84  double theChi2; // the Chi squared of the segment fit
85  double theTimeValue; // the best time estimate of the segment
86  double theTimeUncrt; // the uncertainty on the time estimation
87 
88 };
89 
90 std::ostream& operator<<(std::ostream& os, const ME0Segment& seg);
91 
92 #endif
virtual int degreesOfFreedom() const
Degrees of freedom of the segment fit.
Definition: ME0Segment.h:63
LocalPoint localPosition() const
Definition: ME0Segment.h:40
double theTimeValue
Definition: ME0Segment.h:85
LocalPoint theOrigin
Definition: ME0Segment.h:81
LocalVector theLocalDirection
Definition: ME0Segment.h:82
const std::vector< ME0RecHit > & specificRecHits() const
Definition: ME0Segment.h:67
virtual int dimension() const
Dimension (in parameter space)
Definition: ME0Segment.h:61
AlgebraicSymMatrix parametersError() const
Covariance matrix of parameters()
Definition: ME0Segment.h:50
ME0DetId me0DetId() const
Definition: ME0Segment.h:71
LocalVector localDirection() const
Local direction.
Definition: ME0Segment.h:43
AlgebraicVector parameters() const
Parameters of the segment, for the track fit in the order (dx/dz, dy/dz, x, y )
Definition: ME0Segment.cc:86
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
double theTimeUncrt
Definition: ME0Segment.h:86
std::vector< ME0RecHit > theME0RecHits
Definition: ME0Segment.h:80
ME0Segment()
Default constructor.
Definition: ME0Segment.h:25
CLHEP::HepMatrix AlgebraicMatrix
LocalError localPositionError() const
Definition: ME0Segment.cc:77
void print() const
Definition: ME0Segment.cc:109
double chi2() const
Chi2 of the segment fit.
Definition: ME0Segment.h:59
LocalError localDirectionError() const
Error on the local direction.
Definition: ME0Segment.cc:81
virtual AlgebraicMatrix projectionMatrix() const
The projection matrix relates the trajectory state parameters to the segment parameters().
Definition: ME0Segment.cc:103
double theChi2
Definition: ME0Segment.h:84
CLHEP::HepVector AlgebraicVector
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
Definition: ME0Segment.cc:60
int nRecHits() const
Definition: ME0Segment.h:69
virtual ~ME0Segment()
Destructor.
Definition: ME0Segment.cc:58
CLHEP::HepSymMatrix AlgebraicSymMatrix
float timeErr() const
Definition: ME0Segment.h:74
DetId geographicalId() const
AlgebraicSymMatrix theCovMatrix
Definition: ME0Segment.h:83
ME0Segment * clone() const
Definition: ME0Segment.h:38
float time() const
Definition: ME0Segment.h:73