Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef DataFormats_GEMDigi_ME0PadDigiCluster_h
0002 #define DataFormats_GEMDigi_ME0PadDigiCluster_h
0003 
0004 /** \class ME0PadDigiCluster
0005  *
0006  * Cluster of maximal 8 adjacent ME0 pad digis
0007  * with the same BX
0008  *  
0009  * \author Sven Dildick
0010  *
0011  */
0012 
0013 #include <cstdint>
0014 #include <iosfwd>
0015 #include <vector>
0016 
0017 class ME0PadDigiCluster {
0018 public:
0019   explicit ME0PadDigiCluster(std::vector<uint16_t> pads, int bx);
0020   ME0PadDigiCluster();
0021 
0022   bool operator==(const ME0PadDigiCluster& digi) const;
0023   bool operator!=(const ME0PadDigiCluster& digi) const;
0024   bool operator<(const ME0PadDigiCluster& digi) const;
0025 
0026   const std::vector<uint16_t>& pads() const { return v_; }
0027   int bx() const { return bx_; }
0028 
0029   void print() const;
0030 
0031 private:
0032   std::vector<uint16_t> v_;
0033   int32_t bx_;
0034 };
0035 
0036 std::ostream& operator<<(std::ostream& o, const ME0PadDigiCluster& digi);
0037 
0038 #endif