20 #include "boost/shared_ptr.hpp"
73 setWhatProduced(
this);
77 m_params.setTowerLsbH(conf.
getParameter<
double>(
"towerLsbH"));
78 m_params.setTowerLsbE(conf.
getParameter<
double>(
"towerLsbE"));
79 m_params.setTowerLsbSum(conf.
getParameter<
double>(
"towerLsbSum"));
80 m_params.setTowerNBitsH(conf.
getParameter<
int>(
"towerNBitsH"));
81 m_params.setTowerNBitsE(conf.
getParameter<
int>(
"towerNBitsE"));
82 m_params.setTowerNBitsSum(conf.
getParameter<
int>(
"towerNBitsSum"));
83 m_params.setTowerNBitsRatio(conf.
getParameter<
int>(
"towerNBitsRatio"));
84 m_params.setTowerEncoding(conf.
getParameter<
bool>(
"towerEncoding"));
87 m_params.setRegionLsb(conf.
getParameter<
double>(
"regionLsb"));
89 m_params.setRegionPUSParams(conf.
getParameter<std::vector<double> >(
"regionPUSParams"));
93 m_params.setEgSeedThreshold(conf.
getParameter<
double>(
"egSeedThreshold"));
94 m_params.setEgNeighbourThreshold(conf.
getParameter<
double>(
"egNeighbourThreshold"));
95 m_params.setEgMaxHcalEt(conf.
getParameter<
double>(
"egMaxHcalEt"));
96 m_params.setEgEtToRemoveHECut(conf.
getParameter<
double>(
"egEtToRemoveHECut"));
97 m_params.setEgMaxHOverE(conf.
getParameter<
double>(
"egMaxHOverE"));
101 std::ifstream egIsoLUTStream(egIsoLUTFile.
fullPath());
102 std::shared_ptr<l1t::LUT> egIsoLUT(
new l1t::LUT(egIsoLUTStream) );
103 m_params.setEgIsolationLUT(egIsoLUT);
105 m_params.setEgIsoAreaNrTowersEta(conf.
getParameter<
unsigned int>(
"egIsoAreaNrTowersEta"));
106 m_params.setEgIsoAreaNrTowersPhi(conf.
getParameter<
unsigned int>(
"egIsoAreaNrTowersPhi"));
107 m_params.setEgIsoVetoNrTowersPhi(conf.
getParameter<
unsigned int>(
"egIsoVetoNrTowersPhi"));
108 m_params.setEgIsoPUEstTowerGranularity(conf.
getParameter<
unsigned int>(
"egIsoPUEstTowerGranularity"));
109 m_params.setEgIsoMaxEtaAbsForTowerSum(conf.
getParameter<
unsigned int>(
"egIsoMaxEtaAbsForTowerSum"));
110 m_params.setEgIsoMaxEtaAbsForIsoSum(conf.
getParameter<
unsigned int>(
"egIsoMaxEtaAbsForIsoSum"));
113 m_params.setTauLsb(conf.
getParameter<
double>(
"tauLsb"));
114 m_params.setTauSeedThreshold(conf.
getParameter<
double>(
"tauSeedThreshold"));
115 m_params.setTauNeighbourThreshold(conf.
getParameter<
double>(
"tauNeighbourThreshold"));
119 std::ifstream tauIsoLUTStream(tauIsoLUTFile.
fullPath());
120 std::shared_ptr<l1t::LUT> tauIsoLUT(
new l1t::LUT(tauIsoLUTStream) );
121 m_params.setTauIsolationLUT(tauIsoLUT);
124 m_params.setJetLsb(conf.
getParameter<
double>(
"jetLsb"));
125 m_params.setJetSeedThreshold(conf.
getParameter<
double>(
"jetSeedThreshold"));
126 m_params.setJetNeighbourThreshold(conf.
getParameter<
double>(
"jetNeighbourThreshold"));
129 m_params.setJetCalibrationParams(conf.
getParameter<std::vector<double> >(
"jetCalibrationParams"));
132 m_params.setEtSumLsb(conf.
getParameter<
double>(
"etSumLsb"));
133 m_params.setEtSumEtaMin(0, conf.
getParameter<
int>(
"ettEtaMin"));
134 m_params.setEtSumEtaMax(0, conf.
getParameter<
int>(
"ettEtaMax"));
135 m_params.setEtSumEtThreshold(0, conf.
getParameter<
double>(
"ettEtThreshold"));
136 m_params.setEtSumEtaMin(1, conf.
getParameter<
int>(
"httEtaMin"));
137 m_params.setEtSumEtaMax(1, conf.
getParameter<
int>(
"httEtaMax"));
138 m_params.setEtSumEtThreshold(1, conf.
getParameter<
double>(
"httEtThreshold"));
139 m_params.setEtSumEtaMin(2, conf.
getParameter<
int>(
"metEtaMin"));
140 m_params.setEtSumEtaMax(2, conf.
getParameter<
int>(
"metEtaMax"));
141 m_params.setEtSumEtThreshold(2, conf.
getParameter<
double>(
"metEtThreshold"));
142 m_params.setEtSumEtaMin(3, conf.
getParameter<
int>(
"mhtEtaMin"));
143 m_params.setEtSumEtaMax(3, conf.
getParameter<
int>(
"mhtEtaMax"));
144 m_params.setEtSumEtThreshold(3, conf.
getParameter<
double>(
"mhtEtThreshold"));
149 CaloParamsESProducer::~CaloParamsESProducer()
166 using namespace edm::es;
167 boost::shared_ptr<CaloParams> pCaloParams ;
169 pCaloParams = boost::shared_ptr< CaloParams >(
new CaloParams(m_params));
T getParameter(std::string const &) const
boost::shared_ptr< CaloParams > ReturnType
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
std::string fullPath() const