CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

MuonTransientTrackingRecHitBuilder Class Reference

#include <MuonTransientTrackingRecHitBuilder.h>

Inheritance diagram for MuonTransientTrackingRecHitBuilder:
TransientTrackingRecHitBuilder

List of all members.

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)

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.

Reimplemented from TransientTrackingRecHitBuilder.

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.

                                                                                                                          :
  theTrackingGeometry(trackingGeometry)
{}

Member Function Documentation

MuonTransientTrackingRecHitBuilder::RecHitPointer MuonTransientTrackingRecHitBuilder::build ( const TrackingRecHit p,
edm::ESHandle< GlobalTrackingGeometry trackingGeometry 
) const
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";
}

Member Data Documentation

Definition at line 30 of file MuonTransientTrackingRecHitBuilder.h.

Referenced by build().