CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
MTDTransientTrackingRecHitBuilder Class Reference

#include <MTDTransientTrackingRecHitBuilder.h>

Inheritance diagram for MTDTransientTrackingRecHitBuilder:
TransientTrackingRecHitBuilder

Public Types

typedef TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
 
typedef TransientTrackingRecHit::RecHitPointer RecHitPointer
 
- Public Types inherited from TransientTrackingRecHitBuilder
typedef TransientTrackingRecHit::RecHitContainer RecHitContainer
 
typedef TransientTrackingRecHit::RecHitPointer RecHitPointer
 

Public Member Functions

RecHitPointer build (const TrackingRecHit *p) const override
 build a tracking rechit from an existing rechit More...
 
virtual RecHitPointer build (const TrackingRecHit *p) const=0
 build a tracking rechit from an existing rechit More...
 
virtual RecHitPointer build (const TrackingRecHit *p, const TrajectoryStateOnSurface &state) const
 build a tracking rechit refiting the rechit position and error according to the state estimate More...
 
RecHitPointer build (const TrackingRecHit *p, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const
 Call the MTDTransientTrackingRecHit::specificBuild. More...
 
ConstRecHitContainer build (const trackingRecHit_iterator &start, const trackingRecHit_iterator &stop) const
 
 MTDTransientTrackingRecHitBuilder (edm::ESHandle< GlobalTrackingGeometry > trackingGeometry=nullptr)
 
 ~MTDTransientTrackingRecHitBuilder () override
 
- Public Member Functions inherited from TransientTrackingRecHitBuilder
virtual RecHitPointer build (const TrackingRecHit *p, const TrajectoryStateOnSurface &state) const
 build a tracking rechit refiting the rechit position and error according to the state estimate More...
 
virtual ~TransientTrackingRecHitBuilder ()=default
 

Private Attributes

edm::ESHandle< GlobalTrackingGeometrytheTrackingGeometry
 

Detailed Description

Definition at line 12 of file MTDTransientTrackingRecHitBuilder.h.

Member Typedef Documentation

◆ ConstRecHitContainer

Definition at line 15 of file MTDTransientTrackingRecHitBuilder.h.

◆ RecHitPointer

Definition at line 14 of file MTDTransientTrackingRecHitBuilder.h.

Constructor & Destructor Documentation

◆ MTDTransientTrackingRecHitBuilder()

MTDTransientTrackingRecHitBuilder::MTDTransientTrackingRecHitBuilder ( edm::ESHandle< GlobalTrackingGeometry trackingGeometry = nullptr)

Class: MTDTransientTrackingRecHitBuilder

Description:

Authors : L. Gray FNAL

Definition at line 16 of file MTDTransientTrackingRecHitBuilder.cc.

18  : theTrackingGeometry(trackingGeometry) {}

◆ ~MTDTransientTrackingRecHitBuilder()

MTDTransientTrackingRecHitBuilder::~MTDTransientTrackingRecHitBuilder ( )
inlineoverride

Definition at line 19 of file MTDTransientTrackingRecHitBuilder.h.

19 {};

Member Function Documentation

◆ build() [1/5]

MTDTransientTrackingRecHitBuilder::RecHitPointer MTDTransientTrackingRecHitBuilder::build ( const TrackingRecHit p) const
overridevirtual

build a tracking rechit from an existing rechit

Implements TransientTrackingRecHitBuilder.

Definition at line 29 of file MTDTransientTrackingRecHitBuilder.cc.

30  {
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 }

References build(), Exception, edm::ESHandleBase::isValid(), AlCaHLTBitMon_ParallelJobs::p, and theTrackingGeometry.

◆ build() [2/5]

virtual RecHitPointer TransientTrackingRecHitBuilder::build

build a tracking rechit from an existing rechit

◆ build() [3/5]

virtual RecHitPointer TransientTrackingRecHitBuilder::build
inline

build a tracking rechit refiting the rechit position and error according to the state estimate

Definition at line 15 of file TransientTrackingRecHitBuilder.h.

15  {
16  return build(p);
17  };

◆ build() [4/5]

MTDTransientTrackingRecHitBuilder::RecHitPointer MTDTransientTrackingRecHitBuilder::build ( const TrackingRecHit p,
edm::ESHandle< GlobalTrackingGeometry trackingGeometry 
) const

Call the MTDTransientTrackingRecHit::specificBuild.

Definition at line 20 of file MTDTransientTrackingRecHitBuilder.cc.

21  {
22  if (p->geographicalId().det() == DetId::Forward && p->geographicalId().subdetId() == FastTime) {
23  return p->cloneSH();
24  }
25 
26  return RecHitPointer();
27 }

References FastTime, DetId::Forward, and AlCaHLTBitMon_ParallelJobs::p.

Referenced by build().

◆ build() [5/5]

MTDTransientTrackingRecHitBuilder::ConstRecHitContainer MTDTransientTrackingRecHitBuilder::build ( const trackingRecHit_iterator start,
const trackingRecHit_iterator stop 
) const

Definition at line 38 of file MTDTransientTrackingRecHitBuilder.cc.

39  {
41  for (trackingRecHit_iterator hit = start; hit != stop; ++hit)
42  result.push_back(build(&**hit));
43 
44  return result;
45 }

References build(), and mps_fire::result.

Member Data Documentation

◆ theTrackingGeometry

edm::ESHandle<GlobalTrackingGeometry> MTDTransientTrackingRecHitBuilder::theTrackingGeometry
private

Definition at line 30 of file MTDTransientTrackingRecHitBuilder.h.

Referenced by build().

start
Definition: start.py:1
MTDTransientTrackingRecHitBuilder::RecHitPointer
TransientTrackingRecHit::RecHitPointer RecHitPointer
Definition: MTDTransientTrackingRecHitBuilder.h:14
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
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
edm::ESHandleBase::isValid
bool isValid() const
Definition: ESHandle.h:44
ConstRecHitContainer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
Definition: MillePedeAlignmentAlgorithm.cc:74
Exception
Definition: hltDiff.cc:245
mps_fire.result
result
Definition: mps_fire.py:311
DetId::Forward
Definition: DetId.h:30
hit
Definition: SiStripHitEffFromCalibTree.cc:88