![]() |
![]() |
00001 //========================================================================= 00002 // EtaDependentPileup.h 00003 // 00004 // 2-d interpolation table appropriate for pile-up calculations 00005 // 00006 // I. Volobouev 00007 // June 2011 00008 //========================================================================= 00009 00010 #ifndef RecoJets_FFTJetAlgorithms_EtaDependentPileup_h 00011 #define RecoJets_FFTJetAlgorithms_EtaDependentPileup_h 00012 00013 #include "RecoJets/FFTJetAlgorithms/interface/AbsPileupCalculator.h" 00014 #include "fftjet/LinearInterpolator2d.hh" 00015 00016 namespace fftjetcms { 00017 class EtaDependentPileup : public AbsPileupCalculator 00018 { 00019 public: 00020 EtaDependentPileup(const fftjet::LinearInterpolator2d& i, 00021 double inputRhoFactor, double outputRhoFactor); 00022 00023 inline virtual ~EtaDependentPileup() {} 00024 00025 virtual double operator()( 00026 double eta, double phi, 00027 const reco::FFTJetPileupSummary& summary) const; 00028 00029 inline virtual bool isPhiDependent() const {return false;} 00030 00031 private: 00032 fftjet::LinearInterpolator2d interp_; 00033 double inputRhoFactor_; 00034 double outputRhoFactor_; 00035 double etaMin_; 00036 double etaMax_; 00037 double rhoMin_; 00038 double rhoMax_; 00039 double rhoStep_; 00040 }; 00041 } 00042 00043 #endif // RecoJets_FFTJetAlgorithms_EtaDependentPileup_h