CMS 3D CMS Logo

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

#include <MeasurementDetWithData.h>

Public Types

typedef MeasurementDet::RecHitContainer RecHitContainer
 
using SimpleHitContainer = MeasurementDet::SimpleHitContainer
 
typedef MeasurementDet::TempMeasurements TempMeasurements
 

Public Member Functions

const GeomDetfastGeomDet () const
 
std::vector< TrajectoryMeasurementfastMeasurements (const TrajectoryStateOnSurface &stateOnThisDet, const TrajectoryStateOnSurface &tsos2, const Propagator &prop, const MeasurementEstimator &est) const
 
const GeomDetgeomDet () const
 
bool hasBadComponents (const TrajectoryStateOnSurface &tsos) const
 
bool isActive () const
 
bool isNull () const
 
bool isValid () const
 
const MeasurementDetmdet () const
 
 MeasurementDetWithData ()
 
 MeasurementDetWithData (const MeasurementDet &det, const MeasurementTrackerEvent &data)
 
bool measurements (const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &est, TempMeasurements &result) const
 
const Surface::PositionTypeposition () const
 
RecHitContainer recHits (const TrajectoryStateOnSurface &tsos) const
 
bool recHits (const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &me, RecHitContainer &result, std::vector< float > &out) const
 
bool recHits (SimpleHitContainer &result, const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &me) const
 
const Surfacesurface () const
 

Private Member Functions

const MeasurementTrackerEventdata () const
 

Private Attributes

const MeasurementTrackerEventdata_
 
const MeasurementDetdet_
 

Detailed Description

Definition at line 6 of file MeasurementDetWithData.h.

Member Typedef Documentation

◆ RecHitContainer

Definition at line 19 of file MeasurementDetWithData.h.

◆ SimpleHitContainer

Definition at line 21 of file MeasurementDetWithData.h.

◆ TempMeasurements

Definition at line 18 of file MeasurementDetWithData.h.

Constructor & Destructor Documentation

◆ MeasurementDetWithData() [1/2]

MeasurementDetWithData::MeasurementDetWithData ( )
inline

Definition at line 8 of file MeasurementDetWithData.h.

8 : det_(nullptr), data_(nullptr) {}
const MeasurementDet * det_
const MeasurementTrackerEvent * data_

◆ MeasurementDetWithData() [2/2]

MeasurementDetWithData::MeasurementDetWithData ( const MeasurementDet det,
const MeasurementTrackerEvent data 
)
inline

Definition at line 10 of file MeasurementDetWithData.h.

10 : det_(&det), data_(&data) {}
const MeasurementDet * det_
const MeasurementTrackerEvent * data_
const MeasurementTrackerEvent & data() const

Member Function Documentation

◆ data()

const MeasurementTrackerEvent& MeasurementDetWithData::data ( ) const
inlineprivate

Definition at line 71 of file MeasurementDetWithData.h.

References data_.

Referenced by fastMeasurements(), hasBadComponents(), isActive(), measurements(), and recHits().

71 { return *data_; }
const MeasurementTrackerEvent * data_

◆ fastGeomDet()

const GeomDet& MeasurementDetWithData::fastGeomDet ( ) const
inline

Definition at line 61 of file MeasurementDetWithData.h.

References MeasurementDet::fastGeomDet(), and mdet().

61 { return mdet().fastGeomDet(); }
const GeomDet & fastGeomDet() const
const MeasurementDet & mdet() const

◆ fastMeasurements()

std::vector<TrajectoryMeasurement> MeasurementDetWithData::fastMeasurements ( const TrajectoryStateOnSurface stateOnThisDet,
const TrajectoryStateOnSurface tsos2,
const Propagator prop,
const MeasurementEstimator est 
) 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 46 of file MeasurementDetWithData.h.

References data(), MeasurementDet::fastMeasurements(), and mdet().

Referenced by OutsideInMuonSeeder::doLayer(), TSGForOIDNN::makeSeedsFromHitDoublets(), TSGForOI::makeSeedsFromHits(), TSGForOIFromL2::makeSeedsFromHits(), TSGForOIDNN::makeSeedsFromHits(), and TSGForRoadSearch::pushTrajectorySeed().

49  {
50  return mdet().fastMeasurements(stateOnThisDet, tsos2, prop, est, data());
51  }
std::vector< TrajectoryMeasurement > fastMeasurements(const TrajectoryStateOnSurface &stateOnThisDet, const TrajectoryStateOnSurface &, const Propagator &, const MeasurementEstimator &est, const MeasurementTrackerEvent &data) const
const MeasurementDet & mdet() const
const MeasurementTrackerEvent & data() const

◆ geomDet()

const GeomDet& MeasurementDetWithData::geomDet ( ) const
inline

Definition at line 62 of file MeasurementDetWithData.h.

References MeasurementDet::geomDet(), and mdet().

62 { return mdet().geomDet(); }
virtual const GeomDet & geomDet() const
const MeasurementDet & mdet() const

◆ hasBadComponents()

bool MeasurementDetWithData::hasBadComponents ( const TrajectoryStateOnSurface tsos) const
inline

Definition at line 68 of file MeasurementDetWithData.h.

