40 #define init_param(type, varname) varname (ps.getParameter< type >( #varname ))
42 using namespace fftjetcms;
64 std::auto_ptr<reco::FFTJetPileupSummary> calibrateFromConfig(
65 double uncalibrated)
const;
67 std::auto_ptr<reco::FFTJetPileupSummary> calibrateFromDB(
73 if (ptr.get() ==
NULL)
152 const unsigned nScales = h.
nEtaBins();
153 const unsigned nCdfvalues = h.
nPhiBins();
155 const unsigned fixedCdfvalueBin =
static_cast<unsigned>(
157 if (fixedCdfvalueBin >= nCdfvalues)
160 <<
"Bad cdf value" << std::endl;
165 <<
"Bad filter number" << std::endl;
171 std::auto_ptr<reco::FFTJetPileupSummary>
summary;
190 std::auto_ptr<reco::FFTJetPileupSummary>
202 int uncertaintyCode = -1;
206 for (
unsigned i = 0;
i < nZones; ++
i)
209 if (i == nZones - 1U)
222 return std::auto_ptr<reco::FFTJetPileupSummary>(
224 rhoUncert, uncertaintyCode));
228 std::auto_ptr<reco::FFTJetPileupSummary>
235 boost::shared_ptr<npstat::StorableMultivariateFunctor> uz =
237 boost::shared_ptr<npstat::StorableMultivariateFunctor> cc =
239 boost::shared_ptr<npstat::StorableMultivariateFunctor> uc =
244 const int uncertaintyCode = round((*uz)(&curve, 1U));
246 return std::auto_ptr<reco::FFTJetPileupSummary>(
248 rhoUncert, uncertaintyCode));
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
unsigned nEtaBins() const
std::string calibTableRecord
Summary info for pile-up determined by Gaussian filtering.
std::auto_ptr< fftjet::Functor1< double, double > > calibrationCurve
const double * data() const
void produce(edm::Event &, const edm::EventSetup &)
std::auto_ptr< fftjet::Functor1< double, double > > fftjet_Function_parser(const edm::ParameterSet &ps)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
unsigned nPhiBins() const
std::vector< double > uncertaintyZones
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::auto_ptr< fftjet::Functor1< double, double > > uncertaintyCurve
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
std::string calibTableCategory
std::string uncertaintyZonesName
std::string calibrationCurveName
std::string uncertaintyCurveName
std::auto_ptr< reco::FFTJetPileupSummary > calibrateFromDB(double uncalibrated, const edm::EventSetup &iSetup) const
static const Mapper & instance()
#define init_param(type, varname)
void checkConfig(const Ptr &ptr, const char *message)
std::auto_ptr< reco::FFTJetPileupSummary > calibrateFromConfig(double uncalibrated) const