153 std::vector<int>
bar{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
154 std::vector<int> ovl_neg{0, 0, 0, 0, 0, 0};
155 std::vector<int> ovl_pos{0, 0, 0, 0, 0, 0};
156 std::vector<int> fwd_neg{0, 0, 0, 0, 0, 0};
157 std::vector<int> fwd_pos{0, 0, 0, 0, 0, 0};
163 if (lineID ==
"BAR" || lineID ==
"OVL-" || lineID ==
"FWD-" || lineID ==
"OVL+" || lineID ==
"FWD+") {
177 int globalPhi =
int(tmp * 0.560856864654333
f);
178 int globalWedgePhi = (globalPhi + 24) % 576;
179 int globalSectorPhi = (globalPhi - 24);
180 if (globalSectorPhi < 0) {
181 globalSectorPhi += 576;
186 if (lineID ==
"BAR") {
187 int processor = globalWedgePhi / 48 + 1;
188 int localPhi = globalWedgePhi % 48;
191 bar[processor - 1]++;
192 if (bar[processor - 1] > 3)
195 if (lineID ==
"OVL-") {
196 int processor = globalSectorPhi / 96 + 1;
197 int localPhi = globalSectorPhi % 96;
200 ovl_neg[processor - 1]++;
201 if (ovl_neg[processor - 1] > 3)
204 if (lineID ==
"OVL+") {
205 int processor = globalSectorPhi / 96 + 1;
206 int localPhi = globalSectorPhi % 96;
209 ovl_pos[processor - 1]++;
210 if (ovl_pos[processor - 1] > 3)
213 if (lineID ==
"FWD-") {
214 int processor = globalSectorPhi / 96 + 1;
215 int localPhi = globalSectorPhi % 96;
218 fwd_neg[processor - 1]++;
219 if (fwd_neg[processor - 1] > 3)
222 if (lineID ==
"FWD+") {
223 int processor = globalSectorPhi / 96 + 1;
224 int localPhi = globalSectorPhi % 96;
227 fwd_pos[processor - 1]++;
228 if (fwd_pos[processor - 1] > 3)
233 tmp =
int(tmp * 0.9090909090
f);
247 if (lineID ==
"OVL-")
249 if (lineID ==
"OVL+")
251 if (lineID ==
"FWD-")
253 if (lineID ==
"FWD+")
257 barrelMuons->push_back(0, mu);
259 overlapMuons->push_back(0, mu);
261 endcapMuons->push_back(0, mu);
266 }
else if (lineID ==
"EVT") {
270 if (lineID ==
"CALO") {
271 for (
int i = 0;
i < 28; ++
i) {
273 int iphi = caloCounter;
281 towerSums->push_back(0, tSum);
void setHwPhi(int bits)
Set compressed relative phi as transmitted by hardware LSB = 2*pi/576 (8 bits)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void setEtaBits(int bits)
BXVector< RegionalMuonCand > RegionalMuonCandBxCollection
BXVector< MuonCaloSum > MuonCaloSumBxCollection
void setTFIdentifiers(int processor, tftype trackFinder)
Set the processor ID, track-finder type. From these two, the link is set.
void setPhiBits(int bits)
void setHwQual(int bits)
Set compressed quality code as transmitted by hardware (4 bits)
void setHwPt(int bits)
Set compressed pT as transmitted by hardware LSB = 0.5 (9 bits)
void setHwEta(int bits)
Set compressed eta as transmitted by hardware LSB = 0.010875 (9 bits)
void setHwSignValid(int bits)
Set whether charge measurement is valid (0 for high pT muons)
void setHwSign(int bits)
Set charge sign bit (charge = (-1)^(sign))