CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/L1Trigger/RPCTrigger/interface/RPCMuon.h

Go to the documentation of this file.
00001 #ifndef L1Trigger_RPCMuon_h
00002 #define L1Trigger_RPCMuon_h
00003 
00012 #include "L1Trigger/RPCTrigger/interface/RPCConst.h"
00013 #include <vector>
00014 //---------------------------------------------------------------------------
00015 class RPCMuon {
00016 public:
00018   RPCMuon();
00019 
00021   RPCMuon(const RPCConst::l1RpcConeCrdnts coneCrdnts,
00022           int ptCode, int quality, int sign, int patternNum, unsigned short firedPlanes);
00023   
00025   RPCMuon(int ptCode, int quality, int sign, int patternNum, unsigned short firedPlanes);
00026 
00027   RPCConst::l1RpcConeCrdnts getConeCrdnts() const;
00028 
00029   void setConeCrdnts(const RPCConst::l1RpcConeCrdnts& coneCrdnts);
00030 
00031   int getTower() const;
00032 
00033   int getLogSector() const;
00034 
00035   int getLogSegment() const;
00036 
00037   void setPtCode(int ptCode);
00038 
00039   int getPtCode() const;
00040 
00041   void setQuality(int quality);
00042 
00043   int getQuality() const;
00044 
00045   void setSign(int sign);
00046 
00047   int getSign() const;
00048 
00049   int getPatternNum() const;
00050 
00051   void setPatternNum(int patternNum);
00052 
00053   void setLogConeIdx(int logConeIdx);
00054 
00056   int getLogConeIdx() const;
00057 
00059   unsigned short getFiredPlanes() const;
00060 
00061   void setRefStripNum(int refStripNum);
00062 
00068   int getRefStripNum() const;
00069  
00070  
00071   struct TDigiLink {
00072      TDigiLink(short int l, short int d) : m_layer(l), m_digiIdx(d) {};
00073      short int m_layer;
00074      short int m_digiIdx;  // vec?
00075   };
00076 
00077   typedef std::vector<TDigiLink > TDigiLinkVec; 
00078 
00079   TDigiLinkVec getDigiIdxVec() {return m_digiIdxVec;};
00080   void setDigiIdxVec(TDigiLinkVec d) {m_digiIdxVec = d;};
00081   
00082 protected:
00084   RPCConst::l1RpcConeCrdnts m_ConeCrdnts;
00085 
00087   unsigned int m_PtCode;
00088 
00090   unsigned int m_Quality;
00091 
00093   unsigned int m_Sign;
00094 
00096   int m_PatternNum;  
00097 
00098   int m_LogConeIdx;
00099 
00101   unsigned short m_FiredPlanes;
00102 
00103   int m_RefStripNum;
00104 
00105 
00106   TDigiLinkVec m_digiIdxVec;
00107 
00108 };
00109 
00110 typedef std::vector<RPCMuon> L1RpcMuonsVec;
00111 #endif