CMS 3D CMS Logo

MuonTransientTrackingRecHit.h
Go to the documentation of this file.
1 #ifndef MuonTransientTrackingRecHit_h
2 #define MuonTransientTrackingRecHit_h
3 
16 
18 
20 public:
21  using MuonRecHitPointer = std::shared_ptr<MuonTransientTrackingRecHit>;
22  using ConstMuonRecHitPointer = std::shared_ptr<MuonTransientTrackingRecHit const>;
23 
24  // typedef ReferenceCountingPointer<MuonTransientTrackingRecHit> MuonRecHitPointer;
25  // typedef ConstReferenceCountingPointer<MuonTransientTrackingRecHit> ConstMuonRecHitPointer;
26  typedef std::vector<MuonRecHitPointer> MuonRecHitContainer;
27  typedef std::vector<ConstMuonRecHitPointer> ConstMuonRecHitContainer;
28 
30 
32  virtual LocalVector localDirection() const;
33 
35  virtual GlobalVector globalDirection() const;
36 
38  virtual LocalError localDirectionError() const;
39 
41  virtual GlobalError globalDirectionError() const;
42 
43  AlgebraicSymMatrix parametersError() const override;
44 
46  virtual double chi2() const;
47 
49  virtual int degreesOfFreedom() const;
50 
52  bool isDT() const;
53 
55  bool isCSC() const;
56 
58  bool isGEM() const;
59 
61  bool isME0() const;
62 
64  bool isRPC() const;
65 
67  ConstRecHitContainer transientHits() const override;
68 
70 
71  static RecHitPointer build(const GeomDet* geom, const TrackingRecHit* rh) {
73  }
74 
76  LogDebug("Muon|RecoMuon|MuonDetLayerMeasurements") << "Getting specificBuild" << std::endl;
78  }
79 
80  void invalidateHit();
81 
82 private:
83  friend class kkkwwwxxxyyyzzz; //just to avoid the compiler warning...
84 
87 
90 
91  MuonTransientTrackingRecHit* clone() const override { return new MuonTransientTrackingRecHit(*this); }
92 };
93 #endif
Vector3DBase< float, LocalTag >
MuonTransientTrackingRecHit::degreesOfFreedom
virtual int degreesOfFreedom() const
Degrees of freedom for segments, else 0.
Definition: MuonTransientTrackingRecHit.cc:121
MuonTransientTrackingRecHit::isDT
bool isDT() const
if this rec hit is a DT rec hit
Definition: MuonTransientTrackingRecHit.cc:128
MuonTransientTrackingRecHit::specificBuild
static MuonRecHitPointer specificBuild(const GeomDet *geom, const TrackingRecHit *rh)
Definition: MuonTransientTrackingRecHit.h:75
MuonTransientTrackingRecHit::ConstMuonRecHitPointer
std::shared_ptr< MuonTransientTrackingRecHit const > ConstMuonRecHitPointer
Definition: MuonTransientTrackingRecHit.h:22
MessageLogger.h
MuonTransientTrackingRecHit::globalDirection
virtual GlobalVector globalDirection() const
Direction in 3D for segments, otherwise (0,0,0)
Definition: MuonTransientTrackingRecHit.cc:40
GeomDet
Definition: GeomDet.h:27
MuonTransientTrackingRecHit::isGEM
bool isGEM() const
if this rec hit is a GEM rec hit
Definition: MuonTransientTrackingRecHit.cc:132
MuonTransientTrackingRecHit::invalidateHit
void invalidateHit()
Definition: MuonTransientTrackingRecHit.cc:194
MuonTransientTrackingRecHit::ConstMuonRecHitContainer
std::vector< ConstMuonRecHitPointer > ConstMuonRecHitContainer
Definition: MuonTransientTrackingRecHit.h:27
GenericTransientTrackingRecHit
Definition: GenericTransientTrackingRecHit.h:7
MuonTransientTrackingRecHit::MuonRecHitContainer
std::vector< MuonRecHitPointer > MuonRecHitContainer
Definition: MuonTransientTrackingRecHit.h:26
MuonTransientTrackingRecHit
Definition: MuonTransientTrackingRecHit.h:19
MuonTransientTrackingRecHit::~MuonTransientTrackingRecHit
~MuonTransientTrackingRecHit() override
Definition: MuonTransientTrackingRecHit.h:29
TrackingRecHit::RecHitPointer
std::shared_ptr< TrackingRecHit const > RecHitPointer
Definition: TrackingRecHit.h:24
MuonTransientTrackingRecHit::clone
MuonTransientTrackingRecHit * clone() const override
Definition: MuonTransientTrackingRecHit.h:91
MuonTransientTrackingRecHit::MuonRecHitPointer
std::shared_ptr< MuonTransientTrackingRecHit > MuonRecHitPointer
Definition: MuonTransientTrackingRecHit.h:21
MuonTransientTrackingRecHit::chi2
virtual double chi2() const
Chi square of the fit for segments, else 0.
Definition: MuonTransientTrackingRecHit.cc:114
MuonTransientTrackingRecHit::transientHits
ConstRecHitContainer transientHits() const override
return the sub components of this transient rechit
Definition: MuonTransientTrackingRecHit.cc:140
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
trackingPlots.other
other
Definition: trackingPlots.py:1467
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:223
LocalError
Definition: LocalError.h:12
MuonTransientTrackingRecHit::parametersError
AlgebraicSymMatrix parametersError() const override
Definition: MuonTransientTrackingRecHit.cc:48
MuonTransientTrackingRecHit::build
static RecHitPointer build(const GeomDet *geom, const TrackingRecHit *rh)
FIXME virtual ConstMuonRecHitContainer specificTransientHits() const;.
Definition: MuonTransientTrackingRecHit.h:71
MuonTransientTrackingRecHit::localDirectionError
virtual LocalError localDirectionError() const
Error on the local direction.
Definition: MuonTransientTrackingRecHit.cc:33
GlobalErrorBase< double, ErrorMatrixTag >
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition: AlgebraicObjects.h:15
MuonTransientTrackingRecHit::isCSC
bool isCSC() const
if this rec hit is a CSC rec hit
Definition: MuonTransientTrackingRecHit.cc:130
GenericTransientTrackingRecHit.h
MuonTransientTrackingRecHit::isRPC
bool isRPC() const
if this rec hit is a RPC rec hit
Definition: MuonTransientTrackingRecHit.cc:136
TrackingRecHit
Definition: TrackingRecHit.h:21
ConstRecHitContainer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
Definition: MillePedeAlignmentAlgorithm.cc:74
MuonTransientTrackingRecHit::kkkwwwxxxyyyzzz
friend class kkkwwwxxxyyyzzz
Definition: MuonTransientTrackingRecHit.h:83
MuonTransientTrackingRecHit::localDirection
virtual LocalVector localDirection() const
Direction in 3D for segments, otherwise (0,0,0)
Definition: MuonTransientTrackingRecHit.cc:26
MuonTransientTrackingRecHit::MuonTransientTrackingRecHit
MuonTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit *rh)
Construct from a TrackingRecHit and its GeomDet.
Definition: MuonTransientTrackingRecHit.cc:20
RecSegment.h
MuonTransientTrackingRecHit::isME0
bool isME0() const
if this rec hit is a ME0 rec hit
Definition: MuonTransientTrackingRecHit.cc:134
MuonTransientTrackingRecHit::globalDirectionError
virtual GlobalError globalDirectionError() const
Error on the global direction.
Definition: MuonTransientTrackingRecHit.cc:44