CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/L1Trigger/DTTriggerServerPhi/interface/DTChambPhSegm.h

Go to the documentation of this file.
00001 //-------------------------------------------------
00002 //
00013 //--------------------------------------------------
00014 #ifndef DT_CHAMB_PH_SEGM_H
00015 #define DT_CHAMB_PH_SEGM_H
00016 
00017 //------------------------------------
00018 // Collaborating Class Declarations --
00019 //------------------------------------
00020 
00021 //----------------------
00022 // Base Class Headers --
00023 //----------------------
00024 
00025 #include "DataFormats/MuonDetId/interface/DTChamberId.h"
00026 #include "DataFormats/MuonDetId/interface/DTSuperLayerId.h"
00027 #include "DataFormats/MuonDetId/interface/DTLayerId.h"
00028 #include "DataFormats/MuonDetId/interface/DTWireId.h"
00029 #include "L1Trigger/DTTraco/interface/DTTracoTrigData.h"
00030 #include "L1Trigger/DTUtilities/interface/DTTrigData.h"
00031 
00032 //---------------
00033 // C++ Headers --
00034 //---------------
00035 #include <vector>
00036 
00037 //              ---------------------
00038 //              -- Class Interface --
00039 //              ---------------------
00040 
00041 typedef unsigned char myint8;
00042 
00043 class DTChambPhSegm : public DTTrigData {
00044 
00045   public:
00046 
00048     DTChambPhSegm(DTChamberId, int);
00049 
00051 /*sm   DTChambPhSegm(MuBarChamberId, int, */
00052 /*sm                const DTTracoTrigData* tracotrig, int); */
00053     DTChambPhSegm(DTChamberId, int,
00054                     const DTTracoTrigData*, int);
00056 /*sm   DTChambPhSegm(const DTChambPhSegm& seg); */
00057     DTChambPhSegm(const DTChambPhSegm&); 
00058 
00060     ~DTChambPhSegm();
00061 
00062   
00064     /*sm    DTChambPhSegm& operator=(const DTChambPhSegm& seg); */
00065     DTChambPhSegm& operator=(const DTChambPhSegm&);
00067     inline void setTracoTrig(const DTTracoTrigData* tracotrig, int isFirst) {
00068 
00069        m_tracotrig = tracotrig; 
00070        m_isFirst = isFirst;
00071     }
00072 
00074     void clear();
00075 
00077     inline const DTTracoTrigData* tracoTrig() const { return m_tracotrig; }
00078 
00080     inline int step() const { return m_step; }
00081 
00083     DTChamberId ChamberId() const { return m_chamberid; }
00084 
00086     void print() const;
00087 
00089     inline int tracoNumber() const { return m_tracotrig->tracoNumber(); }
00090 
00092     inline int isFirst() const { return m_isFirst == 1; }
00093 
00095     int code() const { return m_tracotrig->qdec(); }
00096 
00098     inline int oldCode() const { return m_tracotrig->code(); }
00099 
00101     inline float K() const { return m_tracotrig->K(); }
00102 
00104     inline float X() const { return m_tracotrig->X(); }
00105 
00107     int psi() const { return m_tracotrig->psi(); }
00108 
00110     int psiR() const { return m_tracotrig->psiR(); }
00111 
00113     int phi() const { return m_tracotrig->psiR(); }
00114 
00116     inline int DeltaPsiR() const { return m_tracotrig->DeltaPsiR(); }
00117 
00119     inline int phiB() const { return m_tracotrig->DeltaPsiR(); }
00120 
00122     inline int posMask() const { return m_tracotrig->posMask(); }
00123   
00125     inline int pvCode() const { return m_tracotrig->pvCode(); }
00126 
00128     inline int pvK() const { return m_tracotrig->pvK(); }
00129 
00130   private:
00131 
00133     DTChamberId m_chamberid;
00134 
00136     myint8 m_step;
00137 
00139     myint8 m_isFirst;
00140 
00142     const DTTracoTrigData* m_tracotrig;
00143 
00144 };
00145 
00146 #endif