#include <MuonTransientTrackingRecHitBuilder.h>
Public Types | |
typedef TransientTrackingRecHit::ConstRecHitContainer | ConstRecHitContainer |
typedef TransientTrackingRecHit::RecHitPointer | RecHitPointer |
Public Member Functions | |
RecHitPointer | build (const TrackingRecHit *p, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const |
Call the MuonTransientTrackingRecHit::specificBuild. | |
ConstRecHitContainer | build (const trackingRecHit_iterator start, const trackingRecHit_iterator stop) const |
RecHitPointer | build (const TrackingRecHit *p) const |
build a tracking rechit from an existing rechit | |
MuonTransientTrackingRecHitBuilder (edm::ESHandle< GlobalTrackingGeometry > trackingGeometry=0) | |
virtual | ~MuonTransientTrackingRecHitBuilder () |
Private Attributes | |
edm::ESHandle < GlobalTrackingGeometry > | theTrackingGeometry |
Definition at line 12 of file MuonTransientTrackingRecHitBuilder.h.
typedef TransientTrackingRecHit::ConstRecHitContainer MuonTransientTrackingRecHitBuilder::ConstRecHitContainer |
Definition at line 17 of file MuonTransientTrackingRecHitBuilder.h.
Reimplemented from TransientTrackingRecHitBuilder.
Definition at line 16 of file MuonTransientTrackingRecHitBuilder.h.
MuonTransientTrackingRecHitBuilder::MuonTransientTrackingRecHitBuilder | ( | edm::ESHandle< GlobalTrackingGeometry > | trackingGeometry = 0 | ) |
Class: MuonTransientTrackingRecHitBuilder
Authors : A. Everett Purdue University
Definition at line 18 of file MuonTransientTrackingRecHitBuilder.cc.
: theTrackingGeometry(trackingGeometry) {}
virtual MuonTransientTrackingRecHitBuilder::~MuonTransientTrackingRecHitBuilder | ( | ) | [inline, virtual] |
Definition at line 21 of file MuonTransientTrackingRecHitBuilder.h.
{} ;
MuonTransientTrackingRecHitBuilder::RecHitPointer MuonTransientTrackingRecHitBuilder::build | ( | const TrackingRecHit * | p, |
edm::ESHandle< GlobalTrackingGeometry > | trackingGeometry | ||
) | const |
Call the MuonTransientTrackingRecHit::specificBuild.
Definition at line 24 of file MuonTransientTrackingRecHitBuilder.cc.
References DetId::det(), TrackingRecHit::geographicalId(), DetId::Muon, and MuonTransientTrackingRecHit::specificBuild().
Referenced by build(), TrackerToMuonPropagator::produce(), and CSCOverlapsTrackPreparation::produce().
{ if ( p->geographicalId().det() == DetId::Muon ) { return (MuonTransientTrackingRecHit::specificBuild(trackingGeometry->idToDet(p->geographicalId()),p).get()); } return 0; }
MuonTransientTrackingRecHitBuilder::ConstRecHitContainer MuonTransientTrackingRecHitBuilder::build | ( | const trackingRecHit_iterator | start, |
const trackingRecHit_iterator | stop | ||
) | const |
Definition at line 44 of file MuonTransientTrackingRecHitBuilder.cc.
References build(), and query::result.
{ ConstRecHitContainer result; for(trackingRecHit_iterator hit = start; hit != stop; ++hit ) result.push_back(build(&**hit)); return result; }
MuonTransientTrackingRecHitBuilder::RecHitPointer MuonTransientTrackingRecHitBuilder::build | ( | const TrackingRecHit * | p | ) | const [virtual] |
build a tracking rechit from an existing rechit
Implements TransientTrackingRecHitBuilder.
Definition at line 36 of file MuonTransientTrackingRecHitBuilder.cc.
References build(), Exception, edm::ESHandleBase::isValid(), and theTrackingGeometry.
{ if(theTrackingGeometry.isValid()) return build(p,theTrackingGeometry); else throw cms::Exception("Muon|RecoMuon|MuonTransientTrackingRecHitBuilder") <<"ERROR! You are trying to build a MuonTransientTrackingRecHit with a non valid GlobalTrackingGeometry"; }
edm::ESHandle<GlobalTrackingGeometry> MuonTransientTrackingRecHitBuilder::theTrackingGeometry [private] |
Definition at line 32 of file MuonTransientTrackingRecHitBuilder.h.
Referenced by build().