CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  {
21  public:
22  inline explicit PileupGrid2d(const fftjet::Grid2d<Real>& g,
23  const double rhoFactor)
24  : grid_(g), rhoFactor_(rhoFactor) {}
25 
26  inline virtual ~PileupGrid2d() {}
27 
28  inline virtual double operator()(
29  const double eta, const double phi,
31  {
32  return rhoFactor_ * summary.pileupRho() *
33  grid_.coordValue(eta, phi);
34  }
35 
36  inline virtual bool isPhiDependent() const {return true;}
37 
38  private:
39  fftjet::Grid2d<Real> grid_;
40  double rhoFactor_;
41  };
42 }
43 
44 #endif // RecoJets_FFTJetAlgorithms_PileupGrid2d_h
virtual bool isPhiDependent() const
Definition: PileupGrid2d.h:36
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
virtual double operator()(const double eta, const double phi, const reco::FFTJetPileupSummary &summary) const
Definition: PileupGrid2d.h:28
fftjet::Grid2d< Real > grid_
Definition: PileupGrid2d.h:39
PileupGrid2d(const fftjet::Grid2d< Real > &g, const double rhoFactor)
Definition: PileupGrid2d.h:22