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 // Collaborating Class Declarations --
40 //------------------------------------
41 
42 // ---------------------
43 // -- Class Interface --
44 // ---------------------
45 
47 public:
50 
52  L1MuDTEtaPattern(int id, int w1, int w2, int w3, int p1, int p2, int p3, int eta, int qual);
53 
54  L1MuDTEtaPattern(int id, const std::string& pat, int eta, int qual);
55 
58 
60  virtual ~L1MuDTEtaPattern();
61 
63  inline int id() const { return m_id; }
64 
66  inline int eta() const { return m_eta; }
67 
69  inline int quality() const { return m_qual; }
70 
72  inline int wheel(int station) const { return m_wheel[station - 1]; }
73 
75  inline int position(int station) const { return m_position[station - 1]; }
76 
79 
81  bool operator==(const L1MuDTEtaPattern&) const;
82 
84  bool operator!=(const L1MuDTEtaPattern&) const;
85 
87  friend std::ostream& operator<<(std::ostream&, const L1MuDTEtaPattern&);
88 
90  friend std::istream& operator>>(std::istream&, L1MuDTEtaPattern&);
91 
92 private:
93  short m_id;
94  short m_wheel[3]; // -2, -1, 0, +1, +2
95  short m_position[3]; // position in wheel [1,7], 0 = empty
96  short m_eta; // eta code: [-32, +32]
97  short m_qual; // quality code: [0,26]
98 
100 };
101 
102 #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