CMS 3D CMS Logo

MTDTransientTrackingRecHitBuilder.cc
Go to the documentation of this file.
1 
15 
17  theTrackingGeometry(trackingGeometry)
18 {}
19 
20 
23  edm::ESHandle<GlobalTrackingGeometry> trackingGeometry) const {
24 
25  if ( p->geographicalId().det() == DetId::Forward &&
26  p->geographicalId().subdetId() == FastTime) {
27  return p->cloneSH();
28  }
29 
30  return RecHitPointer();
31 
32 }
33 
37  else
38  throw cms::Exception("MTD|RecoMTD|MTDTransientTrackingRecHitBuilder")
39  <<"ERROR! You are trying to build a MTDTransientTrackingRecHit with a non valid GlobalTrackingGeometry";
40 }
41 
44 
46  for(trackingRecHit_iterator hit = start; hit != stop; ++hit )
47  result.push_back(build(&**hit));
48 
49  return result;
50 }
51 
Definition: start.py:1
virtual RecHitPointer cloneSH() const
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:41
TransientTrackingRecHit::RecHitPointer RecHitPointer
MTDTransientTrackingRecHitBuilder(edm::ESHandle< GlobalTrackingGeometry > trackingGeometry=0)
RecHitPointer build(const TrackingRecHit *p, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const
Call the MTDTransientTrackingRecHit::specificBuild.
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
DetId geographicalId() const
bool isValid() const
Definition: ESHandle.h:44
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:39