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
L1MuDTEtaPattern
Definition: L1MuDTEtaPattern.h:46
w2
common ppss p3p6s2 common epss epspn46 common const1 w2
Definition: inclppp.h:1
relativeConstraints.station
station
Definition: relativeConstraints.py:67
L1MuDTEtaPattern::L1MuDTEtaPattern
L1MuDTEtaPattern()
default constructor
Definition: L1MuDTEtaPattern.cc:46
L1MuDTEtaPattern::eta
int eta() const
return eta
Definition: L1MuDTEtaPattern.h:66
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1MuDTEtaPattern::operator<<
friend std::ostream & operator<<(std::ostream &, const L1MuDTEtaPattern &)
output stream operator
L1MuDTEtaPattern::m_eta
short m_eta
Definition: L1MuDTEtaPattern.h:96
L1MuDTEtaPattern::id
int id() const
return id
Definition: L1MuDTEtaPattern.h:63
L1MuDTEtaPattern::m_position
short m_position[3]
Definition: L1MuDTEtaPattern.h:95
L1MuDTEtaPattern::~L1MuDTEtaPattern
virtual ~L1MuDTEtaPattern()
destructor
Definition: L1MuDTEtaPattern.cc:91
p2
double p2[4]
Definition: TauolaWrapper.h:90
L1MuDTEtaPattern::wheel
int wheel(int station) const
return wheel number in station [1,3]
Definition: L1MuDTEtaPattern.h:72
L1MuDTEtaPattern::m_id
short m_id
Definition: L1MuDTEtaPattern.h:93
L1MuDTEtaPattern::operator>>
friend std::istream & operator>>(std::istream &, L1MuDTEtaPattern &)
input stream operator
Serializable.h
L1MuDTEtaPattern::operator=
L1MuDTEtaPattern & operator=(const L1MuDTEtaPattern &)
assignment operator
Definition: L1MuDTEtaPattern.cc:100
w3
common ppss p3p6s2 common epss epspn46 common const1 w3
Definition: inclppp.h:1
L1MuDTEtaPattern::operator!=
bool operator!=(const L1MuDTEtaPattern &) const
unequal operator
Definition: L1MuDTEtaPattern.cc:135
p1
double p1[4]
Definition: TauolaWrapper.h:89
pat
Definition: HeavyIon.h:7
L1MuDTEtaPattern::operator==
bool operator==(const L1MuDTEtaPattern &) const
equal operator
Definition: L1MuDTEtaPattern.cc:116
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1MuDTEtaPattern::position
int position(int station) const
return position in station [1,3]
Definition: L1MuDTEtaPattern.h:75
L1MuDTEtaPattern::m_qual
short m_qual
Definition: L1MuDTEtaPattern.h:97
p3
double p3[4]
Definition: TauolaWrapper.h:91
L1MuDTEtaPattern::quality
int quality() const
return quality
Definition: L1MuDTEtaPattern.h:69
L1MuDTEtaPattern::m_wheel
short m_wheel[3]
Definition: L1MuDTEtaPattern.h:94