CMS 3D CMS Logo

L1MuDTChambPhDigi.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // Class L1MuDTChambPhDigi
4 //
5 // Description: input data for PHTF trigger
6 //
7 //
8 // Author List: Jorge Troconiz UAM Madrid
9 //
10 //
11 //--------------------------------------------------
12 
13 //-----------------------
14 // This Class's Header --
15 //-----------------------
17 
18 //-------------------------------
19 // Collaborating Class Headers --
20 //-------------------------------
21 
22 //---------------
23 // C++ Headers --
24 //---------------
25 
26 //-------------------
27 // Initializations --
28 //-------------------
29 
30 //----------------
31 // Constructors --
32 //----------------
34  bx = -100;
35  wheel = 0;
36  sector = 0;
37  station = 0;
38  radialAngle = 0;
39  bendingAngle = 0;
40  qualityCode = 7;
41  Ts2TagCode = 0;
42  BxCntCode = 0;
43  rpcBit = -10;
44 }
45 
47  int ubx, int uwh, int usc, int ust, int uphr, int uphb, int uqua, int utag, int ucnt, int urpc) {
48  bx = ubx;
49  wheel = uwh;
50  sector = usc;
51  station = ust;
52  radialAngle = uphr;
53  bendingAngle = uphb;
54  qualityCode = uqua;
55  Ts2TagCode = utag;
56  BxCntCode = ucnt;
57  rpcBit = urpc;
58 }
59 
60 //--------------
61 // Destructor --
62 //--------------
64 
65 //--------------
66 // Operations --
67 //--------------
68 int L1MuDTChambPhDigi::bxNum() const { return bx; }
69 
70 int L1MuDTChambPhDigi::whNum() const { return wheel; }
71 int L1MuDTChambPhDigi::scNum() const { return sector; }
72 int L1MuDTChambPhDigi::stNum() const { return station; }
73 
74 int L1MuDTChambPhDigi::phi() const { return radialAngle; }
75 
76 int L1MuDTChambPhDigi::phiB() const { return bendingAngle; }
77 
78 int L1MuDTChambPhDigi::code() const { return qualityCode; }
79 
80 int L1MuDTChambPhDigi::Ts2Tag() const { return Ts2TagCode % 2; }
81 
82 int L1MuDTChambPhDigi::BxCnt() const { return BxCntCode; }
83 
84 int L1MuDTChambPhDigi::RpcBit() const { return rpcBit; }
85 
86 int L1MuDTChambPhDigi::UpDownTag() const { return Ts2TagCode / 2; }