Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:46

0001 //-------------------------------------------------
0002 //
0003 //   Class L1MuDTChambPhDigi
0004 //
0005 //   Description: input data for PHTF trigger
0006 //
0007 //
0008 //   Author List: Jorge Troconiz  UAM Madrid
0009 //
0010 //
0011 //--------------------------------------------------
0012 
0013 //-----------------------
0014 // This Class's Header --
0015 //-----------------------
0016 #include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambPhDigi.h"
0017 
0018 //-------------------------------
0019 // Collaborating Class Headers --
0020 //-------------------------------
0021 
0022 //---------------
0023 // C++ Headers --
0024 //---------------
0025 
0026 //-------------------
0027 // Initializations --
0028 //-------------------
0029 
0030 //----------------
0031 // Constructors --
0032 //----------------
0033 L1MuDTChambPhDigi::L1MuDTChambPhDigi() {
0034   bx = -100;
0035   wheel = 0;
0036   sector = 0;
0037   station = 0;
0038   radialAngle = 0;
0039   bendingAngle = 0;
0040   qualityCode = 7;
0041   Ts2TagCode = 0;
0042   BxCntCode = 0;
0043   rpcBit = -10;
0044 }
0045 
0046 L1MuDTChambPhDigi::L1MuDTChambPhDigi(
0047     int ubx, int uwh, int usc, int ust, int uphr, int uphb, int uqua, int utag, int ucnt, int urpc) {
0048   bx = ubx;
0049   wheel = uwh;
0050   sector = usc;
0051   station = ust;
0052   radialAngle = uphr;
0053   bendingAngle = uphb;
0054   qualityCode = uqua;
0055   Ts2TagCode = utag;
0056   BxCntCode = ucnt;
0057   rpcBit = urpc;
0058 }
0059 
0060 //--------------
0061 // Destructor --
0062 //--------------
0063 L1MuDTChambPhDigi::~L1MuDTChambPhDigi() {}
0064 
0065 //--------------
0066 // Operations --
0067 //--------------
0068 int L1MuDTChambPhDigi::bxNum() const { return bx; }
0069 
0070 int L1MuDTChambPhDigi::whNum() const { return wheel; }
0071 int L1MuDTChambPhDigi::scNum() const { return sector; }
0072 int L1MuDTChambPhDigi::stNum() const { return station; }
0073 
0074 int L1MuDTChambPhDigi::phi() const { return radialAngle; }
0075 
0076 int L1MuDTChambPhDigi::phiB() const { return bendingAngle; }
0077 
0078 int L1MuDTChambPhDigi::code() const { return qualityCode; }
0079 
0080 int L1MuDTChambPhDigi::Ts2Tag() const { return Ts2TagCode % 2; }
0081 
0082 int L1MuDTChambPhDigi::BxCnt() const { return BxCntCode; }
0083 
0084 int L1MuDTChambPhDigi::RpcBit() const { return rpcBit; }
0085 
0086 int L1MuDTChambPhDigi::UpDownTag() const { return Ts2TagCode / 2; }