CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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=nullptr)
 
 ~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
< GlobalTrackingGeometry
theTrackingGeometry
 

Detailed Description

Definition at line 12 of file MTDTransientTrackingRecHitBuilder.h.

Member Typedef Documentation

Definition at line 15 of file MTDTransientTrackingRecHitBuilder.h.

Definition at line 14 of file MTDTransientTrackingRecHitBuilder.h.

Constructor & Destructor Documentation

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

Class: MTDTransientTrackingRecHitBuilder

Description:

Authors : L. Gray FNAL

Definition at line 16 of file MTDTransientTrackingRecHitBuilder.cc.

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

Definition at line 19 of file MTDTransientTrackingRecHitBuilder.h.

19 {};

Member Function Documentation

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

Call the MTDTransientTrackingRecHit::specificBuild.

Definition at line 20 of file MTDTransientTrackingRecHitBuilder.cc.

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

Referenced by build().

21  {
22  if (p->geographicalId().det() == DetId::Forward && p->geographicalId().subdetId() == FastTime) {
23  return p->cloneSH();
24  }
25 
26  return RecHitPointer();
27 }
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:48
TransientTrackingRecHit::RecHitPointer RecHitPointer
DetId geographicalId() const
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
MTDTransientTrackingRecHitBuilder::RecHitPointer MTDTransientTrackingRecHitBuilder::build ( const TrackingRecHit p) const
overridevirtual

build a tracking rechit from an existing rechit

Implements TransientTrackingRecHitBuilder.

Definition at line 29 of file MTDTransientTrackingRecHitBuilder.cc.

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

30  {
32  return build(p, theTrackingGeometry);
33  else
34  throw cms::Exception("MTD|RecoMTD|MTDTransientTrackingRecHitBuilder")
35  << "ERROR! You are trying to build a MTDTransientTrackingRecHit with a non valid GlobalTrackingGeometry";
36 }
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 38 of file MTDTransientTrackingRecHitBuilder.cc.

References build(), and mps_fire::result.

39  {
41  for (trackingRecHit_iterator hit = start; hit != stop; ++hit)
42  result.push_back(build(&**hit));
43 
44  return result;
45 }
tuple result
Definition: mps_fire.py:311
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 30 of file MTDTransientTrackingRecHitBuilder.h.

Referenced by build().