CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuGMTReadoutRecord.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
13 //
14 // $Date $
15 // $Revision $
16 //
17 // Author :
18 // H. Sakulin HEPHY Vienna
19 //
20 // Migrated to CMSSW:
21 // I. Mikulec
22 //
23 //--------------------------------------------------
24 #ifndef DataFormatsL1GlobalMuonTrigger_L1MuGMTReadoutRecord_h
25 #define DataFormatsL1GlobalMuonTrigger_L1MuGMTReadoutRecord_h
26 
27 //---------------
28 // C++ Headers --
29 //---------------
30 #include <vector>
31 
32 //----------------------
33 // Base Class Headers --
34 //----------------------
35 
36 //------------------------------------
37 // Collaborating Class Declarations --
38 //------------------------------------
41 
42 // ---------------------
43 // -- Class Interface --
44 // ---------------------
45 
47 
48  public:
51  L1MuGMTReadoutRecord(int bxie);
52 
54  virtual ~L1MuGMTReadoutRecord();
55 
57  void reset();
58 
59  //
60  // Getters
61  //
62 
64  int getBxNr() const { return (int) m_BxNr; };
65  int getBxCounter() const { return (int) m_BxInEvent; }; // for backward compatibility, do not use
66  int getBxInEvent() const { return (int) m_BxInEvent; };
67  int getEvNr() const { return (int) m_EvNr; };
68  int getBCERR() const { return (int) m_BCERR; };
69 
71  std::vector<L1MuGMTExtendedCand> getGMTCands() const;
72 
74  std::vector<L1MuGMTExtendedCand>& getGMTCandsData();
75 
77  std::vector<L1MuGMTExtendedCand> getGMTBrlCands() const;
78  std::vector<L1MuGMTExtendedCand>& getGMTBrlCandsData() {return m_BarrelCands;};
79 
81  std::vector<L1MuGMTExtendedCand> getGMTFwdCands() const;
82 
84  std::vector<L1MuRegionalCand> getDTBXCands() const;
85 
87  std::vector<L1MuRegionalCand> getCSCCands() const;
88 
90  std::vector<L1MuRegionalCand> getBrlRPCCands() const;
91 
93  std::vector<L1MuRegionalCand> getFwdRPCCands() const;
94 
96  unsigned getMIPbit(int eta, int phi) const;
97 
99  unsigned getQuietbit(int eta, int phi) const;
100 
101 
102  //
103  // Setters
104  //
105 
107  void setBxNr(int bxnr) { m_BxNr = (unsigned) bxnr; };
108  void setBxCounter(int bxie) { m_BxInEvent = (unsigned) bxie; }; // for backward compatibility, do not use
109  void setBxInEvent(int bxie) { m_BxInEvent = (unsigned) bxie; };
110  void setEvNr(int evnr) { m_EvNr = (unsigned) evnr; };
111  void setBCERR(int bcerr) { m_BCERR = (unsigned) bcerr; };
112 
114  void setGMTBrlCand(int nr, L1MuGMTExtendedCand const& cand);
115 
117  void setGMTBrlCand(int nr, unsigned data, unsigned rank);
118 
120  void setGMTFwdCand(int nr, L1MuGMTExtendedCand const& cand);
121 
123  void setGMTFwdCand(int nr, unsigned data, unsigned rank);
124 
126  void setGMTCand(int nr, L1MuGMTExtendedCand const& cand);
127 
129  void setGMTCand(int nr, unsigned data);
130 
132  void setInputCand(int nr, unsigned data);
133 
135  void setInputCand(int nr, L1MuRegionalCand const& cand);
136 
138  void setMIPbit(int eta, int phi);
139 
141  void setQuietbit(int eta, int phi);
142 
143  private:
144  unsigned getBrlRank(int i) const;
145  unsigned getFwdRank(int i) const;
146 
147  void setBrlRank(int i, unsigned value);
148  void setFwdRank(int i, unsigned value);
149 
150  private:
151  unsigned m_BxNr;
152  unsigned m_BxInEvent;
153  unsigned m_EvNr;
154 
155  unsigned m_BCERR;
156 
157  std::vector<L1MuRegionalCand> m_InputCands;
158 
159  std::vector<L1MuGMTExtendedCand> m_BarrelCands;
160  std::vector<L1MuGMTExtendedCand> m_ForwardCands;
161  std::vector<L1MuGMTExtendedCand> m_GMTCands;
162 
163  // mip/iso bits (252 EACH)
164  unsigned m_MIPbits[8];
165  unsigned m_Quietbits[8];
166 
167 };
168 
169 #endif
170 
171 
172 
173 
174 
175 
176 
177 
178 
179 
std::vector< L1MuGMTExtendedCand > & getGMTCandsData()
get GMT candidates vector as stored in data (no rank info)
int i
Definition: DBlmapReader.cc:9
std::vector< L1MuGMTExtendedCand > getGMTCands() const
get GMT candidates vector
std::vector< L1MuRegionalCand > m_InputCands
void setFwdRank(int i, unsigned value)
set rank of fwd cand i
L1MuGMTReadoutRecord()
constructors
void setBrlRank(int i, unsigned value)
set rank of brl cand i
int getBxNr() const
get counters
void setGMTBrlCand(int nr, L1MuGMTExtendedCand const &cand)
set GMT barrel candidate
std::vector< L1MuGMTExtendedCand > m_BarrelCands
void setGMTFwdCand(int nr, L1MuGMTExtendedCand const &cand)
set GMT forward candidate
void setInputCand(int nr, unsigned data)
set Input muon
unsigned getQuietbit(int eta, int phi) const
get Quiet bit
T eta() const
std::vector< L1MuRegionalCand > getBrlRPCCands() const
get barrel RPC candidates vector
void setQuietbit(int eta, int phi)
set Quiet bit
void reset()
reset the record
std::vector< L1MuGMTExtendedCand > & getGMTBrlCandsData()
std::vector< L1MuRegionalCand > getFwdRPCCands() const
get forward RPC candidates vector
void setMIPbit(int eta, int phi)
set MIP bit
std::vector< L1MuRegionalCand > getCSCCands() const
get CSC candidates vector
std::vector< L1MuGMTExtendedCand > getGMTBrlCands() const
get GMT barrel candidates vector
std::vector< L1MuRegionalCand > getDTBXCands() const
get DT candidates vector
void setBxNr(int bxnr)
set counters
unsigned getMIPbit(int eta, int phi) const
get MIP bit
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
std::vector< L1MuGMTExtendedCand > getGMTFwdCands() const
get GMT forward candidates vector
void setGMTCand(int nr, L1MuGMTExtendedCand const &cand)
set GMT candidate (does not store rank)
std::vector< L1MuGMTExtendedCand > m_GMTCands
virtual ~L1MuGMTReadoutRecord()
destructor
std::vector< L1MuGMTExtendedCand > m_ForwardCands
unsigned getFwdRank(int i) const
get rank of fwd cand i
unsigned getBrlRank(int i) const
get rank of brl cand i
Definition: DDAxes.h:10