CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
51  L1MuKBMTCombinedStub(int wheel,
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
bool operator==(const L1MuKBMTCombinedStub &) const
equal operator
int tag() const
return tag (second TS tag)
int scNum() const
return sector
L1MuKBMTCombinedStub & operator=(const L1MuKBMTCombinedStub &)
assignment operator
int eta1() const
return first eta
friend std::ostream & operator<<(std::ostream &, const L1MuKBMTCombinedStub &)
overload output stream operator for phi track segments
std::vector< edm::Ref< L1MuKBMTCombinedStubCollection > > L1MuKBMTCombinedStubRefVector
int quality() const
return quality code
L1MuKBMTCombinedStub()
default constructor
int qeta2() const
return second eta quality
bool operator!=(const L1MuKBMTCombinedStub &) const
unequal operator
int phi() const
return phi
int bxNum() const
return bunch crossing
int phiB() const
return phib
int whNum() const
return wheel
int stNum() const
return station
edm::Ref< L1MuKBMTCombinedStubCollection > L1MuKBMTCombinedStubRef
int eta2() const
return second eta
int qeta1() const
return first eta quality
std::vector< L1MuKBMTCombinedStub > L1MuKBMTCombinedStubCollection