20 #include "boost/shared_ptr.hpp"
75 setWhatProduced(
this);
104 std::ifstream egTrimmingLUTStream(egTrimmingLUTFile.
fullPath());
105 std::shared_ptr<LUT> egTrimmingLUT(
new LUT(egTrimmingLUTStream) );
120 std::ifstream egMaxHOverELUTStream(egMaxHOverELUTFile.
fullPath());
121 std::shared_ptr<LUT> egMaxHOverELUT(
new LUT(egMaxHOverELUTStream) );
125 std::ifstream egCompressShapesLUTStream(egCompressShapesLUTFile.
fullPath());
126 std::shared_ptr<LUT> egCompressShapesLUT(
new LUT(egCompressShapesLUTStream) );
132 std::ifstream egShapeIdLUTStream(egShapeIdLUTFile.
fullPath());
133 std::shared_ptr<LUT> egShapeIdLUT(
new LUT(egShapeIdLUTStream) );
140 std::ifstream egIsoLUTStream(egIsoLUTFile.
fullPath());
141 std::shared_ptr<LUT> egIsoLUT(
new LUT(egIsoLUTStream) );
166 std::ifstream egCalibrationLUTStream(egCalibrationLUTFile.
fullPath());
167 std::shared_ptr<LUT> egCalibrationLUT(
new LUT(egCalibrationLUTStream) );
185 std::ifstream tauIsoLUTStream(tauIsoLUTFile.
fullPath());
186 std::shared_ptr<LUT> tauIsoLUT(
new LUT(tauIsoLUTStream) );
190 std::ifstream tauIsoLUTStream2(tauIsoLUTFile2.
fullPath());
191 std::shared_ptr<LUT> tauIsoLUT2(
new LUT(tauIsoLUTStream2) );
195 std::ifstream tauCalibrationLUTStream(tauCalibrationLUTFile.
fullPath());
196 std::shared_ptr<LUT> tauCalibrationLUT(
new LUT(tauCalibrationLUTStream) );
200 std::ifstream tauCompressLUTStream(tauCompressLUTFile.
fullPath());
201 std::shared_ptr<LUT> tauCompressLUT(
new LUT(tauCompressLUTStream) );
205 std::ifstream tauEtToHFRingEtLUTStream(tauEtToHFRingEtLUTFile.
fullPath());
206 std::shared_ptr<LUT> tauEtToHFRingEtLUT(
new LUT(tauEtToHFRingEtLUTStream) );
224 std::ifstream jetCalibrationLUTStream(jetCalibrationLUTFile.
fullPath());
225 std::shared_ptr<LUT> jetCalibrationLUT(
new LUT(jetCalibrationLUTStream) );
228 std::ifstream jetCompressEtaLUTStream(jetCompressEtaLUTFile.
fullPath());
229 std::shared_ptr<LUT> jetCompressEtaLUT(
new LUT(jetCompressEtaLUTStream) );
232 std::ifstream jetCompressPtLUTStream(jetCompressPtLUTFile.
fullPath());
233 std::shared_ptr<LUT> jetCompressPtLUT(
new LUT(jetCompressPtLUTStream) );
239 std::vector<int> etSumEtaMin = conf.
getParameter<std::vector<int> >(
"etSumEtaMin");
240 std::vector<int> etSumEtaMax = conf.
getParameter<std::vector<int> >(
"etSumEtaMax");
241 std::vector<double> etSumEtThreshold = conf.
getParameter<std::vector<double> >(
"etSumEtThreshold");
243 if ((etSumEtaMin.size() == etSumEtaMax.size()) && (etSumEtaMin.size() == etSumEtThreshold.size())) {
244 for (
unsigned i=0;
i<etSumEtaMin.size(); ++
i) {
251 edm::LogError(
"l1t|calo") <<
"Inconsistent number of EtSum parameters" << std::endl;
255 std::ifstream etSumXPUSLUTStream(etSumXPUSLUTFile.
fullPath());
256 std::shared_ptr<LUT> etSumXPUSLUT(
new LUT(etSumXPUSLUTStream) );
260 std::ifstream etSumYPUSLUTStream(etSumYPUSLUTFile.
fullPath());
261 std::shared_ptr<LUT> etSumYPUSLUT(
new LUT(etSumYPUSLUTStream) );
265 std::ifstream etSumEttPUSLUTStream(etSumEttPUSLUTFile.
fullPath());
266 std::shared_ptr<LUT> etSumEttPUSLUT(
new LUT(etSumEttPUSLUTStream) );
270 std::ifstream etSumEcalSumPUSLUTStream(etSumEcalSumPUSLUTFile.
fullPath());
271 std::shared_ptr<LUT> etSumEcalSumPUSLUT(
new LUT(etSumEcalSumPUSLUTStream) );
276 std::ifstream centralityLUTStream(centralityLUTFile.
fullPath());
277 std::shared_ptr<LUT> centralityLUT(
new LUT(centralityLUTStream) );
280 std::vector<int> minbiasThresholds = conf.
getParameter<std::vector<int> >(
"minimumBiasThresholds");
281 if(minbiasThresholds.size() == 4) {
284 edm::LogError(
"l1t|calo") <<
"Incorrect number of minimum bias thresholds set.";
289 std::ifstream q2LUTStream(q2LUTFile.
fullPath());
290 std::shared_ptr<LUT> q2LUT(
new LUT(q2LUTStream) );
323 using namespace edm::es;
324 boost::shared_ptr<CaloParams> pCaloParams ;
326 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 setEgCalibrationVersion(unsigned version)
void setCentralityLUT(const l1t::LUT &lut)
void setLayer1HCalScaleETBins(const std::vector< int > params)
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 setEgHOverEcutEndcap(int cut)
void setEgHcalThreshold(double thresh)
void setTauIsoAreaNrTowersPhi(unsigned iTauIsoAreaNrTowersPhi)
void setEtSumXPUSLUT(const l1t::LUT &lut)
void setCentralityRegionMask(int mask)
L1TCaloParamsESProducer(const edm::ParameterSet &)
void setJetCompressEtaLUT(const l1t::LUT &lut)
void setTauIsoAreaNrTowersEta(unsigned iTauIsoAreaNrTowersEta)
void setEgCalibrationLUT(const l1t::LUT &lut)
void setEgShapeIdLUT(const l1t::LUT &lut)
void setEtSumEttPUSLUT(const l1t::LUT &lut)
void setJetCompressPtLUT(const l1t::LUT &lut)
void setEgHOverEcutBarrel(int cut)
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 setEgBypassEGVetos(unsigned flag)
void setTauCompressLUT(const l1t::LUT &lut)
void setTowerNBitsH(int n)
void setLayer1HFScaleETBins(const std::vector< int > params)
void setEtSumEtThreshold(unsigned isum, double thresh)
void setTauPUSType(std::string type)
void setEgPUSType(std::string type)
void setLayer1ECalScaleETBins(const std::vector< int > params)
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 setEgShapeIdVersion(unsigned version)
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)
void setLayer1HCalScaleFactors(const std::vector< double > params)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void setEgMaxHOverELUT(const l1t::LUT &lut)
void setLayer1HFScaleFactors(const std::vector< double > params)
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 setTauIsolationLUT2(const l1t::LUT &lut)
void setJetBypassPUS(unsigned flag)
void setEgSeedThreshold(double thresh)
void setTauIsoVetoNrTowersPhi(unsigned iTauIsoVetoNrTowersPhi)
void setLayer1ECalScaleFactors(const std::vector< double > params)
void setJetPUSType(std::string type)
void setEgIsoVetoNrTowersPhi(unsigned iEgIsoVetoNrTowersPhi)
void setEtSumLsb(double lsb)
void setEtSumYPUSLUT(const l1t::LUT &lut)
void setEgIsoAreaNrTowersEta(unsigned iEgIsoAreaNrTowersEta)
std::string fullPath() const
std::vector< unsigned short int > LUT
void setEgShapeIdType(std::string type)
void setIsoTauEtaMin(int value)
void setTowerLsbSum(double lsb)
void setEgPUSParams(const std::vector< double > ¶ms)
void setTowerLsbE(double lsb)
void setEgCalibrationType(std::string type)
void setEtSumEcalSumPUSLUT(const l1t::LUT &lut)
void setEgCompressShapesLUT(const l1t::LUT &lut)
void setTowerNBitsRatio(int n)
void setEgIsolationType(std::string type)