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

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...
 
RecHitPointer build (const TrackingRecHit *p) const override
 build a tracking rechit from an existing rechit 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) {}
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry

◆ ~MuonTransientTrackingRecHitBuilder()

MuonTransientTrackingRecHitBuilder::~MuonTransientTrackingRecHitBuilder ( )
inlineoverride

Definition at line 19 of file MuonTransientTrackingRecHitBuilder.h.

19 {};

Member Function Documentation

◆ build() [1/5]

virtual RecHitPointer TransientTrackingRecHitBuilder::build

build a tracking rechit from an existing rechit

◆ build() [2/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  };
RecHitPointer build(const TrackingRecHit *p, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const
Call the MuonTransientTrackingRecHit::specificBuild.

◆ build() [3/5]

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

Call the MuonTransientTrackingRecHit::specificBuild.

Definition at line 20 of file MuonTransientTrackingRecHitBuilder.cc.

References GlobalTrackingGeometry::idToDet(), DetId::Muon, AlCaHLTBitMon_ParallelJobs::p, and MuonTransientTrackingRecHit::specificBuild().

Referenced by build(), GlobalTrackerMuonAlignment::muonFitter(), TrackerToMuonPropagator::produce(), and CSCOverlapsTrackPreparation::produce().

21  {
22  if (p->geographicalId().det() == DetId::Muon) {
23  return MuonTransientTrackingRecHit::specificBuild(trackingGeometry->idToDet(p->geographicalId()), p);
24  }
25 
26  return RecHitPointer();
27 }
TransientTrackingRecHit::RecHitPointer RecHitPointer
const GeomDet * idToDet(DetId) const override
static MuonRecHitPointer specificBuild(const GeomDet *geom, const TrackingRecHit *rh)

◆ build() [4/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.

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

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 }
RecHitPointer build(const TrackingRecHit *p, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const
Call the MuonTransientTrackingRecHit::specificBuild.
bool isValid() const
Definition: ESHandle.h:44
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry

◆ build() [5/5]

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

Definition at line 38 of file MuonTransientTrackingRecHitBuilder.cc.

References build(), and mps_fire::result.

39  {
41  for (trackingRecHit_iterator hit = start; hit != stop; ++hit)
42  result.push_back(build(&**hit));
43 
44  return result;
45 }
Definition: start.py:1
RecHitPointer build(const TrackingRecHit *p, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const
Call the MuonTransientTrackingRecHit::specificBuild.
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer

Member Data Documentation

◆ theTrackingGeometry

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

Definition at line 30 of file MuonTransientTrackingRecHitBuilder.h.

Referenced by build().