CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/FastSimulation/CaloGeometryTools/interface/DistanceToCell.h

Go to the documentation of this file.
00001 #ifndef FastSimulation_CalorimeterProperties_DistanceToCell_h
00002 #define FastSimulation_CalorimeterProperties_DistanceToCell_h
00003 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
00004 #include "DataFormats/DetId/interface/DetId.h"
00005 
00006 // used in GeometryHelper to sort the vector given by GetWindow
00007 // not much optimized. 
00008 
00009 class CaloSubdetectorGeometry;
00010 
00011 class DistanceToCell{
00012 
00013  public:
00014   DistanceToCell();
00015   DistanceToCell(const DistanceToCell& );
00016   DistanceToCell(const CaloSubdetectorGeometry * det, const DetId& cell);
00017   ~DistanceToCell(){;}
00018   bool operator() (const DetId & c1, const DetId & c2);
00019 
00020  private:
00021   const  CaloSubdetectorGeometry * det_;
00022   DetId pivot_;
00023   GlobalPoint pivotPosition_;
00024 
00025 };
00026 
00027 #endif