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
Summary info for pile-up determined by Gaussian filtering.
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
fftjet::Grid2d< Real > grid_
Definition: PileupGrid2d.h:35
PileupGrid2d(const fftjet::Grid2d< Real > &g, const double rhoFactor)
Definition: PileupGrid2d.h:21
bool isPhiDependent() const override
Definition: PileupGrid2d.h:32
double operator()(const double eta, const double phi, const reco::FFTJetPileupSummary &summary) const override
Definition: PileupGrid2d.h:26