CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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...
 

Private Attributes

edm::ESHandle
< GlobalTrackingGeometry
theTrackingGeometry
 

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:

Date:
2007/02/26 14:18:59
Revision:
1.6

Authors : A. Everett Purdue University

Definition at line 18 of file MuonTransientTrackingRecHitBuilder.cc.

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

Definition at line 21 of file MuonTransientTrackingRecHitBuilder.h.

21 {} ;

Member Function Documentation

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().

25  {
26 
27  if ( p->geographicalId().det() == DetId::Muon ) {
28  return (MuonTransientTrackingRecHit::specificBuild(trackingGeometry->idToDet(p->geographicalId()),p).get());
29  }
30 
31  return 0;
32 
33 }
DetId geographicalId() const
Detector det() const
get the detector field from this detid
Definition: DetId.h:37
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 36 of file MuonTransientTrackingRecHitBuilder.cc.

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

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

44  {
45 
47  for(trackingRecHit_iterator hit = start; hit != stop; ++hit )
48  result.push_back(build(&**hit));
49 
50  return result;
51 }
RecHitPointer build(const TrackingRecHit *p, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const
Call the MuonTransientTrackingRecHit::specificBuild.
tuple result
Definition: query.py:137
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer

Member Data Documentation

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

Definition at line 32 of file MuonTransientTrackingRecHitBuilder.h.

Referenced by build().