#include <HiFJGridEmptyAreaCalculator.h>
Public Member Functions | |
HiFJGridEmptyAreaCalculator (const edm::ParameterSet &) | |
~HiFJGridEmptyAreaCalculator () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndRuns () 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 24 of file HiFJGridEmptyAreaCalculator.h.
|
explicit |
Definition at line 16 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 64 of file HiFJGridEmptyAreaCalculator.cc.
|
overrideprivate |
Definition at line 444 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 227 of file HiFJGridEmptyAreaCalculator.cc.
References etamaxJet_, etaminJet_, iEvent, metsig::jet, METSignificanceParams_cfi::jeta, singleTopDQM_cfi::jets, jetsToken_, numJetGridCells(), setupGridJet(), tileIndexEtaJet(), tileIndexPhi(), totalInboundArea_, and twopi_.
Referenced by produce().
|
private |
Definition at line 171 of file HiFJGridEmptyAreaCalculator.cc.
References reco::LeafCandidate::eta(), iEvent, 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 446 of file HiFJGridEmptyAreaCalculator.cc.
|
static |
Definition at line 448 of file HiFJGridEmptyAreaCalculator.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and HLT_2018_cff::InputTag.
|
inlineprivate |
|
private |
number of grid cells that overlap with jet constituents filling in the in between area
Definition at line 416 of file HiFJGridEmptyAreaCalculator.cc.
References bTagCombinedSVVariables_cff::indices, and METSignificanceParams_cfi::jeta.
Referenced by calculateAreaFractionOfJets().
|
overrideprivate |
Definition at line 69 of file HiFJGridEmptyAreaCalculator.cc.
References band_, calculateAreaFractionOfJets(), calculateGridRho(), centralityBinToken_, doCentrality_, MillePedeFileConverter_cfg::e, muonTiming_cfi::etamax, etaMaxGrid_, etamaxJet_, muonTiming_cfi::etamin, etaMinGrid_, etaminJet_, hiBinCut_, LEDCalibrationChannels::ieta, iEvent, createfilelist::int, keepGridInfo_, mapEtaToken_, mapRhoMToken_, mapRhoToken_, meanRhoVsEta_, eostools::move(), neta, ny_, 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 291 of file HiFJGridEmptyAreaCalculator.cc.
References cms::cuda::assert(), dphi_, dy_, muonTiming_cfi::etamax, etaMaxGrid_, muonTiming_cfi::etamin, etaMinGrid_, gridWidth_, createfilelist::int, METSignificanceParams_cfi::jeta, nphi_, ntotal_, ny_, tileArea_, twopi_, ymax_, and ymin_.
Referenced by produce().
|
private |
Definition at line 373 of file HiFJGridEmptyAreaCalculator.cc.
References cms::cuda::assert(), dyJet_, gridWidth_, createfilelist::int, metsig::jet, nphi_, ntotalJet_, nyJet_, ymaxJet_, and yminJet_.
Referenced by calculateAreaFractionOfJets().
|
private |
Definition at line 348 of file HiFJGridEmptyAreaCalculator.cc.
References cms::cuda::assert(), dy_, reco::LeafCandidate::eta(), createfilelist::int, ny_, and ymin_.
Referenced by calculateGridRho().
|
private |
Definition at line 396 of file HiFJGridEmptyAreaCalculator.cc.
References cms::cuda::assert(), 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 326 of file HiFJGridEmptyAreaCalculator.cc.
References cms::cuda::assert(), dphi_, createfilelist::int, LEDCalibrationChannels::iphi, nphi_, reco::LeafCandidate::phi(), and twopi_.
Referenced by calculateAreaFractionOfJets(), and calculateGridRho().
|
private |
Definition at line 95 of file HiFJGridEmptyAreaCalculator.h.
Referenced by produce().
|
private |
Definition at line 114 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), and produce().
|
private |
Definition at line 97 of file HiFJGridEmptyAreaCalculator.h.
Referenced by produce().
|
private |
Definition at line 71 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), setupGrid(), and tileIndexPhi().
|
private |
Definition at line 70 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), setupGrid(), tileIndexEta(), and tileIndexEtaJet().
|
private |
Definition at line 75 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), and setupGridJet().
|
private |
Definition at line 102 of file HiFJGridEmptyAreaCalculator.h.
Referenced by produce(), and setupGrid().
|
private |
Definition at line 82 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateAreaFractionOfJets(), HiFJGridEmptyAreaCalculator(), and produce().
|
private |
Definition at line 103 of file HiFJGridEmptyAreaCalculator.h.
Referenced by produce(), and setupGrid().
|
private |
Definition at line 81 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateAreaFractionOfJets(), HiFJGridEmptyAreaCalculator(), and produce().
|
private |
input parameters
Definition at line 94 of file HiFJGridEmptyAreaCalculator.h.
Referenced by setupGrid(), and setupGridJet().
|
private |
Definition at line 96 of file HiFJGridEmptyAreaCalculator.h.
Referenced by produce().
|
private |
input tokens
Definition at line 108 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateAreaFractionOfJets(), and HiFJGridEmptyAreaCalculator().
|
private |
Definition at line 98 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), and produce().
|
private |
Definition at line 110 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), and produce().
|
private |
Definition at line 112 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), and produce().
|
private |
Definition at line 111 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), and produce().
|
private |
Definition at line 101 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateGridRho(), and produce().
|
private |
Definition at line 86 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateGridRho(), HiFJGridEmptyAreaCalculator(), setupGrid(), setupGridJet(), and tileIndexPhi().
|
private |
Definition at line 87 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), n_tiles(), and setupGrid().
|
private |
Definition at line 90 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), and setupGridJet().
|
private |
Definition at line 85 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateGridRho(), HiFJGridEmptyAreaCalculator(), produce(), setupGrid(), and tileIndexEta().
|
private |
Definition at line 91 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), setupGridJet(), and tileIndexEtaJet().
|
private |
Definition at line 109 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateGridRho(), and HiFJGridEmptyAreaCalculator().
|
private |
Definition at line 100 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateGridRho(), and produce().
|
private |
Definition at line 72 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateGridRho(), HiFJGridEmptyAreaCalculator(), and setupGrid().
|
private |
Definition at line 78 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateAreaFractionOfJets(), HiFJGridEmptyAreaCalculator(), and produce().
|
private |
information about the grid
Definition at line 63 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateAreaFractionOfJets(), setupGrid(), and tileIndexPhi().
|
private |
Definition at line 69 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateGridRho(), HiFJGridEmptyAreaCalculator(), and setupGrid().
|
private |
Definition at line 77 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), and setupGridJet().
|
private |
internal parameters for grid
Definition at line 68 of file HiFJGridEmptyAreaCalculator.h.
Referenced by calculateGridRho(), HiFJGridEmptyAreaCalculator(), setupGrid(), and tileIndexEta().
|
private |
Definition at line 76 of file HiFJGridEmptyAreaCalculator.h.
Referenced by HiFJGridEmptyAreaCalculator(), setupGridJet(), and tileIndexEtaJet().