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 
47  public:
48 
51 
53  L1MuKBMTCombinedStub(int wheel,int sector,int station,int phi,int phiB,bool tag,int bx,int quality,int eta1=0,int eta2=0, int qeta1=-1,int qeta2=-1);
56  inline int whNum() const { return whNum_; }
58  inline int scNum() const { return scNum_; }
60  inline int stNum() const { return stNum_; }
62  inline int phi() const { return phi_; }
64  inline int phiB() const { return phiB_; }
66  inline int quality() const { return quality_; }
68  inline int tag() const { return tag_; }
70  inline int bxNum() const { return bxNum_; }
71 
73  inline int eta1() const { return eta1_; }
75  inline int eta2() const { return eta2_; }
77  inline int qeta1() const { return qeta1_; }
79  inline int qeta2() const { return qeta2_; }
80 
84  bool operator==(const L1MuKBMTCombinedStub&) const;
86  bool operator!=(const L1MuKBMTCombinedStub&) const;
87 
89  friend std::ostream& operator<<(std::ostream&, const L1MuKBMTCombinedStub&);
90 
91  private:
92 
93  int whNum_;
94  int scNum_;
95  int stNum_;
96  int phi_; // 12 bits
97  int phiB_; // 10 bits
98  bool tag_; // tag for second TS (of chamber)
99  int quality_; // 3 bits
100  int bxNum_; // bunch crossing identifier
101  int eta1_; //fine eta 1
102  int eta2_; //fine eta 2
103  int qeta1_; //fine eta quality 1
104  int qeta2_; //fine eta quality 2
105 };
106 
107 #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
int quality() const
return quality code
std::vector< edm::Ref< L1MuKBMTCombinedStubCollection > > L1MuKBMTCombinedStubRefVector
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
int eta2() const
return second eta
edm::Ref< L1MuKBMTCombinedStubCollection > L1MuKBMTCombinedStubRef
int qeta1() const
return first eta quality
std::vector< L1MuKBMTCombinedStub > L1MuKBMTCombinedStubCollection