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 coarseEta,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 
82  inline int coarseEta() const { return coarseEta_; }
83 
87  bool operator==(const L1MuKBMTCombinedStub&) const;
89  bool operator!=(const L1MuKBMTCombinedStub&) const;
90 
92  friend std::ostream& operator<<(std::ostream&, const L1MuKBMTCombinedStub&);
93 
94  private:
95 
96  int whNum_;
97  int scNum_;
98  int stNum_;
99  int phi_; // 12 bits
100  int phiB_; // 10 bits
101  bool tag_; // tag for second TS (of chamber)
102  int quality_; // 3 bits
103  int bxNum_; // bunch crossing identifier
104  int coarseEta_; //Coarse eta
105  int eta1_; //fine eta 1
106  int eta2_; //fine eta 2
107  int qeta1_; //fine eta quality 1
108  int qeta2_; //fine eta quality 2
109 };
110 
111 #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 coarseEta() const
return coarse Eta
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