CMS 3D CMS Logo

MTDTransientTrackingRecHitBuilder.cc
Go to the documentation of this file.
1 
15 
18  : theTrackingGeometry(trackingGeometry) {}
19 
21  const TrackingRecHit* p, edm::ESHandle<GlobalTrackingGeometry> trackingGeometry) const {
22  if (p->geographicalId().det() == DetId::Forward && p->geographicalId().subdetId() == FastTime) {
23  return p->cloneSH();
24  }
25 
26  return RecHitPointer();
27 }
28 
30  const TrackingRecHit* p) const {
32  return build(p, theTrackingGeometry);
33  else
34  throw cms::Exception("MTD|RecoMTD|MTDTransientTrackingRecHitBuilder")
35  << "ERROR! You are trying to build a MTDTransientTrackingRecHit with a non valid GlobalTrackingGeometry";
36 }
37 
42  result.push_back(build(&**hit));
43 
44  return result;
45 }
Definition: start.py:1
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
MTDTransientTrackingRecHitBuilder(edm::ESHandle< GlobalTrackingGeometry > trackingGeometry=nullptr)
TransientTrackingRecHit::RecHitPointer RecHitPointer
RecHitPointer build(const TrackingRecHit *p, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const
Call the MTDTransientTrackingRecHit::specificBuild.
bool isValid() const
Definition: ESHandle.h:44
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer