#include <HiFJGridEmptyAreaCalculator.h>
Public Member Functions | |
HiFJGridEmptyAreaCalculator (const edm::ParameterSet &) | |
~HiFJGridEmptyAreaCalculator () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInLumis () const final |
bool | hasAbilityToProduceInRuns () const final |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | beginStream (edm::StreamID) override |
void | endStream () override |
void | produce (edm::Event &, const edm::EventSetup &) override |
setting a new event | |
const double | twopi_ = 2*M_PI |
information about the grid More... | |
double | ymin_ |
internal parameters for grid More... | |
double | ymax_ |
double | dy_ |
double | dphi_ |
double | tileArea_ |
double | dyJet_ |
double | yminJet_ |
double | ymaxJet_ |
double | totalInboundArea_ |
double | etaminJet_ |
double | etamaxJet_ |
int | ny_ |
int | nphi_ |
int | ntotal_ |
int | ntotalJet_ |
int | nyJet_ |
double | gridWidth_ |
input parameters More... | |
double | band_ |
int | hiBinCut_ |
bool | doCentrality_ |
bool | keepGridInfo_ |
std::vector< double > | rhoVsEta_ |
std::vector< double > | meanRhoVsEta_ |
std::vector< double > | etaMaxGrid_ |
std::vector< double > | etaMinGrid_ |
edm::EDGetTokenT< edm::View< reco::Jet > > | jetsToken_ |
input tokens More... | |
edm::EDGetTokenT< reco::PFCandidateCollection > | pfCandsToken_ |
edm::EDGetTokenT< std::vector< double > > | mapEtaToken_ |
edm::EDGetTokenT< std::vector< double > > | mapRhoToken_ |
edm::EDGetTokenT< std::vector< double > > | mapRhoMToken_ |
edm::EDGetTokenT< int > | centralityBinToken_ |
void | setupGrid (double eta_min, double eta_max) |
configure the grid More... | |
void | setupGridJet (const reco::Jet *jet) |
int | tileIndexJet (const reco::PFCandidate *pfCand) |
retrieve the grid cell index for a given PseudoJet More... | |
int | tileIndexEta (const reco::PFCandidate *pfCand) |
int | tileIndexEtaJet (const reco::PFCandidate *pfCand) |
int | tileIndexPhi (const reco::PFCandidate *pfCand) |
int | numJetGridCells (std::vector< std::pair< int, int > > &indices) |
number of grid cells that overlap with jet constituents filling in the in between area More... | |
void | calculateAreaFractionOfJets (const edm::Event &iEvent, const edm::EventSetup &iSetup) |
void | calculateGridRho (const edm::Event &iEvent, const edm::EventSetup &iSetup) |
int | n_tiles () |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Definition at line 25 of file HiFJGridEmptyAreaCalculator.h.
|
explicit |
Definition at line 17 of file HiFJGridEmptyAreaCalculator.cc.
References centralityBinToken_, dphi_, dy_, dyJet_, etamaxJet_, etaminJet_, edm::ParameterSet::getParameter(), jetsToken_, keepGridInfo_, mapEtaToken_, mapRhoMToken_, mapRhoToken_, nphi_, ntotal_, ntotalJet_, ny_, nyJet_, pfCandsToken_, tileArea_, totalInboundArea_, ymax_, ymaxJet_, ymin_, and yminJet_.
|
override |
Definition at line 67 of file HiFJGridEmptyAreaCalculator.cc.
|
overrideprivate |
Definition at line 460 of file HiFJGridEmptyAreaCalculator.cc.
|
private |
calculates the area of jets that fall within the eta range by scaling kt areas using grid areas
Definition at line 239 of file HiFJGridEmptyAreaCalculator.cc.
References etamaxJet_, etaminJet_, edm::Event::getByToken(), metsig::jet, METSignificanceParams_cfi::jeta, fwrapper::jets, jetsToken_, numJetGridCells(), setupGridJet(), tileIndexEtaJet(), tileIndexPhi(), totalInboundArea_, and twopi_.
Referenced by produce().
|
private |
Definition at line 180 of file HiFJGridEmptyAreaCalculator.cc.
References reco::LeafCandidate::eta(), edm::Event::getByToken(), createfilelist::int, METSignificanceParams_cfi::jeta, meanRhoVsEta_, nphi_, ny_, pfCandsToken_, edm::Handle< T >::product(), reco::LeafCandidate::pt(), rhoVsEta_, tileArea_, tileIndexEta(), tileIndexPhi(), ymax_, and ymin_.
Referenced by produce().
|
overrideprivate |
Definition at line 465 of file HiFJGridEmptyAreaCalculator.cc.
|
static |
Definition at line 468 of file HiFJGridEmptyAreaCalculator.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and DEFINE_FWK_MODULE.
|
inlineprivate |
|
private |
number of grid cells that overlap with jet constituents filling in the in between area
Definition at line 432 of file HiFJGridEmptyAreaCalculator.cc.
References METSignificanceParams_cfi::jeta.
Referenced by calculateAreaFractionOfJets().
|
overrideprivate |
Definition at line 76 of file HiFJGridEmptyAreaCalculator.cc.
References band_, calculateAreaFractionOfJets(), calculateGridRho(), centralityBinToken_, doCentrality_, MillePedeFileConverter_cfg::e, etaMaxGrid_, etamaxJet_, etaMinGrid_, etaminJet_, edm::Event::getByToken(), hiBinCut_, createfilelist::int, keepGridInfo_, mapEtaToken_, mapRhoMToken_, mapRhoToken_, meanRhoVsEta_, eostools::move(), ny_, edm::Event::put(), rho, rhoVsEta_, setupGrid(), and totalInboundArea_.
|
private |
configure the grid
tell the background estimator that it has a new event, composed of the specified particles.
Definition at line 301 of file HiFJGridEmptyAreaCalculator.cc.
References dphi_, dy_, etaMaxGrid_, etaMinGrid_, gridWidth_, createfilelist::int, METSignificanceParams_cfi::jeta, nphi_, ntotal_, ny_, tileArea_, twopi_, ymax_, and ymin_.
Referenced by produce().
|
private |
Definition at line 386 of file HiFJGridEmptyAreaCalculator.cc.
References dyJet_, reco::LeafCandidate::eta(), gridWidth_, createfilelist::int, nphi_, ntotalJet_, nyJet_, ymaxJet_, and yminJet_.
Referenced by calculateAreaFractionOfJets().
|
private |
Definition at line 361 of file HiFJGridEmptyAreaCalculator.cc.
References dy_, reco::LeafCandidate::eta(), createfilelist::int, ny_, and ymin_.
Referenced by calculateGridRho().
|
private |
Definition at line 412 of file HiFJGridEmptyAreaCalculator.cc.
References dy_, reco::LeafCandidate::eta(), createfilelist::int, nyJet_, and yminJet_.
Referenced by calculateAreaFractionOfJets().
|
private |
retrieve the grid cell index for a given PseudoJet
|
private |
Definition at line 339 of file HiFJGridEmptyAreaCalculator.cc.
References dphi_, createfilelist::int, nphi_, reco::LeafCandidate::phi(), and twopi_.
Referenced by calculateAreaFractionOfJets(), and calculateGridRho().
|
private |
Definition at line 98 of file HiFJGridEmptyAreaCalculator.h.
Referenced by produce().
|
private |
Definition at line 117 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), and produce().
|
private |
Definition at line 100 of file HiFJGridEmptyAreaCalculator.h.
Referenced by produce().
|
private |
Definition at line 74 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), setupGrid(), and tileIndexPhi().
|
private |
Definition at line 73 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), setupGrid(), tileIndexEta(), and tileIndexEtaJet().
|
private |
Definition at line 78 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), and setupGridJet().
|
private |
Definition at line 105 of file HiFJGridEmptyAreaCalculator.h.
Referenced by produce(), and setupGrid().
|
private |
Definition at line 85 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateAreaFractionOfJets(), HiFJGridEmptyAreaCalculator(), and produce().
|
private |
Definition at line 106 of file HiFJGridEmptyAreaCalculator.h.
Referenced by produce(), and setupGrid().
|
private |
Definition at line 84 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateAreaFractionOfJets(), HiFJGridEmptyAreaCalculator(), and produce().
|
private |
input parameters
Definition at line 97 of file HiFJGridEmptyAreaCalculator.h.
Referenced by setupGrid(), and setupGridJet().
|
private |
Definition at line 99 of file HiFJGridEmptyAreaCalculator.h.
Referenced by produce().
|
private |
input tokens
Definition at line 111 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateAreaFractionOfJets(), and HiFJGridEmptyAreaCalculator().
|
private |
Definition at line 101 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), and produce().
|
private |
Definition at line 113 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), and produce().
|
private |
Definition at line 115 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), and produce().
|
private |
Definition at line 114 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), and produce().
|
private |
Definition at line 104 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateGridRho(), and produce().
|
private |
Definition at line 89 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateGridRho(), HiFJGridEmptyAreaCalculator(), setupGrid(), setupGridJet(), and tileIndexPhi().
|
private |
Definition at line 90 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), n_tiles(), and setupGrid().
|
private |
Definition at line 93 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), and setupGridJet().
|
private |
Definition at line 88 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateGridRho(), HiFJGridEmptyAreaCalculator(), produce(), setupGrid(), and tileIndexEta().
|
private |
Definition at line 94 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), setupGridJet(), and tileIndexEtaJet().
|
private |
Definition at line 112 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateGridRho(), and HiFJGridEmptyAreaCalculator().
|
private |
Definition at line 103 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateGridRho(), and produce().
|
private |
Definition at line 75 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateGridRho(), HiFJGridEmptyAreaCalculator(), and setupGrid().
|
private |
Definition at line 81 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateAreaFractionOfJets(), HiFJGridEmptyAreaCalculator(), and produce().
|
private |
information about the grid
Definition at line 66 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateAreaFractionOfJets(), setupGrid(), and tileIndexPhi().
|
private |
Definition at line 72 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateGridRho(), HiFJGridEmptyAreaCalculator(), and setupGrid().
|
private |
Definition at line 80 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), and setupGridJet().
|
private |
internal parameters for grid
Definition at line 71 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateGridRho(), HiFJGridEmptyAreaCalculator(), setupGrid(), and tileIndexEta().
|
private |
Definition at line 79 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), setupGridJet(), and tileIndexEtaJet().