CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/DataFormats/L1DTTrackFinder/src/L1MuDTChambPhDigi.cc

Go to the documentation of this file.
00001 //-------------------------------------------------
00002 //
00003 //   Class L1MuDTChambPhDigi
00004 //
00005 //   Description: input data for PHTF trigger
00006 //
00007 //
00008 //   Author List: Jorge Troconiz  UAM Madrid
00009 //
00010 //
00011 //--------------------------------------------------
00012 
00013 //-----------------------
00014 // This Class's Header --
00015 //-----------------------
00016 #include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambPhDigi.h"
00017 
00018 //-------------------------------
00019 // Collaborating Class Headers --
00020 //-------------------------------
00021 
00022 
00023 //---------------
00024 // C++ Headers --
00025 //---------------
00026 using namespace std;
00027 
00028 //-------------------
00029 // Initializations --
00030 //-------------------
00031 
00032 
00033 //----------------
00034 // Constructors --
00035 //----------------
00036 L1MuDTChambPhDigi::L1MuDTChambPhDigi() {
00037 
00038   bx              = -100;
00039   wheel           = 0;
00040   sector          = 0;
00041   station         = 0;
00042   radialAngle     = 0;
00043   bendingAngle    = 0;
00044   qualityCode     = 7;
00045   Ts2TagCode      = 0;
00046   BxCntCode       = 0;
00047 }
00048 
00049 L1MuDTChambPhDigi::L1MuDTChambPhDigi( int ubx, int uwh, int usc, int ust,
00050                          int uphr, int uphb, int uqua, int utag, int ucnt ) {
00051 
00052   bx              = ubx;
00053   wheel           = uwh;
00054   sector          = usc;
00055   station         = ust;
00056   radialAngle     = uphr;
00057   bendingAngle    = uphb;
00058   qualityCode     = uqua;
00059   Ts2TagCode      = utag;
00060   BxCntCode       = ucnt;
00061 }
00062 
00063 //--------------
00064 // Destructor --
00065 //--------------
00066 L1MuDTChambPhDigi::~L1MuDTChambPhDigi() {
00067 }
00068 
00069 //--------------
00070 // Operations --
00071 //--------------
00072 int L1MuDTChambPhDigi::bxNum() const {
00073   return bx;
00074 }
00075 
00076 int L1MuDTChambPhDigi::whNum() const {
00077   return wheel;
00078 }
00079 int L1MuDTChambPhDigi::scNum() const {
00080   return sector;
00081 }
00082 int L1MuDTChambPhDigi::stNum() const {
00083   return station;
00084 }
00085 
00086 int L1MuDTChambPhDigi::phi() const {
00087   return radialAngle;
00088 }
00089 
00090 int L1MuDTChambPhDigi::phiB() const {
00091   return bendingAngle;
00092 }
00093 
00094 int L1MuDTChambPhDigi::code() const {
00095   return qualityCode;
00096 }
00097 
00098 int L1MuDTChambPhDigi::Ts2Tag() const {
00099   return Ts2TagCode;
00100 }
00101 
00102 int L1MuDTChambPhDigi::BxCnt() const {
00103   return BxCntCode;
00104 }