20 #include "boost/shared_ptr.hpp"
75 setWhatProduced(
this);
104 std::ifstream egTrimmingLUTStream(egTrimmingLUTFile.
fullPath());
105 std::shared_ptr<LUT> egTrimmingLUT(
new LUT(egTrimmingLUTStream) );
117 std::ifstream egMaxHOverELUTStream(egMaxHOverELUTFile.
fullPath());
118 std::shared_ptr<LUT> egMaxHOverELUT(
new LUT(egMaxHOverELUTStream) );
122 std::ifstream egCompressShapesLUTStream(egCompressShapesLUTFile.
fullPath());
123 std::shared_ptr<LUT> egCompressShapesLUT(
new LUT(egCompressShapesLUTStream) );
127 std::ifstream egShapeIdLUTStream(egShapeIdLUTFile.
fullPath());
128 std::shared_ptr<LUT> egShapeIdLUT(
new LUT(egShapeIdLUTStream) );
134 std::ifstream egIsoLUTStream(egIsoLUTFile.
fullPath());
135 std::shared_ptr<LUT> egIsoLUT(
new LUT(egIsoLUTStream) );
158 std::ifstream egCalibrationLUTStream(egCalibrationLUTFile.
fullPath());
159 std::shared_ptr<LUT> egCalibrationLUT(
new LUT(egCalibrationLUTStream) );
177 std::ifstream tauIsoLUTStream(tauIsoLUTFile.
fullPath());
178 std::shared_ptr<LUT> tauIsoLUT(
new LUT(tauIsoLUTStream) );
182 std::ifstream tauCalibrationLUTStream(tauCalibrationLUTFile.
fullPath());
183 std::shared_ptr<LUT> tauCalibrationLUT(
new LUT(tauCalibrationLUTStream) );
187 std::ifstream tauEtToHFRingEtLUTStream(tauEtToHFRingEtLUTFile.
fullPath());
188 std::shared_ptr<LUT> tauEtToHFRingEtLUT(
new LUT(tauEtToHFRingEtLUTStream) );
205 std::ifstream jetCalibrationLUTStream(jetCalibrationLUTFile.
fullPath());
206 std::shared_ptr<LUT> jetCalibrationLUT(
new LUT(jetCalibrationLUTStream) );
212 std::vector<int> etSumEtaMin = conf.
getParameter<std::vector<int> >(
"etSumEtaMin");
213 std::vector<int> etSumEtaMax = conf.
getParameter<std::vector<int> >(
"etSumEtaMax");
214 std::vector<double> etSumEtThreshold = conf.
getParameter<std::vector<double> >(
"etSumEtThreshold");
216 if ((etSumEtaMin.size() == etSumEtaMax.size()) && (etSumEtaMin.size() == etSumEtThreshold.size())) {
217 for (
unsigned i=0;
i<etSumEtaMin.size(); ++
i) {
224 edm::LogError(
"l1t|calo") <<
"Inconsistent number of EtSum parameters" << std::endl;
229 std::ifstream centralityLUTStream(centralityLUTFile.
fullPath());
230 std::shared_ptr<LUT> centralityLUT(
new LUT(centralityLUTStream) );
233 std::vector<int> minbiasThresholds = conf.
getParameter<std::vector<int> >(
"minimumBiasThresholds");
234 if(minbiasThresholds.size() == 4) {
237 edm::LogError(
"l1t|calo") <<
"Incorrect number of minimum bias thresholds set.";
242 std::ifstream q2LUTStream(q2LUTFile.
fullPath());
243 std::shared_ptr<LUT> q2LUT(
new LUT(q2LUTStream) );
267 using namespace edm::es;
268 boost::shared_ptr<CaloParams> pCaloParams ;
270 pCaloParams = boost::shared_ptr< CaloParams >(
new CaloParams(m_params));
void setEtSumEtaMax(unsigned isum, int eta)
T getParameter(std::string const &) const
boost::shared_ptr< CaloParams > ReturnType
void setTauMaxJetIsolationA(double cutValue)
void setCentralityLUT(const l1t::LUT &lut)
void setIsoTauEtaMax(int value)
void setTauMinPtJetIsolationB(double limit)
void setRegionPUSType(std::string type)
void setEgNeighbourThreshold(double thresh)
~L1TCaloParamsESProducer()
void setEgMinPtHOverEIsolation(int cutValue)
void setEgLsb(double lsb)
void setJetCalibrationParams(std::vector< double > params)
void setTauEtToHFRingEtLUT(const l1t::LUT &lut)
void setTauCalibrationLUT(const l1t::LUT &lut)
void setTauLsb(double lsb)
void setTauIsolationLUT(const l1t::LUT &lut)
void setJetCalibrationLUT(const l1t::LUT &lut)
void setTauNeighbourThreshold(double thresh)
void setEgMaxPtJetIsolation(int cutValue)
void setEgHcalThreshold(double thresh)
void setTauIsoAreaNrTowersPhi(unsigned iTauIsoAreaNrTowersPhi)
void setCentralityRegionMask(int mask)
L1TCaloParamsESProducer(const edm::ParameterSet &)
void setTauIsoAreaNrTowersEta(unsigned iTauIsoAreaNrTowersEta)
void setEgCalibrationLUT(const l1t::LUT &lut)
void setEgShapeIdLUT(const l1t::LUT &lut)
ReturnType produce(const L1TCaloParamsRcd &)
void setEtSumEtaMin(unsigned isum, int eta)
void setTauMaxPtTauVeto(double limit)
void setRegionLsb(double lsb)
void setJetCalibrationType(std::string type)
void setTowerLsbH(double lsb)
void setEgMinPtJetIsolation(int cutValue)
void setTowerNBitsH(int n)
void setEtSumEtThreshold(unsigned isum, double thresh)
void setTauPUSType(std::string type)
void setEgPUSType(std::string type)
void setTauSeedThreshold(double thresh)
void setTowerEncoding(bool doit)
void setTauMaxJetIsolationB(double limit)
void setEgIsoAreaNrTowersPhi(unsigned iEgIsoAreaNrTowersPhi)
void setTowerNBitsSum(int n)
void setJetNeighbourThreshold(double thresh)
void setTauRegionMask(int mask)
void setJetRegionMask(int mask)
void setEgEtaCut(int mask)
void setEgMaxHcalEt(double cut)
void setJetLsb(double lsb)
void setTauPUSParams(const std::vector< double > ¶ms)
void setQ2LUT(const l1t::LUT &lut)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void setEgMaxHOverELUT(const l1t::LUT &lut)
void setTowerNBitsE(int n)
void setMinimumBiasThresholds(std::vector< int > thresholds)
void setJetSeedThreshold(double thresh)
void setEgMaxPtHOverE(double thresh)
void setEgTrimmingLUT(const l1t::LUT &lut)
void setRegionPUSParams(const std::vector< double > ¶ms)
void setEgIsolationLUT(const l1t::LUT &lut)
void setEgMaxPtHOverEIsolation(int cutValue)
void setEgSeedThreshold(double thresh)
void setTauIsoVetoNrTowersPhi(unsigned iTauIsoVetoNrTowersPhi)
void setJetPUSType(std::string type)
void setEgIsoVetoNrTowersPhi(unsigned iEgIsoVetoNrTowersPhi)
void setEtSumLsb(double lsb)
void setEgIsoAreaNrTowersEta(unsigned iEgIsoAreaNrTowersEta)
std::string fullPath() const
std::vector< unsigned short int > LUT
void setIsoTauEtaMin(int value)
void setTowerLsbSum(double lsb)
void setEgPUSParams(const std::vector< double > ¶ms)
void setTowerLsbE(double lsb)
void setEgCompressShapesLUT(const l1t::LUT &lut)
void setTowerNBitsRatio(int n)