Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:58

0001 #ifndef CSCRecHitD_CSCRangeMapForRecHit_H
0002 #define CSCRecHitD_CSCRangeMapForRecHit_H
0003 
0004 /** \class CSCRangeMapForRecHit
0005  *  Comparator to retrieve CSC rechits by chamber or by layer. 
0006  *
0007  *  \author Dominique Fortin
0008  */
0009 
0010 #include <DataFormats/MuonDetId/interface/CSCDetId.h>
0011 
0012 class CSCDetIdSameDetLayerCompare {
0013 public:
0014   bool operator()(CSCDetId i1, CSCDetId i2) const;
0015 };
0016 
0017 class CSCDetIdSameChamberCompare {
0018 public:
0019   bool operator()(CSCDetId i1, CSCDetId i2) const;
0020 };
0021 
0022 class CSCRangeMapForRecHit {
0023 public:
0024   /// Constructor
0025   CSCRangeMapForRecHit();
0026 
0027   /// Destructor
0028   virtual ~CSCRangeMapForRecHit();
0029 
0030   ///  Returns a valid DetId + a valid comparator for the RangeMap.
0031   static std::pair<CSCDetId, CSCDetIdSameChamberCompare> cscChamber(CSCDetId id);
0032   static std::pair<CSCDetId, CSCDetIdSameDetLayerCompare> cscDetLayer(CSCDetId id);
0033 
0034 private:
0035 };
0036 
0037 #endif