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")) {
53 if (CalibStyle ==
"PowerSeries") {
58 if (CalibStyle ==
"ORCAStyle") {
63 if (CalibStyle ==
"Simple") {
68 if (CalibStyle ==
"PiecewiseCubic") {
73 if (CalibStyle ==
"PF") {
79 if (CalibStyle !=
"None") {
85 ss <<
"nonTauJetCalib" <<
i;
87 m_jetCalibFunc.push_back(calibCoeffs.getParameter<std::vector<double> >(str));
93 ss <<
"tauJetCalib" <<
i;
95 m_tauCalibFunc.push_back(calibCoeffs.getParameter<std::vector<double> >(str));
106 edm::LogWarning(
"L1GctConfig") <<
"Calibration Style option " << CalibStyle << std::endl;
123 auto pL1GctJetFinderParams = std::make_unique<L1GctJetFinderParams>(
m_rgnEtLsb,
138 return pL1GctJetFinderParams;
144 for (
unsigned ieta = 0; ieta < 22; ++ieta) {
155 return std::unique_ptr<L1GctChannelMask>(mask);
163 std::vector<double>
result;
165 for (
unsigned ieta = 0; ieta < 7; ieta++) {
167 double factor = 0.5 * (
exp(bineta) +
exp(-bineta));
168 result.push_back(factor);
171 for (
unsigned ieta = 0; ieta < 4; ieta++) {
173 double factor = 0.5 * (
exp(bineta) +
exp(-bineta));
174 result.push_back(factor);
ChanMaskReturnType produceChanMask(const L1GctChannelMaskRcd &)
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
std::vector< std::vector< double > > m_jetCalibFunc
Exp< T >::type exp(const T &t)
JfParamsReturnType produceJfParams(const L1GctJetFinderParamsRcd &)
double etaBinCenter(unsigned int etaIndex, bool central=true) const
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
void maskTotalHt(unsigned ieta)
mask eta range from total Ht sum
const DepRecordT getRecord() const
std::vector< std::vector< double > > m_tauCalibFunc
static const unsigned NUMBER_ETA_VALUES
Number of eta bins used in correction.
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
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Log< level::Warning, false > LogWarning
void maskMissingHt(unsigned ieta)
mask eta range from missing Ht sum