Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:08

0001 //-------------------------------------------------
0002 //
0003 /**  \class DTSectCollId  
0004  *   Definition of a Sector Coollector
0005  *
0006  *
0007  *
0008  *   \authors 
0009  *           D. Bonacorsi, 
0010  *           S. Marcellini
0011  *   
0012  */
0013 //
0014 //--------------------------------------------------
0015 #ifndef DT_SECT_COLL_ID_H
0016 #define DT_SECT_COLL_ID_H
0017 
0018 class DTSectCollId {
0019 public:
0020   //  Constructor
0021   DTSectCollId() : _wheel(0), _sector(0) {}
0022 
0023   DTSectCollId(int wheel_id, int sector_id) : _wheel(wheel_id), _sector(sector_id) {}
0024 
0025   DTSectCollId(const DTSectCollId& statId) : _wheel(statId._wheel), _sector(statId._sector) {}
0026 
0027   // Destructor
0028 
0029   // Operations
0030   inline int wheel() const { return _wheel; }
0031   inline int sector() const { return _sector; }
0032 
0033   inline bool operator==(const DTSectCollId&) const;
0034   inline bool operator!=(const DTSectCollId&) const;
0035   inline bool operator<(const DTSectCollId&) const;
0036 
0037   inline DTSectCollId& operator=(const DTSectCollId&);
0038 
0039 private:
0040   int _wheel;
0041   int _sector;
0042 };
0043 
0044 #include <iosfwd>
0045 std::ostream& operator<<(std::ostream& os, const DTSectCollId& id);
0046 #include "DataFormats/MuonDetId/interface/DTSectCollId.icc"
0047 
0048 #endif