Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:00:38

0001 #ifndef FastSimulation_CalorimeterProperties_DistanceToCell_h
0002 #define FastSimulation_CalorimeterProperties_DistanceToCell_h
0003 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
0004 #include "DataFormats/DetId/interface/DetId.h"
0005 
0006 // used in GeometryHelper to sort the vector given by GetWindow
0007 // not much optimized.
0008 
0009 class CaloSubdetectorGeometry;
0010 
0011 class DistanceToCell {
0012 public:
0013   DistanceToCell();
0014   DistanceToCell(const DistanceToCell&);
0015   DistanceToCell(const CaloSubdetectorGeometry* det, const DetId& cell);
0016   ~DistanceToCell() { ; }
0017   bool operator()(const DetId& c1, const DetId& c2);
0018 
0019 private:
0020   const CaloSubdetectorGeometry* det_;
0021   DetId pivot_;
0022   GlobalPoint pivotPosition_;
0023 };
0024 
0025 #endif