CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
MTDTransientTrackingRecHitBuilder Class Reference

#include <MTDTransientTrackingRecHitBuilder.h>

Inheritance diagram for MTDTransientTrackingRecHitBuilder:
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 MTDTransientTrackingRecHit::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
 
 MTDTransientTrackingRecHitBuilder (edm::ESHandle< GlobalTrackingGeometry > trackingGeometry=0)
 
 ~MTDTransientTrackingRecHitBuilder () 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 MTDTransientTrackingRecHitBuilder.h.

Member Typedef Documentation

Definition at line 17 of file MTDTransientTrackingRecHitBuilder.h.

Definition at line 16 of file MTDTransientTrackingRecHitBuilder.h.

Constructor & Destructor Documentation

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

Class: MTDTransientTrackingRecHitBuilder

Description:

Authors : L. Gray FNAL

Definition at line 16 of file MTDTransientTrackingRecHitBuilder.cc.

16  :
17  theTrackingGeometry(trackingGeometry)
18 {}
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
MTDTransientTrackingRecHitBuilder::~MTDTransientTrackingRecHitBuilder ( )
inlineoverride

Member Function Documentation

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

Call the MTDTransientTrackingRecHit::specificBuild.

Definition at line 22 of file MTDTransientTrackingRecHitBuilder.cc.

References TrackingRecHit::cloneSH(), DetId::det(), FastTime, DetId::Forward, TrackingRecHit::geographicalId(), and DetId::subdetId().

Referenced by build(), and ~MTDTransientTrackingRecHitBuilder().

23  {
24 
25  if ( p->geographicalId().det() == DetId::Forward &&
26  p->geographicalId().subdetId() == FastTime) {
27  return p->cloneSH();
28  }
29 
30  return RecHitPointer();
31 
32 }
virtual RecHitPointer cloneSH() const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:41
TransientTrackingRecHit::RecHitPointer RecHitPointer
DetId geographicalId() const
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:39
MTDTransientTrackingRecHitBuilder::RecHitPointer MTDTransientTrackingRecHitBuilder::build ( const TrackingRecHit p) const
overridevirtual

build a tracking rechit from an existing rechit

Implements TransientTrackingRecHitBuilder.

Definition at line 35 of file MTDTransientTrackingRecHitBuilder.cc.

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

35  {
37  else
38  throw cms::Exception("MTD|RecoMTD|MTDTransientTrackingRecHitBuilder")
39  <<"ERROR! You are trying to build a MTDTransientTrackingRecHit with a non valid GlobalTrackingGeometry";
40 }
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
RecHitPointer build(const TrackingRecHit *p, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const
Call the MTDTransientTrackingRecHit::specificBuild.
bool isValid() const
Definition: ESHandle.h:44
MTDTransientTrackingRecHitBuilder::ConstRecHitContainer MTDTransientTrackingRecHitBuilder::build ( const trackingRecHit_iterator start,
const trackingRecHit_iterator stop 
) const

Definition at line 43 of file MTDTransientTrackingRecHitBuilder.cc.

References build(), and mps_fire::result.

43  {
44 
46  for(trackingRecHit_iterator hit = start; hit != stop; ++hit )
47  result.push_back(build(&**hit));
48 
49  return result;
50 }
RecHitPointer build(const TrackingRecHit *p, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const
Call the MTDTransientTrackingRecHit::specificBuild.
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer

Member Data Documentation

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

Definition at line 33 of file MTDTransientTrackingRecHitBuilder.h.

Referenced by build().