19 int phi1 = region.
hwPhi();
20 int phi2 = neighbor.
hwPhi();
21 int diff = phi1 - phi2;
30 for (std::vector<CaloRegion>::const_iterator
region = regions->begin();
region != regions->end();
region++) {
34 int jetET =
region->hwPt();
38 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > jetLorentz(0, 0, 0, 0);
39 l1t::Jet theJet(*&jetLorentz, jetET, jetEta, jetPhi, jetQual);
40 uncalibjets->push_back(theJet);
45 const std::vector<l1t::CaloRegion>*
regions,
46 std::vector<l1t::Jet>* uncalibjets) {
47 for (std::vector<CaloRegion>::const_iterator
region = regions->begin();
region != regions->end();
region++) {
48 int regionET =
region->hwPt();
49 if (regionET <= jetSeedThreshold)
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) {
112 std::cout <<
"phi: " << jetPhi <<
" eta: " << jetEta <<
" n: " << nNeighbors << std::endl;
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);
137 l1t::Jet theJet(*&jetLorentz, jetET, jetEta, jetPhi, jetQual);
140 uncalibjets->push_back(theJet);
146 const std::vector<l1t::CaloRegion>*
regions,
147 std::vector<l1t::Jet>* uncalibjets) {
148 for (std::vector<CaloRegion>::const_iterator
region = regions->begin();
region != regions->end();
region++) {
149 int regionET =
region->hwPt();
150 if (regionET < jetSeedThreshold)
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) {
210 std::cout <<
"phi: " << jetPhi <<
" eta: " << jetEta <<
" n: " << nNeighbors << std::endl;
216 const bool forward = (jetEta < 4 || jetEta > 17);
221 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > jetLorentz(0, 0, 0, 0);
222 l1t::Jet theJet(*&jetLorentz, jetET, jetEta, jetPhi, jetQual);
225 uncalibjets->push_back(theJet);
231 const std::vector<l1t::CaloRegion>*
regions,
232 std::vector<l1t::Jet>* uncalibjets) {
233 for (std::vector<CaloRegion>::const_iterator
region = regions->begin();
region != regions->end();
region++) {
234 int regionET =
region->hwPt();
235 if (regionET <= jetSeedThreshold)
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) {
317 std::cout <<
"phi: " << jetPhi <<
" eta: " << jetEta <<
" n: " << nNeighbors << std::endl;
322 const bool forward = (jetEta < 4 || jetEta > 17);
327 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > jetLorentz(0, 0, 0, 0);
328 l1t::Jet theJet(*&jetLorentz, jetET, jetEta, jetPhi, jetQual);
329 uncalibjets->push_back(theJet);
void TwelveByTwelveFinder(const int, const std::vector< l1t::CaloRegion > *regions, std::vector< l1t::Jet > *uncalibjets)
void TwoByTwoFinder(const int, const int, const std::vector< l1t::CaloRegion > *regions, std::vector< l1t::Jet > *uncalibjets)
Abs< T >::type abs(const T &t)
void passThroughJets(const std::vector< l1t::CaloRegion > *regions, std::vector< l1t::Jet > *uncalibjets)
int deltaGctPhi(const CaloRegion ®ion, const CaloRegion &neighbor)
void slidingWindowJetFinder(const int, const std::vector< l1t::CaloRegion > *regions, std::vector< l1t::Jet > *uncalibjets)
static const unsigned N_PHI