CMS 3D CMS Logo

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 
30 
31 #include <iosfwd>
32 #include <string>
33 
34 //----------------------
35 // Base Class Headers --
36 //----------------------
37 
38 
39 //------------------------------------
40 // Collaborating Class Declarations --
41 //------------------------------------
42 
43 // ---------------------
44 // -- Class Interface --
45 // ---------------------
46 
48 
49  public:
50 
53 
55  L1MuDTEtaPattern(int id, int w1, int w2, int w3, int p1, int p2, int p3,
56  int eta, int qual);
57 
58  L1MuDTEtaPattern(int id, const std::string& pat, int eta, int qual);
59 
62 
64  virtual ~L1MuDTEtaPattern();
65 
67  inline int id() const { return m_id; }
68 
70  inline int eta() const { return m_eta; }
71 
73  inline int quality() const { return m_qual; }
74 
76  inline int wheel(int station) const { return m_wheel[station-1]; }
77 
79  inline int position(int station) const { return m_position[station-1]; }
80 
83 
85  bool operator==(const L1MuDTEtaPattern&) const;
86 
88  bool operator!=(const L1MuDTEtaPattern&) const;
89 
91  friend std::ostream& operator<<(std::ostream&, const L1MuDTEtaPattern&);
92 
94  friend std::istream& operator>>(std::istream&, L1MuDTEtaPattern&);
95 
96  private:
97 
98  short m_id;
99  short m_wheel[3]; // -2, -1, 0, +1, +2
100  short m_position[3]; // position in wheel [1,7], 0 = empty
101  short m_eta; // eta code: [-32, +32]
102  short m_qual; // quality code: [0,26]
103 
104 
106 };
107 
108 #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]
Definition: HeavyIon.h:7
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
#define COND_SERIALIZABLE
Definition: Serializable.h:38
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