CMS 3D CMS Logo

MTDTrackingRecHit.h
Go to the documentation of this file.
1 #ifndef DataFormats_TrackerRecHit2D_MTDTrackingRecHit_h
2 #define DataFormats_TrackerRecHit2D_MTDTrackingRecHit_h
3 
5 
6 #include <cassert>
9 
11 public:
13 
14  MTDTrackingRecHit(const LocalPoint& p, const LocalError& e, const GeomDet& idet, const FTLClusterRef& objref)
15  : TrackerSingleRecHit(p, e, idet, trackerHitRTTI::mipTiming, objref) {}
16 
17  MTDTrackingRecHit* clone() const override { return new MTDTrackingRecHit(*this); }
18 
19  // things to specialize from BaseTrackerRecHit
20  bool isPhase2() const final { return true; }
21  void getKfComponents(KfComponentsHolder& holder) const final;
22 
23  int dimension() const final { return 2; }
24 
25  //specific timing stuff
26  float energy() const { return omniCluster().mtdCluster().energy(); }
27  float time() const { return omniCluster().mtdCluster().time(); }
28  float timeError() const { return omniCluster().mtdCluster().timeError(); }
29 };
30 
31 // Instantiations and specializations for FTLRecHitRef and reco::CaloClusterPtr
36 
37 #endif
MTDTrackingRecHit::isPhase2
bool isPhase2() const final
Definition: MTDTrackingRecHit.h:20
OmniClusterRef::mtdCluster
FTLCluster const & mtdCluster() const
Definition: OmniClusterRef.h:57
GeomDet
Definition: GeomDet.h:27
MTDTrackingRecHit::dimension
int dimension() const final
Definition: MTDTrackingRecHit.h:23
FTLCluster::energy
float energy() const
Definition: FTLCluster.h:149
MTDTrackingRecHit::MTDTrackingRecHit
MTDTrackingRecHit()
Definition: MTDTrackingRecHit.h:12
MTDTrackingRecHit::energy
float energy() const
Definition: MTDTrackingRecHit.h:26
watchdog.const
const
Definition: watchdog.py:83
TrackerSingleRecHit::omniCluster
OmniClusterRef const & omniCluster() const
Definition: TrackerSingleRecHit.h:42
FTLCluster::timeError
float timeError() const
Definition: FTLCluster.h:135
edm::Ref
Definition: AssociativeIterator.h:58
FTLCluster::time
float time() const
Definition: FTLCluster.h:130
Point3DBase< float, LocalTag >
MTDTrackingRecHit::timeError
float timeError() const
Definition: MTDTrackingRecHit.h:28
trackerHitRTTI::mipTiming
Definition: trackerHitRTTI.h:20
MTDTrackingOwnVector
edm::OwnVector< MTDTrackingRecHit > MTDTrackingOwnVector
Definition: MTDTrackingRecHit.h:35
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
LocalError
Definition: LocalError.h:12
MTDTrackingRecHit
A 2D TrackerRecHit with time and time error information.
Definition: MTDTrackingRecHit.h:10
DetSetVector.h
KfComponentsHolder
Definition: KfComponentsHolder.h:13
MTDTrackingRecHit::time
float time() const
Definition: MTDTrackingRecHit.h:27
FTLRecHitCollections.h
MTDTrackingRecHit::MTDTrackingRecHit
MTDTrackingRecHit(const LocalPoint &p, const LocalError &e, const GeomDet &idet, const FTLClusterRef &objref)
Definition: MTDTrackingRecHit.h:14
edmNew::DetSetVector
Definition: DetSetNew.h:13
MTDTrackingDetSetVector
edmNew::DetSetVector< MTDTrackingRecHit > MTDTrackingDetSetVector
Definition: MTDTrackingRecHit.h:34
TrackerSingleRecHit
Definition: TrackerSingleRecHit.h:11
MTDTrackingRecHit::getKfComponents
void getKfComponents(KfComponentsHolder &holder) const final
Definition: MTDTrackingRecHit.cc:3
MTDTrackingRecHit::clone
MTDTrackingRecHit * clone() const override
Definition: MTDTrackingRecHit.h:17
TrackerSingleRecHit.h
OwnVector.h
trackerHitRTTI
Definition: trackerHitRTTI.h:6
edm::OwnVector
Definition: OwnVector.h:24
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37