CMS 3D CMS Logo

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

#include <MuonTransientTrackingRecHitBuilder.h>

Inheritance diagram for MuonTransientTrackingRecHitBuilder:
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 MuonTransientTrackingRecHit::specificBuild. More...
 
ConstRecHitContainer build (const trackingRecHit_iterator &start, const trackingRecHit_iterator &stop) const
 
 MuonTransientTrackingRecHitBuilder (edm::ESHandle< GlobalTrackingGeometry > trackingGeometry=nullptr)
 
 ~MuonTransientTrackingRecHitBuilder () 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 MuonTransientTrackingRecHitBuilder.h.

Member Typedef Documentation

◆ ConstRecHitContainer

Definition at line 15 of file MuonTransientTrackingRecHitBuilder.h.

◆ RecHitPointer

Definition at line 14 of file MuonTransientTrackingRecHitBuilder.h.

Constructor & Destructor Documentation

◆ MuonTransientTrackingRecHitBuilder()

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

Class: MuonTransientTrackingRecHitBuilder

Description:

Authors : A. Everett Purdue University

Definition at line 16 of file MuonTransientTrackingRecHitBuilder.cc.

18  : theTrackingGeometry(trackingGeometry) {}

◆ ~MuonTransientTrackingRecHitBuilder()

MuonTransientTrackingRecHitBuilder::~MuonTransientTrackingRecHitBuilder ( )
inlineoverride

Definition at line 19 of file MuonTransientTrackingRecHitBuilder.h.

19 {};

Member Function Documentation

◆ build() [1/5]

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

build a tracking rechit from an existing rechit

Implements TransientTrackingRecHitBuilder.

Definition at line 29 of file MuonTransientTrackingRecHitBuilder.cc.

30  {
32  return build(p, theTrackingGeometry);
33  else
34  throw cms::Exception("Muon|RecoMuon|MuonTransientTrackingRecHitBuilder")
35  << "ERROR! You are trying to build a MuonTransientTrackingRecHit 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]

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

◆ build() [5/5]

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

Definition at line 38 of file MuonTransientTrackingRecHitBuilder.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> MuonTransientTrackingRecHitBuilder::theTrackingGeometry
private

Definition at line 30 of file MuonTransientTrackingRecHitBuilder.h.

Referenced by build().

start
Definition: start.py:1
MuonTransientTrackingRecHit::specificBuild
static MuonRecHitPointer specificBuild(const GeomDet *geom, const TrackingRecHit *rh)
Definition: MuonTransientTrackingRecHit.h:75
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
MuonTransientTrackingRecHitBuilder::RecHitPointer
TransientTrackingRecHit::RecHitPointer RecHitPointer
Definition: MuonTransientTrackingRecHitBuilder.h:14
edm::OwnVector::const_iterator
Definition: OwnVector.h:41
MuonTransientTrackingRecHitBuilder::build
RecHitPointer build(const TrackingRecHit *p, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const
Call the MuonTransientTrackingRecHit::specificBuild.
Definition: MuonTransientTrackingRecHitBuilder.cc:20
edm::ESHandleBase::isValid
bool isValid() const
Definition: ESHandle.h:44
MuonTransientTrackingRecHitBuilder::theTrackingGeometry
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
Definition: MuonTransientTrackingRecHitBuilder.h:30
ConstRecHitContainer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
Definition: MillePedeAlignmentAlgorithm.cc:74
Exception
Definition: hltDiff.cc:246
GlobalTrackingGeometry::idToDet
const GeomDet * idToDet(DetId) const override
Definition: GlobalTrackingGeometry.cc:44
mps_fire.result
result
Definition: mps_fire.py:311
DetId::Muon
Definition: DetId.h:26
hit
Definition: SiStripHitEffFromCalibTree.cc:88