20 int phi2 = neighbor.
hwPhi();
21 int diff = phi1 - phi2;
34 int jetET =
region->hwPt();
38 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > jetLorentz(0, 0, 0, 0);
40 uncalibjets->push_back(theJet);
45 const std::vector<l1t::CaloRegion>*
regions,
46 std::vector<l1t::Jet>* uncalibjets) {
48 int regionET =
region->hwPt();
55 int neighborNE_et = 0;
56 int neighborSW_et = 0;
57 int neighborNW_et = 0;
58 int neighborSE_et = 0;
59 unsigned int nNeighbors = 0;
60 for (std::vector<CaloRegion>::const_iterator neighbor =
regions->begin(); neighbor !=
regions->end();
62 int neighborET = neighbor->hwPt();
64 neighborN_et = neighborET;
68 neighborS_et = neighborET;
72 neighborE_et = neighborET;
76 neighborW_et = neighborET;
80 neighborNE_et = neighborET;
84 neighborSW_et = neighborET;
88 neighborNW_et = neighborET;
92 neighborSE_et = neighborET;
97 if (regionET > neighborN_et && regionET > neighborNW_et && regionET > neighborW_et && regionET > neighborSW_et &&
98 regionET >= neighborNE_et && regionET >= neighborE_et && regionET >= neighborSE_et &&
99 regionET >= neighborS_et) {
100 unsigned int jetET = regionET + neighborN_et + neighborS_et + neighborE_et + neighborW_et + neighborNE_et +
101 neighborSW_et + neighborSE_et + neighborNW_et;
106 bool neighborCheck = (nNeighbors == 8);
108 if (!neighborCheck && (
jetEta == 0 ||
jetEta == 21) && nNeighbors == 5)
109 neighborCheck =
true;
111 if (!neighborCheck) {
118 const bool forward = (jetEta < 4 || jetEta > 17);
124 if (forward && regionET == 255) {
126 }
else if (!forward && regionET == 1023) {
128 }
else if (
region->hwEta() == 17) {
129 if (neighborNE_et == 255 || neighborE_et == 255 || neighborSE_et == 255)
131 }
else if (
region->hwEta() == 4) {
132 if (neighborNW_et == 255 || neighborW_et == 255 || neighborSW_et == 255)
136 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > jetLorentz(0, 0, 0, 0);
140 uncalibjets->push_back(theJet);
146 const std::vector<l1t::CaloRegion>*
regions,
147 std::vector<l1t::Jet>* uncalibjets) {
149 int regionET =
region->hwPt();
152 int neighborN_et = 0;
153 int neighborS_et = 0;
154 int neighborE_et = 0;
155 int neighborW_et = 0;
156 int neighborNE_et = 0;
157 int neighborSW_et = 0;
158 int neighborNW_et = 0;
159 int neighborSE_et = 0;
160 unsigned int nNeighbors = 0;
161 for (std::vector<CaloRegion>::const_iterator neighbor =
regions->begin(); neighbor !=
regions->end();
163 int neighborET = neighbor->hwPt();
165 neighborN_et = neighborET;
169 neighborS_et = neighborET;
173 neighborE_et = neighborET;
177 neighborW_et = neighborET;
181 neighborNE_et = neighborET;
185 neighborSW_et = neighborET;
189 neighborNW_et = neighborET;
193 neighborSE_et = neighborET;
198 unsigned int jetET = regionET + neighborN_et + neighborS_et + neighborE_et + neighborW_et + neighborNE_et +
199 neighborSW_et + neighborSE_et + neighborNW_et;
204 bool neighborCheck = (nNeighbors == 8);
206 if (!neighborCheck && (
jetEta == 0 ||
jetEta == 21) && nNeighbors == 5)
207 neighborCheck =
true;
209 if (!neighborCheck) {
216 const bool forward = (jetEta < 4 || jetEta > 17);
221 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > jetLorentz(0, 0, 0, 0);
225 uncalibjets->push_back(theJet);
231 const std::vector<l1t::CaloRegion>*
regions,
232 std::vector<l1t::Jet>* uncalibjets) {
234 int regionET =
region->hwPt();
237 int subEta =
region->hwEta();
238 if ((etaMask & (1 << subEta)) >> subEta)
240 int neighborN_et = 0;
241 int neighborS_et = 0;
242 int neighborE_et = 0;
243 int neighborW_et = 0;
244 int neighborNE_et = 0;
245 int neighborSW_et = 0;
246 int neighborNW_et = 0;
247 int neighborSE_et = 0;
248 unsigned int nNeighbors = 0;
249 for (std::vector<CaloRegion>::const_iterator neighbor =
regions->begin(); neighbor !=
regions->end();
251 int neighborET = neighbor->hwPt();
252 int subEta2 = neighbor->hwEta();
253 if ((etaMask & (1 << subEta2)) >> subEta2)
257 neighborN_et = neighborET;
261 neighborS_et = neighborET;
265 neighborE_et = neighborET;
269 neighborW_et = neighborET;
273 neighborNE_et = neighborET;
277 neighborSW_et = neighborET;
281 neighborNW_et = neighborET;
285 neighborSE_et = neighborET;
290 if (regionET > neighborN_et && regionET > neighborNW_et && regionET > neighborW_et && regionET > neighborSW_et &&
291 regionET >= neighborNE_et && regionET >= neighborE_et && regionET >= neighborSE_et &&
292 regionET >= neighborS_et) {
294 unsigned int jetET_NW;
295 unsigned int jetET_NE;
296 unsigned int jetET_SW;
297 unsigned int jetET_SE;
299 jetET_NW = regionET + neighborW_et + neighborNW_et + neighborN_et;
300 jetET_NE = regionET + neighborE_et + neighborNE_et + neighborN_et;
301 jetET_SW = regionET + neighborS_et + neighborSW_et + neighborW_et;
302 jetET_SE = regionET + neighborS_et + neighborSE_et + neighborE_et;
304 unsigned int jetET =
std::max(jetET_NW, jetET_NE);
311 bool neighborCheck = (nNeighbors == 8);
313 if (!neighborCheck && (
jetEta == 0 ||
jetEta == 21) && nNeighbors == 5)
314 neighborCheck =
true;
316 if (!neighborCheck) {
322 const bool forward = (jetEta < 4 || jetEta > 17);
327 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > jetLorentz(0, 0, 0, 0);
329 uncalibjets->push_back(theJet);