CMS 3D CMS Logo

Stage1Layer2JetAlgorithmImpHI.cc
Go to the documentation of this file.
1 
8 // This example implements algorithm version 1 and 2.
9 
15 
16 using namespace std;
17 using namespace l1t;
18 
19 Stage1Layer2JetAlgorithmImpHI::Stage1Layer2JetAlgorithmImpHI(CaloParamsHelper const* params) : params_(params) { };
20 
21 void Stage1Layer2JetAlgorithmImpHI::processEvent(const std::vector<l1t::CaloRegion> & regions,
22  const std::vector<l1t::CaloEmCand> & EMCands,
23  std::vector<l1t::Jet> * jets,
24  std::vector<l1t::Jet> * preGtJets ){
25 
26  //std::vector<double> regionPUSParams = params_->regionPUSParams();
28 
29  unsigned int etaMask = params_->jetRegionMask();
30 
31  std::vector<l1t::CaloRegion> subRegions;
32  std::vector<l1t::Jet> unSortedJets;
33  std::vector<l1t::Jet> preGtEtaJets;
34  std::vector<l1t::Jet> preRankJets;
35 
36  HICaloRingSubtraction(regions, &subRegions, params_);
37  TwoByTwoFinder(jetThreshold, etaMask, &subRegions, &preRankJets);
38  //slidingWindowJetFinder(0, subRegions, unSortedJets);
39  JetToGtPtScales(params_, &preRankJets, &unSortedJets);
40  SortJets(&unSortedJets, &preGtEtaJets);
41  JetToGtEtaScales(params_, &preGtEtaJets, preGtJets);
42  JetToGtEtaScales(params_, &preGtEtaJets, jets);
43  //JetToGtPtScales(params_, preGtJets, jets);
44 }
void processEvent(const std::vector< l1t::CaloRegion > &regions, const std::vector< l1t::CaloEmCand > &EMCands, std::vector< l1t::Jet > *jets, std::vector< l1t::Jet > *preGtJets) override
delete x;
Definition: CaloConfig.h:22
void SortJets(std::vector< l1t::Jet > *input, std::vector< l1t::Jet > *output)
void TwoByTwoFinder(const int, const int, const std::vector< l1t::CaloRegion > *regions, std::vector< l1t::Jet > *uncalibjets)
void JetToGtEtaScales(CaloParamsHelper const *params, const std::vector< l1t::Jet > *input, std::vector< l1t::Jet > *output)
vector< PseudoJet > jets
void JetToGtPtScales(CaloParamsHelper const *params, const std::vector< l1t::Jet > *input, std::vector< l1t::Jet > *output)
double jetSeedThreshold() const
void HICaloRingSubtraction(const std::vector< l1t::CaloRegion > &regions, std::vector< l1t::CaloRegion > *subRegions, CaloParamsHelper const *params)
------------— For heavy ion ----------------------------------—