CMS 3D CMS Logo

PileupGrid2d.h
Go to the documentation of this file.
1 //=========================================================================
2 // PileupGrid2d.h
3 //
4 // Simple table in the eta-phi space which multiplies the pile-up rho
5 //
6 // I. Volobouev
7 // June 2011
8 //=========================================================================
9 
10 #ifndef RecoJets_FFTJetAlgorithms_PileupGrid2d_h
11 #define RecoJets_FFTJetAlgorithms_PileupGrid2d_h
12 
13 #include "fftjet/Grid2d.hh"
14 
17 
18 namespace fftjetcms {
20  public:
21  inline explicit PileupGrid2d(const fftjet::Grid2d<Real>& g, const double rhoFactor)
22  : grid_(g), rhoFactor_(rhoFactor) {}
23 
24  inline ~PileupGrid2d() override {}
25 
26  inline double operator()(const double eta,
27  const double phi,
28  const reco::FFTJetPileupSummary& summary) const override {
29  return rhoFactor_ * summary.pileupRho() * grid_.coordValue(eta, phi);
30  }
31 
32  inline bool isPhiDependent() const override { return true; }
33 
34  private:
35  fftjet::Grid2d<Real> grid_;
36  double rhoFactor_;
37  };
38 } // namespace fftjetcms
39 
40 #endif // RecoJets_FFTJetAlgorithms_PileupGrid2d_h
fftjetcms::PileupGrid2d::~PileupGrid2d
~PileupGrid2d() override
Definition: PileupGrid2d.h:24
fftjetcms
Definition: AbsPileupCalculator.h:15
fftjetTypedefs.h
PVValHelper::eta
Definition: PVValidationHelpers.h:70
fftjetcms::PileupGrid2d::PileupGrid2d
PileupGrid2d(const fftjet::Grid2d< Real > &g, const double rhoFactor)
Definition: PileupGrid2d.h:21
reco::FFTJetPileupSummary
Summary info for pile-up determined by Gaussian filtering.
Definition: FFTJetPileupSummary.h:13
fftjetcms::PileupGrid2d
Definition: PileupGrid2d.h:19
fftjetcms::PileupGrid2d::rhoFactor_
double rhoFactor_
Definition: PileupGrid2d.h:36
edmLumisInFiles.summary
summary
Definition: edmLumisInFiles.py:39
fftjetcms::AbsPileupCalculator
Definition: AbsPileupCalculator.h:16
fftjetcms::PileupGrid2d::grid_
fftjet::Grid2d< Real > grid_
Definition: PileupGrid2d.h:35
fftjetcms::PileupGrid2d::isPhiDependent
bool isPhiDependent() const override
Definition: PileupGrid2d.h:32
fftjetcms::PileupGrid2d::operator()
double operator()(const double eta, const double phi, const reco::FFTJetPileupSummary &summary) const override
Definition: PileupGrid2d.h:26
AbsPileupCalculator.h
g
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4