CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuDTEtaPattern.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
20 //
21 //--------------------------------------------------
22 #ifndef L1MUDT_ETA_PATTERN_H
23 #define L1MUDT_ETA_PATTERN_H
24 
25 //---------------
26 // C++ Headers --
27 //---------------
28 
29 #include <iosfwd>
30 #include <string>
31 
32 //----------------------
33 // Base Class Headers --
34 //----------------------
35 
36 
37 //------------------------------------
38 // Collaborating Class Declarations --
39 //------------------------------------
40 
41 // ---------------------
42 // -- Class Interface --
43 // ---------------------
44 
46 
47  public:
48 
51 
53  L1MuDTEtaPattern(int id, int w1, int w2, int w3, int p1, int p2, int p3,
54  int eta, int qual);
55 
56  L1MuDTEtaPattern(int id, const std::string& pat, int eta, int qual);
57 
60 
62  virtual ~L1MuDTEtaPattern();
63 
65  inline int id() const { return m_id; }
66 
68  inline int eta() const { return m_eta; }
69 
71  inline int quality() const { return m_qual; }
72 
74  inline int wheel(int station) const { return m_wheel[station-1]; }
75 
77  inline int position(int station) const { return m_position[station-1]; }
78 
81 
83  bool operator==(const L1MuDTEtaPattern&) const;
84 
86  bool operator!=(const L1MuDTEtaPattern&) const;
87 
89  friend std::ostream& operator<<(std::ostream&, const L1MuDTEtaPattern&);
90 
92  friend std::istream& operator>>(std::istream&, L1MuDTEtaPattern&);
93 
94  private:
95 
96  short m_id;
97  short m_wheel[3]; // -2, -1, 0, +1, +2
98  short m_position[3]; // position in wheel [1,7], 0 = empty
99  short m_eta; // eta code: [-32, +32]
100  short m_qual; // quality code: [0,26]
101 
102 };
103 
104 #endif
friend std::istream & operator>>(std::istream &, L1MuDTEtaPattern &)
input stream operator
common ppss p3p6s2 common epss epspn46 common const1 w2
Definition: inclppp.h:1
int quality() const
return quality
L1MuDTEtaPattern & operator=(const L1MuDTEtaPattern &)
assignment operator
int position(int station) const
return position in station [1,3]
int id() const
return id
int eta() const
return eta
bool operator!=(const L1MuDTEtaPattern &) const
unequal operator
bool operator==(const L1MuDTEtaPattern &) const
equal operator
double p2[4]
Definition: TauolaWrapper.h:90
L1MuDTEtaPattern()
default constructor
common ppss p3p6s2 common epss epspn46 common const1 w3
Definition: inclppp.h:1
double p1[4]
Definition: TauolaWrapper.h:89
friend std::ostream & operator<<(std::ostream &, const L1MuDTEtaPattern &)
output stream operator
int wheel(int station) const
return wheel number in station [1,3]
virtual ~L1MuDTEtaPattern()
destructor
double p3[4]
Definition: TauolaWrapper.h:91