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  //destructor
68  inline int whNum() const { return whNum_; }
70  inline int scNum() const { return scNum_; }
72  inline int stNum() const { return stNum_; }
74  inline int phi() const { return phi_; }
76  inline int phiB() const { return phiB_; }
78  inline int quality() const { return quality_; }
80  inline int tag() const { return tag_; }
82  inline int bxNum() const { return bxNum_; }
83 
85  inline int eta1() const { return eta1_; }
87  inline int eta2() const { return eta2_; }
89  inline int qeta1() const { return qeta1_; }
91  inline int qeta2() const { return qeta2_; }
92 
96  bool operator==(const L1MuKBMTCombinedStub&) const;
98  bool operator!=(const L1MuKBMTCombinedStub&) const;
99 
101  friend std::ostream& operator<<(std::ostream&, const L1MuKBMTCombinedStub&);
102 
103 private:
104  int whNum_;
105  int scNum_;
106  int stNum_;
107  int phi_; // 12 bits
108  int phiB_; // 10 bits
109  bool tag_; // tag for second TS (of chamber)
110  int quality_; // 3 bits
111  int bxNum_; // bunch crossing identifier
112  int eta1_; //fine eta 1
113  int eta2_; //fine eta 2
114  int qeta1_; //fine eta quality 1
115  int qeta2_; //fine eta quality 2
116 };
117 
118 #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