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
 
bool recHits (const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &me, RecHitContainer &result, std::vector< float > &out) const
 
RecHitContainer recHits (const TrajectoryStateOnSurface &tsos) 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) {}

◆ 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) {}

Member Function Documentation

◆ data()

const MeasurementTrackerEvent& MeasurementDetWithData::data ( ) const
inlineprivate

Definition at line 71 of file MeasurementDetWithData.h.

71 { return *data_; }

References data_.

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

◆ fastGeomDet()

const GeomDet& MeasurementDetWithData::fastGeomDet ( ) const
inline

Definition at line 61 of file MeasurementDetWithData.h.

61 { return mdet().fastGeomDet(); }

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

◆ 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.

49  {
50  return mdet().fastMeasurements(stateOnThisDet, tsos2, prop, est, data());
51  }

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

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

◆ geomDet()

const GeomDet& MeasurementDetWithData::geomDet ( ) const
inline

Definition at line 62 of file MeasurementDetWithData.h.

62 { return mdet().geomDet(); }

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

◆ hasBadComponents()

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

Definition at line 68 of file MeasurementDetWithData.h.

68 { return mdet().hasBadComponents(tsos, data()); }

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

◆ isActive()

bool MeasurementDetWithData::isActive ( ) const
inline

Definition at line 67 of file MeasurementDetWithData.h.

67 { return mdet().isActive(data()); }

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

Referenced by TrajSeedMatcher::layerHasValidHits().

◆ isNull()

bool MeasurementDetWithData::isNull ( ) const
inline

◆ isValid()

bool MeasurementDetWithData::isValid ( void  ) const
inline

Definition at line 12 of file MeasurementDetWithData.h.

12 { return det_ != nullptr; }

References det_.

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

◆ mdet()

const MeasurementDet& MeasurementDetWithData::mdet ( ) const
inline

◆ measurements()

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

◆ position()

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

Definition at line 64 of file MeasurementDetWithData.h.

64 { return mdet().geomDet().position(); }

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

◆ recHits() [1/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.

30  {
31  return mdet().recHits(stateOnThisDet, me, data(), result, out);
32  }

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

◆ recHits() [2/3]

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

Definition at line 23 of file MeasurementDetWithData.h.

23 { return mdet().recHits(tsos, data()); }

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

Referenced by LayerMeasurements::recHits().

◆ recHits() [3/3]

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

Definition at line 34 of file MeasurementDetWithData.h.

36  {
37  return mdet().recHits(result, stateOnThisDet, me, data());
38  }

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

◆ surface()

const Surface& MeasurementDetWithData::surface ( ) const
inline

Definition at line 63 of file MeasurementDetWithData.h.

63 { return mdet().geomDet().surface(); }

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

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().

GeomDet::position
const Surface::PositionType & position() const
The position (origin of the R.F.)
Definition: GeomDet.h:43
MeasurementDet::fastMeasurements
std::vector< TrajectoryMeasurement > fastMeasurements(const TrajectoryStateOnSurface &stateOnThisDet, const TrajectoryStateOnSurface &, const Propagator &, const MeasurementEstimator &est, const MeasurementTrackerEvent &data) const
Definition: MeasurementDet.h:56
MeasurementDet::hasBadComponents
virtual bool hasBadComponents(const TrajectoryStateOnSurface &tsos, const MeasurementTrackerEvent &data) const =0
MeasurementDet::measurements
virtual bool measurements(const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &est, const MeasurementTrackerEvent &data, TempMeasurements &result) const =0
MeasurementDetWithData::det_
const MeasurementDet * det_
Definition: MeasurementDetWithData.h:72
GeomDet::surface
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
MeasurementDet::isActive
virtual bool isActive(const MeasurementTrackerEvent &data) const =0
MeasurementDetWithData::data_
const MeasurementTrackerEvent * data_
Definition: MeasurementDetWithData.h:73
MeasurementDetWithData::mdet
const MeasurementDet & mdet() const
Definition: MeasurementDetWithData.h:15
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
mps_fire.result
result
Definition: mps_fire.py:311
MeasurementDetWithData::data
const MeasurementTrackerEvent & data() const
Definition: MeasurementDetWithData.h:71
hlt_dqm_clientPB-live_cfg.me
me
Definition: hlt_dqm_clientPB-live_cfg.py:61
MeasurementDet::fastGeomDet
const GeomDet & fastGeomDet() const
Definition: MeasurementDet.h:80
MeasurementDet::recHits
virtual RecHitContainer recHits(const TrajectoryStateOnSurface &, const MeasurementTrackerEvent &) const =0
MeasurementDet::geomDet
virtual const GeomDet & geomDet() const
Definition: MeasurementDet.h:81