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 
17 
18 
20 public:
23  typedef std::vector<MuonRecHitPointer> MuonRecHitContainer;
24  typedef std::vector<ConstMuonRecHitPointer> ConstMuonRecHitContainer;
25 
27 
29  virtual LocalVector localDirection() const;
30 
32  virtual GlobalVector globalDirection() const;
33 
35  virtual LocalError localDirectionError() const;
36 
38  virtual GlobalError globalDirectionError() const;
39 
40  virtual AlgebraicSymMatrix parametersError() const;
41 
43  virtual double chi2() const;
44 
46  virtual int degreesOfFreedom() const;
47 
49  bool isDT() const;
50 
52  bool isCSC() const;
53 
55  bool isRPC() const;
56 
58  virtual ConstRecHitContainer transientHits() const;
59 
61 
62  static RecHitPointer build( const GeomDet * geom, const TrackingRecHit* rh) {
63  return RecHitPointer( new MuonTransientTrackingRecHit(geom, rh));
64  }
65 
67  return MuonRecHitPointer(new MuonTransientTrackingRecHit(geom, rh));
68  }
69 
70  void invalidateHit();
71 
72  private:
73 
74  friend class kkkwwwxxxyyyzzz; //just to avoid the compiler warning...
75 
78 
81 
83  return new MuonTransientTrackingRecHit(*this);
84  }
85 
86 };
87 #endif
88 
virtual int degreesOfFreedom() const
Degrees of freedom for segments, else 0.
ReferenceCountingPointer< TransientTrackingRecHit > RecHitPointer
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
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;.