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 | Protected Attributes | Private Attributes
MeasurementDet Class Referenceabstract

#include <MeasurementDet.h>

Inheritance diagram for MeasurementDet:
GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > TkPixelMeasurementDet

Public Types

typedef
TrackingRecHit::ConstRecHitContainer 
RecHitContainer
 
using SimpleHitContainer = std::vector< BaseTrackerRecHit * >
 
typedef tracking::TempMeasurements TempMeasurements
 

Public Member Functions

const GeomDetfastGeomDet () const
 
std::vector
< TrajectoryMeasurement
fastMeasurements (const TrajectoryStateOnSurface &stateOnThisDet, const TrajectoryStateOnSurface &, const Propagator &, const MeasurementEstimator &est, const MeasurementTrackerEvent &data) const
 
virtual const GeomDetgeomDet () const
 
virtual bool hasBadComponents (const TrajectoryStateOnSurface &tsos, const MeasurementTrackerEvent &data) const =0
 
virtual bool isActive (const MeasurementTrackerEvent &data) const =0
 
 MeasurementDet (const GeomDet *gdet)
 
virtual bool measurements (const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &est, const MeasurementTrackerEvent &data, TempMeasurements &result) const =0
 
const Surface::PositionTypeposition () const
 
virtual RecHitContainer recHits (const TrajectoryStateOnSurface &, const MeasurementTrackerEvent &) const =0
 
virtual bool recHits (const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &, const MeasurementTrackerEvent &data, RecHitContainer &result, std::vector< float > &) const
 
virtual bool recHits (SimpleHitContainer &result, const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &, const MeasurementTrackerEvent &data) const
 
const Surfacesurface () const
 

Protected Attributes

TrackingRecHit::ConstRecHitPointer theInactiveHit
 
TrackingRecHit::ConstRecHitPointer theMissingHit
 

Private Attributes

const GeomDettheGeomDet
 

Detailed Description

Definition at line 18 of file MeasurementDet.h.

Member Typedef Documentation

Definition at line 21 of file MeasurementDet.h.

Definition at line 23 of file MeasurementDet.h.

Definition at line 20 of file MeasurementDet.h.

Constructor & Destructor Documentation

MeasurementDet::MeasurementDet ( const GeomDet gdet)
inline

Definition at line 26 of file MeasurementDet.h.

26  :
27  theGeomDet(gdet),
28  theMissingHit(std::make_shared<InvalidTrackingRecHit>(fastGeomDet(),TrackingRecHit::missing)),
29  theInactiveHit(std::make_shared<InvalidTrackingRecHit>(fastGeomDet(),TrackingRecHit::inactive)){}
const GeomDet * theGeomDet
TrackingRecHit::ConstRecHitPointer theMissingHit
const GeomDet & fastGeomDet() const
TrackingRecHit::ConstRecHitPointer theInactiveHit

Member Function Documentation

const GeomDet& MeasurementDet::fastGeomDet ( ) const
inline
std::vector<TrajectoryMeasurement> MeasurementDet::fastMeasurements ( const TrajectoryStateOnSurface stateOnThisDet,
const TrajectoryStateOnSurface ,
const Propagator ,
const MeasurementEstimator est,
const MeasurementTrackerEvent data 
) const
inline

obsolete version in case the TrajectoryState on the surface of the Det is already available. The first TrajectoryStateOnSurface is on the surface of this Det, and the second TrajectoryStateOnSurface is not used, as the propagator... The stateOnThisDet should the result of
prop.propagate( startingState, this->surface())

Definition at line 52 of file MeasurementDet.h.

References tracking::TempMeasurements::distances, tracking::TempMeasurements::hits, i, cmsHarvester::index, j, measurements(), query::result, tracking::TempMeasurements::size(), and tracking::TempMeasurements::sortIndex().

Referenced by MeasurementDetWithData::fastMeasurements().

