CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/DataFormats/CSCDigi/interface/CSCWireDigi.h

Go to the documentation of this file.
00001 #ifndef CSCWireDigi_CSCWireDigi_h
00002 #define CSCWireDigi_CSCWireDigi_h
00003 
00010 #include <vector>
00011 #include <iosfwd>
00012 #include <stdint.h>
00013 
00014 class CSCWireDigi{
00015 
00016 public:
00017 
00019   
00020   CSCWireDigi (int wire, unsigned int tbinb);  
00021   CSCWireDigi ();                     
00022 
00024   int getWireGroup() const {return wire_;}
00026   int getWireGroupBX() const {return wireBX_;}
00029   int getBXandWireGroup() const {return wireBXandWires_;}
00031   unsigned int getTimeBinWord() const {return tbinb_;}
00033   int getBeamCrossingTag() const;
00035   int getTimeBin()         const;
00037   std::vector<int> getTimeBinsOn() const;
00038 
00040   void print() const;
00041 
00043   void setWireGroup(unsigned int wiregroup) {wire_= wiregroup;}
00044 
00045 
00046 private:
00047 
00048   int wire_;
00049   uint32_t tbinb_;
00051   int wireBXandWires_;
00052   int wireBX_;
00053 
00054 };
00055 
00056 std::ostream & operator<<(std::ostream & o, const CSCWireDigi& digi);
00057 
00058 #endif