CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonTransientTrackingRecHit.h
Go to the documentation of this file.
1 #ifndef MuonTransientTrackingRecHit_h
2 #define MuonTransientTrackingRecHit_h
3 
15 
16 
18 public:
21  typedef std::vector<MuonRecHitPointer> MuonRecHitContainer;
22  typedef std::vector<ConstMuonRecHitPointer> ConstMuonRecHitContainer;
23 
25 
27  virtual LocalVector localDirection() const;
28 
30  virtual GlobalVector globalDirection() const;
31 
33  virtual LocalError localDirectionError() const;
34 
36  virtual GlobalError globalDirectionError() const;
37 
38  virtual AlgebraicSymMatrix parametersError() const;
39 
41  virtual double chi2() const;
42 
44  virtual int degreesOfFreedom() const;
45 
47  bool isDT() const;
48 
50  bool isCSC() const;
51 
53  bool isRPC() const;
54 
56  virtual ConstRecHitContainer transientHits() const;
57 
59 
60  static RecHitPointer build( const GeomDet * geom, const TrackingRecHit* rh) {
61  return RecHitPointer( new MuonTransientTrackingRecHit(geom, rh));
62  }
63 
65  return MuonRecHitPointer(new MuonTransientTrackingRecHit(geom, rh));
66  }
67 
68  void invalidateHit();
69 
70  private:
71 
72  friend class kkkwwwxxxyyyzzz; //just to avoid the compiler warning...
73 
76 
79 
81  return new MuonTransientTrackingRecHit(*this);
82  }
83 
84 };
85 #endif
86 
virtual int degreesOfFreedom() const
Degrees of freedom for segments, else 0.
bool isCSC() const
if this rec hit is a CSC rec hit
virtual double chi2() const
Chi square of the fit for segments, else 0.
ConstReferenceCountingPointer< MuonTransientTrackingRecHit > ConstMuonRecHitPointer
virtual GlobalVector globalDirection() const
Direction in 3D for segments, otherwise (0,0,0)
virtual AlgebraicSymMatrix parametersError() const
virtual GlobalError globalDirectionError() const
Error on the global direction.
bool isRPC() const
if this rec hit is a RPC rec hit
bool isDT() const
if this rec hit is a DT rec hit
ReferenceCountingPointer< MuonTransientTrackingRecHit > MuonRecHitPointer
ReferenceCountingPointer< TransientTrackingRecHit > RecHitPointer
virtual ConstRecHitContainer transientHits() const
return the sub components of this transient rechit
virtual LocalVector localDirection() const
Direction in 3D for segments, otherwise (0,0,0)
MuonTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit *rh)
Construct from a TrackingRecHit and its GeomDet.
virtual MuonTransientTrackingRecHit * clone() const
std::vector< ConstMuonRecHitPointer > ConstMuonRecHitContainer
virtual LocalError localDirectionError() const
Error on the local direction.
CLHEP::HepSymMatrix AlgebraicSymMatrix
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
static MuonRecHitPointer specificBuild(const GeomDet *geom, const TrackingRecHit *rh)
std::vector< MuonRecHitPointer > MuonRecHitContainer
static RecHitPointer build(const GeomDet *geom, const TrackingRecHit *rh)
FIXME virtual ConstMuonRecHitContainer specificTransientHits() const;.