References data(), MeasurementDet::hasBadComponents(), and mdet().

68 { return mdet().hasBadComponents(tsos, data()); }
const MeasurementDet & mdet() const
const MeasurementTrackerEvent & data() const
virtual bool hasBadComponents(const TrajectoryStateOnSurface &tsos, const MeasurementTrackerEvent &data) const =0

◆ isActive()

bool MeasurementDetWithData::isActive ( ) const
inline

Definition at line 67 of file MeasurementDetWithData.h.

References data(), MeasurementDet::isActive(), and mdet().

Referenced by TrajSeedMatcher::layerHasValidHits().

67 { return mdet().isActive(data()); }
virtual bool isActive(const MeasurementTrackerEvent &data) const =0
const MeasurementDet & mdet() const
const MeasurementTrackerEvent & data() const

◆ isNull()

bool MeasurementDetWithData::isNull ( ) const
inline

◆ isValid()

bool MeasurementDetWithData::isValid ( void  ) const
inline

Definition at line 12 of file MeasurementDetWithData.h.

References det_.

Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().

12 { return det_ != nullptr; }
const MeasurementDet * det_

◆ mdet()

const MeasurementDet& MeasurementDetWithData::mdet ( ) const
inline

◆ measurements()

bool MeasurementDetWithData::measurements ( const TrajectoryStateOnSurface stateOnThisDet,
const MeasurementEstimator est,
TempMeasurements result 
) const
inline

Definition at line 54 of file MeasurementDetWithData.h.

References data(), mdet(), MeasurementDet::measurements(), and mps_fire::result.

Referenced by LayerMeasurements::groupedMeasurements(), SimpleDAFHitCollector::recHits(), and TrajectorySegmentBuilder::redoMeasurements().

56  {
57  return mdet().measurements(stateOnThisDet, est, data(), result);
58  }
const MeasurementDet & mdet() const
const MeasurementTrackerEvent & data() const
virtual bool measurements(const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &est, const MeasurementTrackerEvent &data, TempMeasurements &result) const =0

◆ position()

const Surface::PositionType& MeasurementDetWithData::position ( ) const
inline

Definition at line 64 of file MeasurementDetWithData.h.

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

64 { return mdet().geomDet().position(); }
virtual const GeomDet & geomDet() const
const Surface::PositionType & position() const
The position (origin of the R.F.)
Definition: GeomDet.h:43
const MeasurementDet & mdet() const

◆ recHits() [1/3]

RecHitContainer MeasurementDetWithData::recHits ( const TrajectoryStateOnSurface tsos) const
inline

Definition at line 23 of file MeasurementDetWithData.h.

References data(), mdet(), and MeasurementDet::recHits().

Referenced by LayerMeasurements::recHits().

23 { return mdet().recHits(tsos, data()); }
virtual RecHitContainer recHits(const TrajectoryStateOnSurface &, const MeasurementTrackerEvent &) const =0
const MeasurementDet & mdet() const
const MeasurementTrackerEvent & data() const

◆ recHits() [2/3]

bool MeasurementDetWithData::recHits ( const TrajectoryStateOnSurface stateOnThisDet,
const MeasurementEstimator me,
RecHitContainer result,
std::vector< float > &  out 
) const
inline

Definition at line 27 of file MeasurementDetWithData.h.

References data(), mdet(), hlt_dqm_clientPB-live_cfg::me, MillePedeFileConverter_cfg::out, MeasurementDet::recHits(), and mps_fire::result.

30  {
31  return mdet().recHits(stateOnThisDet, me, data(), result, out);
32  }
virtual RecHitContainer recHits(const TrajectoryStateOnSurface &, const MeasurementTrackerEvent &) const =0
const MeasurementDet & mdet() const
const MeasurementTrackerEvent & data() const

◆ recHits() [3/3]

bool MeasurementDetWithData::recHits ( SimpleHitContainer result,
const TrajectoryStateOnSurface stateOnThisDet,
const MeasurementEstimator me 
) const
inline

Definition at line 34 of file MeasurementDetWithData.h.

References data(), mdet(), hlt_dqm_clientPB-live_cfg::me, MeasurementDet::recHits(), and mps_fire::result.

36  {
37  return mdet().recHits(result, stateOnThisDet, me, data());
38  }
virtual RecHitContainer recHits(const TrajectoryStateOnSurface &, const MeasurementTrackerEvent &) const =0
const MeasurementDet & mdet() const
const MeasurementTrackerEvent & data() const

◆ surface()

const Surface& MeasurementDetWithData::surface ( ) const
inline

Definition at line 63 of file MeasurementDetWithData.h.

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

63 { return mdet().geomDet().surface(); }
virtual const GeomDet & geomDet() const
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
const MeasurementDet & mdet() const

Member Data Documentation

◆ data_

const MeasurementTrackerEvent* MeasurementDetWithData::data_
private

Definition at line 73 of file MeasurementDetWithData.h.

Referenced by data().

◆ det_

const MeasurementDet* MeasurementDetWithData::det_
private

Definition at line 72 of file MeasurementDetWithData.h.

Referenced by isNull(), isValid(), and mdet().