CMS 3D CMS Logo

Public Member Functions

MeasurementDetSystem Class Reference

#include <MeasurementDetSystem.h>

Inheritance diagram for MeasurementDetSystem:
MeasurementTracker OnDemandMeasurementTracker

List of all members.

Public Member Functions

virtual const MeasurementDetidToDet (const DetId &id) const =0
 Return the pointer to the MeasurementDet corresponding to a given DetId.

Detailed Description

Definition at line 7 of file MeasurementDetSystem.h.


Member Function Documentation

const MeasurementDet * MeasurementTracker::idToDet ( const DetId id) const [pure virtual]

Return the pointer to the MeasurementDet corresponding to a given DetId.

Implemented in MeasurementTracker, and OnDemandMeasurementTracker.

Definition at line 559 of file MeasurementTracker.cc.

Referenced by GeometricSearchDetMeasurements::get().

{
  std::map<DetId,MeasurementDet*>::const_iterator it = theDetMap.find(id);
  if(it !=theDetMap.end()) {
    return it->second;
  }else{
    //throw exception;
  }
  
  return 0; //to avoid compile warning
}