22 Stage1Layer2JetAlgorithmImpSimpleHW::Stage1Layer2JetAlgorithmImpSimpleHW(
CaloParamsHelper* params) : params_(params)
29 const std::vector<l1t::CaloEmCand> & EMCands,
30 std::vector<l1t::Jet> *
jets,
31 std::vector<l1t::Jet> * debugJets){
33 std::vector<l1t::CaloRegion> *subRegions =
new std::vector<l1t::CaloRegion>();
34 std::vector<l1t::Jet> *preGtEtaJets =
new std::vector<l1t::Jet>();
35 std::vector<l1t::Jet> *calibratedRankedJets =
new std::vector<l1t::Jet>();
36 std::vector<l1t::Jet> *sortedJets =
new std::vector<l1t::Jet>();
47 SortJets(calibratedRankedJets, sortedJets);
54 const bool hex =
false;
59 printf(
"Jets Central\n");
61 for(std::vector<l1t::Jet>::const_iterator itJet = jets->begin();
62 itJet != jets->end(); ++itJet){
63 if((itJet->hwQual() & 2) == 2)
continue;
67 unsigned int packed =
pack15bits(itJet->hwPt(), itJet->hwEta(), itJet->hwPhi());
68 cout << bitset<15>(packed).
to_string() << endl;
70 uint32_t
output = itJet->hwPt() + (itJet->hwEta() << 6) + (itJet->hwPhi() << 10);
71 std::cout << std::hex << std::setw(4) << std::setfill(
'0') << output << std::endl;
76 printf(
"Jets Forward\n");
78 for(std::vector<l1t::Jet>::const_iterator itJet = jets->begin();
79 itJet != jets->end(); ++itJet){
80 if((itJet->hwQual() & 2) != 2)
continue;
84 unsigned int packed =
pack15bits(itJet->hwPt(), itJet->hwEta(), itJet->hwPhi());
85 cout << bitset<15>(packed).
to_string() << endl;
87 uint32_t
output = itJet->hwPt() + (itJet->hwEta() << 6) + (itJet->hwPhi() << 10);
88 std::cout << std::hex << std::setw(4) << std::setfill(
'0') << output << std::endl;
97 delete calibratedRankedJets;
void RegionCorrection(const std::vector< l1t::CaloRegion > ®ions, std::vector< l1t::CaloRegion > *subRegions, CaloParamsHelper *params)
------— New region correction (PUsub, no response correction at the moment) --------— ...
virtual void processEvent(const std::vector< l1t::CaloRegion > ®ions, const std::vector< l1t::CaloEmCand > &EMCands, std::vector< l1t::Jet > *jets, std::vector< l1t::Jet > *preGtJets)
void calibrateAndRankJets(CaloParamsHelper *params, const std::vector< l1t::Jet > *input, std::vector< l1t::Jet > *output)
void SortJets(std::vector< l1t::Jet > *input, std::vector< l1t::Jet > *output)
std::string to_string(const T &t)
void JetToGtEtaScales(CaloParamsHelper *params, const std::vector< l1t::Jet > *input, std::vector< l1t::Jet > *output)
CaloParamsHelper *const params_
unsigned int pack15bits(int pt, int eta, int phi)
virtual ~Stage1Layer2JetAlgorithmImpSimpleHW()
void slidingWindowJetFinder(const int, const std::vector< l1t::CaloRegion > *regions, std::vector< l1t::Jet > *uncalibjets)
double towerLsbSum() const
double jetSeedThreshold() const