CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1t::Stage1Layer2JetAlgorithmImpSimpleHW Class Reference

#include <Stage1Layer2JetAlgorithmImp.h>

Inheritance diagram for l1t::Stage1Layer2JetAlgorithmImpSimpleHW:
l1t::Stage1Layer2JetAlgorithm

Public Member Functions

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
 
 Stage1Layer2JetAlgorithmImpSimpleHW (CaloParamsHelper const *params)
 
 ~Stage1Layer2JetAlgorithmImpSimpleHW () override=default
 
- Public Member Functions inherited from l1t::Stage1Layer2JetAlgorithm
virtual ~Stage1Layer2JetAlgorithm ()
 

Private Attributes

CaloParamsHelper const *const params_
 

Detailed Description

Author
: R. Alex Barbieri MIT

Definition at line 53 of file Stage1Layer2JetAlgorithmImp.h.

Constructor & Destructor Documentation

Stage1Layer2JetAlgorithmImpSimpleHW::Stage1Layer2JetAlgorithmImpSimpleHW ( CaloParamsHelper const *  params)

Definition at line 22 of file Stage1Layer2JetAlgorithmImpSimpleHW.cc.

22  : params_(params)
23 {
24 }
l1t::Stage1Layer2JetAlgorithmImpSimpleHW::~Stage1Layer2JetAlgorithmImpSimpleHW ( )
overridedefault

Member Function Documentation

void Stage1Layer2JetAlgorithmImpSimpleHW::processEvent ( const std::vector< l1t::CaloRegion > &  regions,
const std::vector< l1t::CaloEmCand > &  EMCands,
std::vector< l1t::Jet > *  jets,
std::vector< l1t::Jet > *  preGtJets 
)
overridevirtual

Implements l1t::Stage1Layer2JetAlgorithm.

Definition at line 27 of file Stage1Layer2JetAlgorithmImpSimpleHW.cc.

References l1t::calibrateAndRankJets(), l1t::CaloParamsHelper::jetSeedThreshold(), l1t::JetToGtEtaScales(), params_, l1t::RegionCorrection(), l1t::slidingWindowJetFinder(), l1t::SortJets(), and l1t::CaloParamsHelper::towerLsbSum().

30  {
31 
32  std::vector<l1t::CaloRegion> subRegions;
33  std::vector<l1t::Jet> preGtEtaJets;
34  std::vector<l1t::Jet> calibratedRankedJets;
35  std::vector<l1t::Jet> sortedJets;
36 
37  double towerLsb = params_->towerLsbSum();
38  int jetSeedThreshold = floor( params_->jetSeedThreshold()/towerLsb + 0.5);
39 
40  RegionCorrection(regions, &subRegions, params_);
41 
42  slidingWindowJetFinder(jetSeedThreshold, &subRegions, &preGtEtaJets);
43 
44  calibrateAndRankJets(params_, &preGtEtaJets, &calibratedRankedJets);
45 
46  SortJets(&calibratedRankedJets, &sortedJets);
47 
48  JetToGtEtaScales(params_, &sortedJets, jets);
49  JetToGtEtaScales(params_, &preGtEtaJets, debugJets);
50  //JetToGtPtScales(params_, preGtJets, jets);
51 }
void SortJets(std::vector< l1t::Jet > *input, std::vector< l1t::Jet > *output)
void RegionCorrection(const std::vector< l1t::CaloRegion > &regions, std::vector< l1t::CaloRegion > *subRegions, CaloParamsHelper const *params)
------— New region correction (PUsub, no response correction at the moment) --------— ...
void calibrateAndRankJets(CaloParamsHelper const *params, const std::vector< l1t::Jet > *input, std::vector< l1t::Jet > *output)
void JetToGtEtaScales(CaloParamsHelper const *params, const std::vector< l1t::Jet > *input, std::vector< l1t::Jet > *output)
vector< PseudoJet > jets
void slidingWindowJetFinder(const int, const std::vector< l1t::CaloRegion > *regions, std::vector< l1t::Jet > *uncalibjets)
double towerLsbSum() const
double jetSeedThreshold() const

Member Data Documentation

CaloParamsHelper const* const l1t::Stage1Layer2JetAlgorithmImpSimpleHW::params_
private

Definition at line 62 of file Stage1Layer2JetAlgorithmImp.h.

Referenced by processEvent().