56  {
57 
58  TempMeasurements tmps;
59  measurements(stateOnThisDet, est, data, tmps);
60  std::vector<TrajectoryMeasurement> result;
61  result.reserve(tmps.size());
62  int index[tmps.size()]; tmps.sortIndex(index);
63  for (std::size_t i=0; i!=tmps.size(); ++i) {
64  auto j=index[i];
65  result.emplace_back(stateOnThisDet,std::move(tmps.hits[j]),tmps.distances[j]);
66  }
67  return result;
68  }
int i
Definition: DBlmapReader.cc:9
tracking::TempMeasurements TempMeasurements
tuple result
Definition: query.py:137
int j
Definition: DBlmapReader.cc:9
virtual bool measurements(const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &est, const MeasurementTrackerEvent &data, TempMeasurements &result) const =0
virtual const GeomDet& MeasurementDet::geomDet ( ) const
inlinevirtual
virtual bool MeasurementDet::hasBadComponents ( const TrajectoryStateOnSurface tsos,
const MeasurementTrackerEvent data 
) const
pure virtual
virtual bool MeasurementDet::isActive ( const MeasurementTrackerEvent data) const
pure virtual
virtual bool MeasurementDet::measurements ( const TrajectoryStateOnSurface stateOnThisDet,
const MeasurementEstimator est,
const MeasurementTrackerEvent data,
TempMeasurements result 
) const
pure virtual
const Surface::PositionType& MeasurementDet::position ( ) const
inline

Definition at line 82 of file MeasurementDet.h.

References geomDet(), and GeomDet::position().

Referenced by CkfDebugger::analyseRecHitExistance().

82 {return geomDet().position();}
virtual const GeomDet & geomDet() const
const Surface::PositionType & position() const
The position (origin of the R.F.)
Definition: GeomDet.h:41
virtual RecHitContainer MeasurementDet::recHits ( const TrajectoryStateOnSurface ,
const MeasurementTrackerEvent  
) const
pure virtual
virtual bool MeasurementDet::recHits ( const TrajectoryStateOnSurface stateOnThisDet,
const MeasurementEstimator ,
const MeasurementTrackerEvent data,
RecHitContainer result,
std::vector< float > &   
) const
inlinevirtual

Reimplemented in GCC11_FINAL< T, TOPO >.

Definition at line 35 of file MeasurementDet.h.

References recHits().

36  {
37  result = recHits(stateOnThisDet, data);
38  return !result.empty();
39  }
tuple result
Definition: query.py:137
virtual RecHitContainer recHits(const TrajectoryStateOnSurface &, const MeasurementTrackerEvent &) const =0
virtual bool MeasurementDet::recHits ( SimpleHitContainer result,
const TrajectoryStateOnSurface stateOnThisDet,
const MeasurementEstimator ,
const MeasurementTrackerEvent data 
) const
inlinevirtual

Reimplemented in GCC11_FINAL< T, TOPO >, TkPixelMeasurementDet, and GCC11_FINAL< T, TOPO >.

Definition at line 42 of file MeasurementDet.h.

43  { return false;}
const Surface& MeasurementDet::surface ( ) const
inline

Definition at line 80 of file MeasurementDet.h.

References geomDet(), and GeomDet::surface().

Referenced by CkfDebugger::analyseRecHitExistance().

80 {return geomDet().surface();}
virtual const GeomDet & geomDet() const
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:35

Member Data Documentation

const GeomDet* MeasurementDet::theGeomDet
private

Definition at line 89 of file MeasurementDet.h.

Referenced by fastGeomDet(), and geomDet().

TrackingRecHit::ConstRecHitPointer MeasurementDet::theInactiveHit
protected

Definition at line 92 of file MeasurementDet.h.

Referenced by TkPixelMeasurementDet::measurements().

TrackingRecHit::ConstRecHitPointer MeasurementDet::theMissingHit
protected

Definition at line 91 of file MeasurementDet.h.

Referenced by TkPixelMeasurementDet::measurements().