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, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const
 Call the MuonTransientTrackingRecHit::specificBuild. More...
 
RecHitPointer build (const TrackingRecHit *p) const
 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=0)
 
virtual ~MuonTransientTrackingRecHitBuilder ()
 
- 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

Definition at line 17 of file MuonTransientTrackingRecHitBuilder.h.

Definition at line 16 of file MuonTransientTrackingRecHitBuilder.h.

Constructor & Destructor Documentation

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

Class: MuonTransientTrackingRecHitBuilder

Description:

Authors : A. Everett Purdue University

Definition at line 16 of file MuonTransientTrackingRecHitBuilder.cc.

16  :
17  theTrackingGeometry(trackingGeometry)
18 {}
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
virtual MuonTransientTrackingRecHitBuilder::~MuonTransientTrackingRecHitBuilder ( )
inlinevirtual

Definition at line 21 of file MuonTransientTrackingRecHitBuilder.h.

References build(), and AlCaHLTBitMon_ParallelJobs::p.

21 {} ;

Member Function Documentation

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

Call the MuonTransientTrackingRecHit::specificBuild.

Definition at line 22 of file MuonTransientTrackingRecHitBuilder.cc.

References DetId::det(), TrackingRecHit::geographicalId(), GlobalTrackingGeometry::idToDet(), DetId::Muon, and MuonTransientTrackingRecHit::specificBuild().

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

23  {
24 
25  if ( p->geographicalId().det() == DetId::Muon ) {
26  return MuonTransientTrackingRecHit::specificBuild(trackingGeometry->idToDet(p->geographicalId()),p);
27  }
28 
29  return RecHitPointer();
30 
31 }
TransientTrackingRecHit::RecHitPointer RecHitPointer
const GeomDet * idToDet(DetId) const override
DetId geographicalId() const
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
static MuonRecHitPointer specificBuild(const GeomDet *geom, const TrackingRecHit *rh)
MuonTransientTrackingRecHitBuilder::RecHitPointer MuonTransientTrackingRecHitBuilder::build ( const TrackingRecHit p) const
virtual

build a tracking rechit from an existing rechit

Implements TransientTrackingRecHitBuilder.

Definition at line 34 of file MuonTransientTrackingRecHitBuilder.cc.

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

34  {
36  else
37  throw cms::Exception("Muon|RecoMuon|MuonTransientTrackingRecHitBuilder")
38  <<"ERROR! You are trying to build a MuonTransientTrackingRecHit with a non valid GlobalTrackingGeometry";
39 }
RecHitPointer build(const TrackingRecHit *p, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const
Call the MuonTransientTrackingRecHit::specificBuild.
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
bool isValid() const
Definition: ESHandle.h:47
MuonTransientTrackingRecHitBuilder::ConstRecHitContainer MuonTransientTrackingRecHitBuilder::build ( const trackingRecHit_iterator start,
const trackingRecHit_iterator stop 
) const

Definition at line 42 of file MuonTransientTrackingRecHitBuilder.cc.

References build(), and mps_fire::result.

42  {
43 
45  for(trackingRecHit_iterator hit = start; hit != stop; ++hit )
46  result.push_back(build(&**hit));
47 
48  return result;
49 }
Definition: start.py:1
RecHitPointer build(const TrackingRecHit *p, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const
Call the MuonTransientTrackingRecHit::specificBuild.
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
TrackingRecHitCollection::base::const_iterator trackingRecHit_iterator
iterator over a vector of reference to TrackingRecHit in the same collection

Member Data Documentation

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

Definition at line 32 of file MuonTransientTrackingRecHitBuilder.h.

Referenced by build().