27 m_rgnEtLsb(iConfig.getParameter<double>(
"RctRegionEtLSB")),
28 m_htLsb(iConfig.getParameter<double>(
"GctHtLSB")),
29 m_CenJetSeed(iConfig.getParameter<double>(
"JetFinderCentralJetSeed")),
30 m_FwdJetSeed(iConfig.getParameter<double>(
"JetFinderForwardJetSeed")),
31 m_TauJetSeed(iConfig.getParameter<double>(
"JetFinderCentralJetSeed")),
32 m_tauIsoThresh(iConfig.getParameter<double>(
"TauIsoEtThreshold")),
33 m_htJetThresh(iConfig.getParameter<double>(
"HtJetEtThreshold")),
34 m_mhtJetThresh(iConfig.getParameter<double>(
"MHtJetEtThreshold")),
37 m_convertToEnergy (iConfig.getParameter<
bool>(
"ConvertEtValuesToEnergy")),
40 m_metEtaMask(iConfig.getParameter<unsigned>(
"MEtEtaMask")),
41 m_tetEtaMask(iConfig.getParameter<unsigned>(
"TEtEtaMask")),
42 m_mhtEtaMask(iConfig.getParameter<unsigned>(
"MHtEtaMask")),
43 m_thtEtaMask(iConfig.getParameter<unsigned>(
"HtEtaMask"))
55 if (CalibStyle ==
"PowerSeries") {
60 if (CalibStyle ==
"ORCAStyle") {
65 if (CalibStyle ==
"Simple") {
70 if (CalibStyle ==
"PiecewiseCubic") {
75 if (CalibStyle ==
"PF") {
81 if (CalibStyle !=
"None") {
88 ss <<
"nonTauJetCalib" <<
i;
90 m_jetCalibFunc.push_back(calibCoeffs.getParameter< std::vector<double> >(str));
96 ss <<
"tauJetCalib" <<
i;
98 m_tauCalibFunc.push_back(calibCoeffs.getParameter< std::vector<double> >(str));
109 edm::LogWarning(
"L1GctConfig") <<
"Calibration Style option " << CalibStyle << std::endl;
130 geomRcd.
get( geom ) ;
133 auto pL1GctJetFinderParams = std::make_unique<L1GctJetFinderParams>(
m_rgnEtLsb,
148 return pL1GctJetFinderParams ;
157 for (
unsigned ieta=0; ieta<22; ++ieta) {
164 return std::unique_ptr<L1GctChannelMask>(
mask);
176 std::vector<double>
result;
178 for (
unsigned ieta=0; ieta<7; ieta++) {
180 double factor = 0.5*(
exp(bineta)+
exp(-bineta));
181 result.push_back(factor);
184 for (
unsigned ieta=0; ieta<4; ieta++) {
186 double factor = 0.5*(
exp(bineta)+
exp(-bineta));
187 result.push_back(factor);
ChanMaskReturnType produceChanMask(const L1GctChannelMaskRcd &)
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
static const unsigned N_CENTRAL_ETA_VALUES
Number of eta bins used in correction.
std::unique_ptr< L1GctChannelMask > ChanMaskReturnType
L1GctConfigProducers(const edm::ParameterSet &)
~L1GctConfigProducers() override
void maskMissingEt(unsigned ieta)
mask eta range from missing Et sum
JfParamsReturnType produceJfParams(const L1GctJetFinderParamsRcd &)
double etaBinCenter(unsigned int etaIndex, bool central=true) const
std::vector< std::vector< double > > m_jetCalibFunc
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
void maskTotalHt(unsigned ieta)
mask eta range from total Ht sum
const DepRecordT getRecord() const
static const unsigned NUMBER_ETA_VALUES
Number of eta bins used in correction.
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
std::unique_ptr< L1GctJetFinderParams > JfParamsReturnType
std::vector< double > etToEnergyConversion(const L1CaloGeometry *geom) const
Legacy nonsense.
void maskTotalEt(unsigned ieta)
mask eta range from total Et sum
std::vector< std::vector< double > > m_tauCalibFunc
void maskMissingHt(unsigned ieta)
mask eta range from missing Ht sum