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 
39  const trackingRecHit_iterator& start, const trackingRecHit_iterator& stop) const {
41  for (trackingRecHit_iterator hit = start; hit != stop; ++hit)
42  result.push_back(build(&**hit));
43 
44  return result;
45 }
MTDTransientTrackingRecHitBuilder::MTDTransientTrackingRecHitBuilder
MTDTransientTrackingRecHitBuilder(edm::ESHandle< GlobalTrackingGeometry > trackingGeometry=nullptr)
Definition: MTDTransientTrackingRecHitBuilder.cc:16
start
Definition: start.py:1
MTDTransientTrackingRecHitBuilder::RecHitPointer
TransientTrackingRecHit::RecHitPointer RecHitPointer
Definition: MTDTransientTrackingRecHitBuilder.h:14
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
ForwardSubdetector.h
edm::ESHandle< GlobalTrackingGeometry >
edm::OwnVector::const_iterator
Definition: OwnVector.h:41
MTDTransientTrackingRecHitBuilder::theTrackingGeometry
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
Definition: MTDTransientTrackingRecHitBuilder.h:30
FastTime
Definition: ForwardSubdetector.h:6
MTDTransientTrackingRecHitBuilder::build
RecHitPointer build(const TrackingRecHit *p, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const
Call the MTDTransientTrackingRecHit::specificBuild.
Definition: MTDTransientTrackingRecHitBuilder.cc:20
MTDTransientTrackingRecHitBuilder::ConstRecHitContainer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
Definition: MTDTransientTrackingRecHitBuilder.h:15
edm::ESHandleBase::isValid
bool isValid() const
Definition: ESHandle.h:44
TrackingRecHit
Definition: TrackingRecHit.h:21
Exception
Definition: hltDiff.cc:246
mps_fire.result
result
Definition: mps_fire.py:303
DetId::Forward
Definition: DetId.h:30
MTDTransientTrackingRecHitBuilder.h
hit
Definition: SiStripHitEffFromCalibTree.cc:88