CMS 3D CMS Logo

L1MuKBMTCombinedStub.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
11 //
12 //--------------------------------------------------
13 #ifndef L1MUKBM_COMBINED_STUB_H
14 #define L1MUKBM_COMBINED_STUB_H
15 
16 //---------------
17 // C++ Headers --
18 //---------------
19 
20 #include <iosfwd>
21 #include <vector>
22 
23 //----------------------
24 // Base Class Headers --
25 //----------------------
26 
27 //------------------------------------
28 // Collaborating Class Declarations --
29 //------------------------------------
30 
34 
35 // ---------------------
36 // -- Class Interface --
37 // ---------------------
38 
40 
41 typedef std::vector<L1MuKBMTCombinedStub> L1MuKBMTCombinedStubCollection;
43 typedef std::vector<edm::Ref<L1MuKBMTCombinedStubCollection> > L1MuKBMTCombinedStubRefVector;
44 
46 public:
49 
52  int sector,
53  int station,
54  int phi,
55  int phiB,
56  bool tag,
57  int bx,
58  int quality,
59  int eta1 = 0,
60  int eta2 = 0,
61  int qeta1 = -1,
62  int qeta2 = -1);
65  inline int whNum() const { return whNum_; }
67  inline int scNum() const { return scNum_; }
69  inline int stNum() const { return stNum_; }
71  inline int phi() const { return phi_; }
73  inline int phiB() const { return phiB_; }
75  inline int quality() const { return quality_; }
77  inline int tag() const { return tag_; }
79  inline int bxNum() const { return bxNum_; }
80 
82  inline int eta1() const { return eta1_; }
84  inline int eta2() const { return eta2_; }
86  inline int qeta1() const { return qeta1_; }
88  inline int qeta2() const { return qeta2_; }
89 
93  bool operator==(const L1MuKBMTCombinedStub&) const;
95  bool operator!=(const L1MuKBMTCombinedStub&) const;
96 
98  friend std::ostream& operator<<(std::ostream&, const L1MuKBMTCombinedStub&);
99 
100 private:
101  int whNum_;
102  int scNum_;
103  int stNum_;
104  int phi_; // 12 bits
105  int phiB_; // 10 bits
106  bool tag_; // tag for second TS (of chamber)
107  int quality_; // 3 bits
108  int bxNum_; // bunch crossing identifier
109  int eta1_; //fine eta 1
110  int eta2_; //fine eta 2
111  int qeta1_; //fine eta quality 1
112  int qeta2_; //fine eta quality 2
113 };
114 
115 #endif
int eta1() const
return first eta
bool operator==(const L1MuKBMTCombinedStub &) const
equal operator
int bxNum() const
return bunch crossing
int stNum() const
return station
L1MuKBMTCombinedStub & operator=(const L1MuKBMTCombinedStub &)
assignment operator
int tag() const
return tag (second TS tag)
bool operator!=(const L1MuKBMTCombinedStub &) const
unequal operator
int quality() const
return quality code
friend std::ostream & operator<<(std::ostream &, const L1MuKBMTCombinedStub &)
overload output stream operator for phi track segments
std::vector< edm::Ref< L1MuKBMTCombinedStubCollection > > L1MuKBMTCombinedStubRefVector
L1MuKBMTCombinedStub()
default constructor
int scNum() const
return sector
int phi() const
return phi
int eta2() const
return second eta
int qeta1() const
return first eta quality
int phiB() const
return phib
edm::Ref< L1MuKBMTCombinedStubCollection > L1MuKBMTCombinedStubRef
int whNum() const
return wheel
std::vector< L1MuKBMTCombinedStub > L1MuKBMTCombinedStubCollection
int qeta2() const
return second eta quality