test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
L1TCaloParamsESProducer Class Reference
Inheritance diagram for L1TCaloParamsESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Types

typedef boost::shared_ptr
< CaloParams
ReturnType
 
- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair
< DataKey,
edm::propagate_const
< std::shared_ptr< DataProxy > > > > 
KeyedProxies
 
typedef std::vector
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 

Public Member Functions

 L1TCaloParamsESProducer (const edm::ParameterSet &)
 
ReturnType produce (const L1TCaloParamsRcd &)
 
 ~L1TCaloParamsESProducer ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider ()
 

Private Attributes

std::string m_label
 
CaloParams m_params
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 

Detailed Description

Description: Produces configuration parameters for the fictitious Yellow trigger.

Implementation: Dummy producer for L1 calo upgrade configuration parameters

Author
: Jim Brooke, University of Bristol

Definition at line 45 of file L1TCaloParamsESProducer.cc.

Member Typedef Documentation

typedef boost::shared_ptr<CaloParams> L1TCaloParamsESProducer::ReturnType

Definition at line 50 of file L1TCaloParamsESProducer.cc.

Constructor & Destructor Documentation

L1TCaloParamsESProducer::L1TCaloParamsESProducer ( const edm::ParameterSet conf)

Definition at line 70 of file L1TCaloParamsESProducer.cc.

References edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), i, l1t::CaloParamsHelper::setCentralityLUT(), l1t::CaloParamsHelper::setCentralityRegionMask(), l1t::CaloParamsHelper::setEgBypassEGVetos(), l1t::CaloParamsHelper::setEgCalibrationLUT(), l1t::CaloParamsHelper::setEgCalibrationType(), l1t::CaloParamsHelper::setEgCalibrationVersion(), l1t::CaloParamsHelper::setEgCompressShapesLUT(), l1t::CaloParamsHelper::setEgEtaCut(), l1t::CaloParamsHelper::setEgHcalThreshold(), l1t::CaloParamsHelper::setEgHOverEcutBarrel(), l1t::CaloParamsHelper::setEgHOverEcutEndcap(), l1t::CaloParamsHelper::setEgIsoAreaNrTowersEta(), l1t::CaloParamsHelper::setEgIsoAreaNrTowersPhi(), l1t::CaloParamsHelper::setEgIsolationLUT(), l1t::CaloParamsHelper::setEgIsolationType(), l1t::CaloParamsHelper::setEgIsoVetoNrTowersPhi(), l1t::CaloParamsHelper::setEgLsb(), l1t::CaloParamsHelper::setEgMaxHcalEt(), l1t::CaloParamsHelper::setEgMaxHOverELUT(), l1t::CaloParamsHelper::setEgMaxPtHOverE(), l1t::CaloParamsHelper::setEgMaxPtHOverEIsolation(), l1t::CaloParamsHelper::setEgMaxPtJetIsolation(), l1t::CaloParamsHelper::setEgMinPtHOverEIsolation(), l1t::CaloParamsHelper::setEgMinPtJetIsolation(), l1t::CaloParamsHelper::setEgNeighbourThreshold(), l1t::CaloParamsHelper::setEgPUSParams(), l1t::CaloParamsHelper::setEgPUSType(), l1t::CaloParamsHelper::setEgSeedThreshold(), l1t::CaloParamsHelper::setEgShapeIdLUT(), l1t::CaloParamsHelper::setEgShapeIdType(), l1t::CaloParamsHelper::setEgShapeIdVersion(), l1t::CaloParamsHelper::setEgTrimmingLUT(), l1t::CaloParamsHelper::setEtSumEcalSumPUSLUT(), l1t::CaloParamsHelper::setEtSumEtaMax(), l1t::CaloParamsHelper::setEtSumEtaMin(), l1t::CaloParamsHelper::setEtSumEtThreshold(), l1t::CaloParamsHelper::setEtSumEttPUSLUT(), l1t::CaloParamsHelper::setEtSumLsb(), l1t::CaloParamsHelper::setEtSumXPUSLUT(), l1t::CaloParamsHelper::setEtSumYPUSLUT(), l1t::CaloParamsHelper::setIsoTauEtaMax(), l1t::CaloParamsHelper::setIsoTauEtaMin(), l1t::CaloParamsHelper::setJetBypassPUS(), l1t::CaloParamsHelper::setJetCalibrationLUT(), l1t::CaloParamsHelper::setJetCalibrationParams(), l1t::CaloParamsHelper::setJetCalibrationType(), l1t::CaloParamsHelper::setJetCompressEtaLUT(), l1t::CaloParamsHelper::setJetCompressPtLUT(), l1t::CaloParamsHelper::setJetLsb(), l1t::CaloParamsHelper::setJetNeighbourThreshold(), l1t::CaloParamsHelper::setJetPUSType(), l1t::CaloParamsHelper::setJetRegionMask(), l1t::CaloParamsHelper::setJetSeedThreshold(), l1t::CaloParamsHelper::setLayer1ECalScaleETBins(), l1t::CaloParamsHelper::setLayer1ECalScaleFactors(), l1t::CaloParamsHelper::setLayer1HCalScaleETBins(), l1t::CaloParamsHelper::setLayer1HCalScaleFactors(), l1t::CaloParamsHelper::setLayer1HFScaleETBins(), l1t::CaloParamsHelper::setLayer1HFScaleFactors(), l1t::CaloParamsHelper::setMinimumBiasThresholds(), l1t::CaloParamsHelper::setQ2LUT(), l1t::CaloParamsHelper::setRegionLsb(), l1t::CaloParamsHelper::setRegionPUSParams(), l1t::CaloParamsHelper::setRegionPUSType(), l1t::CaloParamsHelper::setTauCalibrationLUT(), l1t::CaloParamsHelper::setTauCompressLUT(), l1t::CaloParamsHelper::setTauEtToHFRingEtLUT(), l1t::CaloParamsHelper::setTauIsoAreaNrTowersEta(), l1t::CaloParamsHelper::setTauIsoAreaNrTowersPhi(), l1t::CaloParamsHelper::setTauIsolationLUT(), l1t::CaloParamsHelper::setTauIsolationLUT2(), l1t::CaloParamsHelper::setTauIsoVetoNrTowersPhi(), l1t::CaloParamsHelper::setTauLsb(), l1t::CaloParamsHelper::setTauMaxJetIsolationA(), l1t::CaloParamsHelper::setTauMaxJetIsolationB(), l1t::CaloParamsHelper::setTauMaxPtTauVeto(), l1t::CaloParamsHelper::setTauMinPtJetIsolationB(), l1t::CaloParamsHelper::setTauNeighbourThreshold(), l1t::CaloParamsHelper::setTauPUSParams(), l1t::CaloParamsHelper::setTauPUSType(), l1t::CaloParamsHelper::setTauRegionMask(), l1t::CaloParamsHelper::setTauSeedThreshold(), l1t::CaloParamsHelper::setTowerEncoding(), l1t::CaloParamsHelper::setTowerLsbE(), l1t::CaloParamsHelper::setTowerLsbH(), l1t::CaloParamsHelper::setTowerLsbSum(), l1t::CaloParamsHelper::setTowerNBitsE(), l1t::CaloParamsHelper::setTowerNBitsH(), l1t::CaloParamsHelper::setTowerNBitsRatio(), l1t::CaloParamsHelper::setTowerNBitsSum(), and AlCaHLTBitMon_QueryRunRegistry::string.

71 {
72 
73  //the following line is needed to tell the framework what
74  // data is being produced
75  setWhatProduced(this);
76  //setWhatProduced(this, conf.getParameter<std::string>("label"));
77 
78  CaloParamsHelper m_params_helper;
79 
80  // towers
81  m_params_helper.setTowerLsbH(conf.getParameter<double>("towerLsbH"));
82  m_params_helper.setTowerLsbE(conf.getParameter<double>("towerLsbE"));
83  m_params_helper.setTowerLsbSum(conf.getParameter<double>("towerLsbSum"));
84  m_params_helper.setTowerNBitsH(conf.getParameter<int>("towerNBitsH"));
85  m_params_helper.setTowerNBitsE(conf.getParameter<int>("towerNBitsE"));
86  m_params_helper.setTowerNBitsSum(conf.getParameter<int>("towerNBitsSum"));
87  m_params_helper.setTowerNBitsRatio(conf.getParameter<int>("towerNBitsRatio"));
88  m_params_helper.setTowerEncoding(conf.getParameter<bool>("towerEncoding"));
89 
90  // regions
91  m_params_helper.setRegionLsb(conf.getParameter<double>("regionLsb"));
92  m_params_helper.setRegionPUSType(conf.getParameter<std::string>("regionPUSType"));
93  m_params_helper.setRegionPUSParams(conf.getParameter<std::vector<double> >("regionPUSParams"));
94 
95  // EG
96  m_params_helper.setEgEtaCut(conf.getParameter<int>("egEtaCut"));
97 
98  m_params_helper.setEgLsb(conf.getParameter<double>("egLsb"));
99  m_params_helper.setEgSeedThreshold(conf.getParameter<double>("egSeedThreshold"));
100  m_params_helper.setEgNeighbourThreshold(conf.getParameter<double>("egNeighbourThreshold"));
101  m_params_helper.setEgHcalThreshold(conf.getParameter<double>("egHcalThreshold"));
102 
103  edm::FileInPath egTrimmingLUTFile = conf.getParameter<edm::FileInPath>("egTrimmingLUTFile");
104  std::ifstream egTrimmingLUTStream(egTrimmingLUTFile.fullPath());
105  std::shared_ptr<LUT> egTrimmingLUT( new LUT(egTrimmingLUTStream) );
106  m_params_helper.setEgTrimmingLUT(*egTrimmingLUT);
107 
108  m_params_helper.setEgMaxHcalEt(conf.getParameter<double>("egMaxHcalEt"));
109  m_params_helper.setEgMaxPtHOverE(conf.getParameter<double>("egMaxPtHOverE"));
110  m_params_helper.setEgHOverEcutBarrel(conf.getParameter<int>("egHOverEcutBarrel"));
111  m_params_helper.setEgHOverEcutEndcap(conf.getParameter<int>("egHOverEcutEndcap"));
112  m_params_helper.setEgMinPtJetIsolation(conf.getParameter<int>("egMinPtJetIsolation"));
113  m_params_helper.setEgMaxPtJetIsolation(conf.getParameter<int>("egMaxPtJetIsolation"));
114  m_params_helper.setEgMinPtHOverEIsolation(conf.getParameter<int>("egMinPtHOverEIsolation"));
115  m_params_helper.setEgMaxPtHOverEIsolation(conf.getParameter<int>("egMaxPtHOverEIsolation"));
116  m_params_helper.setEgBypassEGVetos(conf.getParameter<unsigned>("egBypassEGVetos"));
117 
118 
119  edm::FileInPath egMaxHOverELUTFile = conf.getParameter<edm::FileInPath>("egMaxHOverELUTFile");
120  std::ifstream egMaxHOverELUTStream(egMaxHOverELUTFile.fullPath());
121  std::shared_ptr<LUT> egMaxHOverELUT( new LUT(egMaxHOverELUTStream) );
122  m_params_helper.setEgMaxHOverELUT(*egMaxHOverELUT);
123 
124  edm::FileInPath egCompressShapesLUTFile = conf.getParameter<edm::FileInPath>("egCompressShapesLUTFile");
125  std::ifstream egCompressShapesLUTStream(egCompressShapesLUTFile.fullPath());
126  std::shared_ptr<LUT> egCompressShapesLUT( new LUT(egCompressShapesLUTStream) );
127  m_params_helper.setEgCompressShapesLUT(*egCompressShapesLUT);
128 
129  m_params_helper.setEgShapeIdType(conf.getParameter<std::string>("egShapeIdType"));
130  m_params_helper.setEgShapeIdVersion(conf.getParameter<unsigned>("egShapeIdVersion"));
131  edm::FileInPath egShapeIdLUTFile = conf.getParameter<edm::FileInPath>("egShapeIdLUTFile");
132  std::ifstream egShapeIdLUTStream(egShapeIdLUTFile.fullPath());
133  std::shared_ptr<LUT> egShapeIdLUT( new LUT(egShapeIdLUTStream) );
134  m_params_helper.setEgShapeIdLUT(*egShapeIdLUT);
135 
136  m_params_helper.setEgPUSType(conf.getParameter<std::string>("egPUSType"));
137 
138  m_params_helper.setEgIsolationType(conf.getParameter<std::string>("egIsolationType"));
139  edm::FileInPath egIsoLUTFile = conf.getParameter<edm::FileInPath>("egIsoLUTFile");
140  std::ifstream egIsoLUTStream(egIsoLUTFile.fullPath());
141  std::shared_ptr<LUT> egIsoLUT( new LUT(egIsoLUTStream) );
142  m_params_helper.setEgIsolationLUT(*egIsoLUT);
143 
144  //edm::FileInPath egIsoLUTFileBarrel = conf.getParameter<edm::FileInPath>("egIsoLUTFileBarrel");
145  //std::ifstream egIsoLUTBarrelStream(egIsoLUTFileBarrel.fullPath());
146  //std::shared_ptr<LUT> egIsoLUTBarrel( new LUT(egIsoLUTBarrelStream) );
147  //m_params_helper.setEgIsolationLUTBarrel(egIsoLUTBarrel);
148 
149  //edm::FileInPath egIsoLUTFileEndcaps = conf.getParameter<edm::FileInPath>("egIsoLUTFileEndcaps");
150  //std::ifstream egIsoLUTEndcapsStream(egIsoLUTFileEndcaps.fullPath());
151  //std::shared_ptr<LUT> egIsoLUTEndcaps( new LUT(egIsoLUTEndcapsStream) );
152  //m_params_helper.setEgIsolationLUTEndcaps(egIsoLUTEndcaps);
153 
154 
155  m_params_helper.setEgIsoAreaNrTowersEta(conf.getParameter<unsigned int>("egIsoAreaNrTowersEta"));
156  m_params_helper.setEgIsoAreaNrTowersPhi(conf.getParameter<unsigned int>("egIsoAreaNrTowersPhi"));
157  m_params_helper.setEgIsoVetoNrTowersPhi(conf.getParameter<unsigned int>("egIsoVetoNrTowersPhi"));
158  //m_params_helper.setEgIsoPUEstTowerGranularity(conf.getParameter<unsigned int>("egIsoPUEstTowerGranularity"));
159  //m_params_helper.setEgIsoMaxEtaAbsForTowerSum(conf.getParameter<unsigned int>("egIsoMaxEtaAbsForTowerSum"));
160  //m_params_helper.setEgIsoMaxEtaAbsForIsoSum(conf.getParameter<unsigned int>("egIsoMaxEtaAbsForIsoSum"));
161  m_params_helper.setEgPUSParams(conf.getParameter<std::vector<double>>("egPUSParams"));
162 
163  m_params_helper.setEgCalibrationType(conf.getParameter<std::string>("egCalibrationType"));
164  m_params_helper.setEgCalibrationVersion(conf.getParameter<unsigned>("egCalibrationVersion"));
165  edm::FileInPath egCalibrationLUTFile = conf.getParameter<edm::FileInPath>("egCalibrationLUTFile");
166  std::ifstream egCalibrationLUTStream(egCalibrationLUTFile.fullPath());
167  std::shared_ptr<LUT> egCalibrationLUT( new LUT(egCalibrationLUTStream) );
168  m_params_helper.setEgCalibrationLUT(*egCalibrationLUT);
169 
170  // tau
171  m_params_helper.setTauRegionMask(conf.getParameter<int>("tauRegionMask"));
172  m_params_helper.setTauLsb(conf.getParameter<double>("tauLsb"));
173  m_params_helper.setTauSeedThreshold(conf.getParameter<double>("tauSeedThreshold"));
174  m_params_helper.setTauNeighbourThreshold(conf.getParameter<double>("tauNeighbourThreshold"));
175  m_params_helper.setTauMaxPtTauVeto(conf.getParameter<double>("tauMaxPtTauVeto"));
176  m_params_helper.setTauMinPtJetIsolationB(conf.getParameter<double>("tauMinPtJetIsolationB"));
177  m_params_helper.setTauPUSType(conf.getParameter<std::string>("tauPUSType"));
178  m_params_helper.setTauMaxJetIsolationB(conf.getParameter<double>("tauMaxJetIsolationB"));
179  m_params_helper.setTauMaxJetIsolationA(conf.getParameter<double>("tauMaxJetIsolationA"));
180  m_params_helper.setTauIsoAreaNrTowersEta(conf.getParameter<unsigned int>("tauIsoAreaNrTowersEta"));
181  m_params_helper.setTauIsoAreaNrTowersPhi(conf.getParameter<unsigned int>("tauIsoAreaNrTowersPhi"));
182  m_params_helper.setTauIsoVetoNrTowersPhi(conf.getParameter<unsigned int>("tauIsoVetoNrTowersPhi"));
183 
184  edm::FileInPath tauIsoLUTFile = conf.getParameter<edm::FileInPath>("tauIsoLUTFile");
185  std::ifstream tauIsoLUTStream(tauIsoLUTFile.fullPath());
186  std::shared_ptr<LUT> tauIsoLUT( new LUT(tauIsoLUTStream) );
187  m_params_helper.setTauIsolationLUT(*tauIsoLUT);
188 
189  edm::FileInPath tauIsoLUTFile2 = conf.getParameter<edm::FileInPath>("tauIsoLUTFile2");
190  std::ifstream tauIsoLUTStream2(tauIsoLUTFile2.fullPath());
191  std::shared_ptr<LUT> tauIsoLUT2( new LUT(tauIsoLUTStream2) );
192  m_params_helper.setTauIsolationLUT2(*tauIsoLUT2);
193 
194  edm::FileInPath tauCalibrationLUTFile = conf.getParameter<edm::FileInPath>("tauCalibrationLUTFile");
195  std::ifstream tauCalibrationLUTStream(tauCalibrationLUTFile.fullPath());
196  std::shared_ptr<LUT> tauCalibrationLUT( new LUT(tauCalibrationLUTStream) );
197  m_params_helper.setTauCalibrationLUT(*tauCalibrationLUT);
198 
199  edm::FileInPath tauCompressLUTFile = conf.getParameter<edm::FileInPath>("tauCompressLUTFile");
200  std::ifstream tauCompressLUTStream(tauCompressLUTFile.fullPath());
201  std::shared_ptr<LUT> tauCompressLUT( new LUT(tauCompressLUTStream) );
202  m_params_helper.setTauCompressLUT(*tauCompressLUT);
203 
204  edm::FileInPath tauEtToHFRingEtLUTFile = conf.getParameter<edm::FileInPath>("tauEtToHFRingEtLUTFile");
205  std::ifstream tauEtToHFRingEtLUTStream(tauEtToHFRingEtLUTFile.fullPath());
206  std::shared_ptr<LUT> tauEtToHFRingEtLUT( new LUT(tauEtToHFRingEtLUTStream) );
207  m_params_helper.setTauEtToHFRingEtLUT(*tauEtToHFRingEtLUT);
208 
209  m_params_helper.setIsoTauEtaMin(conf.getParameter<int> ("isoTauEtaMin"));
210  m_params_helper.setIsoTauEtaMax(conf.getParameter<int> ("isoTauEtaMax"));
211 
212  m_params_helper.setTauPUSParams(conf.getParameter<std::vector<double>>("tauPUSParams"));
213 
214  // jets
215  m_params_helper.setJetLsb(conf.getParameter<double>("jetLsb"));
216  m_params_helper.setJetSeedThreshold(conf.getParameter<double>("jetSeedThreshold"));
217  m_params_helper.setJetNeighbourThreshold(conf.getParameter<double>("jetNeighbourThreshold"));
218  m_params_helper.setJetRegionMask(conf.getParameter<int>("jetRegionMask"));
219  m_params_helper.setJetPUSType(conf.getParameter<std::string>("jetPUSType"));
220  m_params_helper.setJetBypassPUS(conf.getParameter<unsigned>("jetBypassPUS"));
221  m_params_helper.setJetCalibrationType(conf.getParameter<std::string>("jetCalibrationType"));
222  m_params_helper.setJetCalibrationParams(conf.getParameter<std::vector<double> >("jetCalibrationParams"));
223  edm::FileInPath jetCalibrationLUTFile = conf.getParameter<edm::FileInPath>("jetCalibrationLUTFile");
224  std::ifstream jetCalibrationLUTStream(jetCalibrationLUTFile.fullPath());
225  std::shared_ptr<LUT> jetCalibrationLUT( new LUT(jetCalibrationLUTStream) );
226  m_params_helper.setJetCalibrationLUT(*jetCalibrationLUT);
227  edm::FileInPath jetCompressEtaLUTFile = conf.getParameter<edm::FileInPath>("jetCompressEtaLUTFile");
228  std::ifstream jetCompressEtaLUTStream(jetCompressEtaLUTFile.fullPath());
229  std::shared_ptr<LUT> jetCompressEtaLUT( new LUT(jetCompressEtaLUTStream) );
230  m_params_helper.setJetCompressEtaLUT(*jetCompressEtaLUT);
231  edm::FileInPath jetCompressPtLUTFile = conf.getParameter<edm::FileInPath>("jetCompressPtLUTFile");
232  std::ifstream jetCompressPtLUTStream(jetCompressPtLUTFile.fullPath());
233  std::shared_ptr<LUT> jetCompressPtLUT( new LUT(jetCompressPtLUTStream) );
234  m_params_helper.setJetCompressPtLUT(*jetCompressPtLUT);
235 
236  // sums
237  m_params_helper.setEtSumLsb(conf.getParameter<double>("etSumLsb"));
238 
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");
242 
243  if ((etSumEtaMin.size() == etSumEtaMax.size()) && (etSumEtaMin.size() == etSumEtThreshold.size())) {
244  for (unsigned i=0; i<etSumEtaMin.size(); ++i) {
245  m_params_helper.setEtSumEtaMin(i, etSumEtaMin.at(i));
246  m_params_helper.setEtSumEtaMax(i, etSumEtaMax.at(i));
247  m_params_helper.setEtSumEtThreshold(i, etSumEtThreshold.at(i));
248  }
249  }
250  else {
251  edm::LogError("l1t|calo") << "Inconsistent number of EtSum parameters" << std::endl;
252  }
253 
254  edm::FileInPath etSumXPUSLUTFile = conf.getParameter<edm::FileInPath>("etSumXPUSLUTFile");
255  std::ifstream etSumXPUSLUTStream(etSumXPUSLUTFile.fullPath());
256  std::shared_ptr<LUT> etSumXPUSLUT( new LUT(etSumXPUSLUTStream) );
257  m_params_helper.setEtSumXPUSLUT(*etSumXPUSLUT);
258 
259  edm::FileInPath etSumYPUSLUTFile = conf.getParameter<edm::FileInPath>("etSumYPUSLUTFile");
260  std::ifstream etSumYPUSLUTStream(etSumYPUSLUTFile.fullPath());
261  std::shared_ptr<LUT> etSumYPUSLUT( new LUT(etSumYPUSLUTStream) );
262  m_params_helper.setEtSumYPUSLUT(*etSumYPUSLUT);
263 
264  edm::FileInPath etSumEttPUSLUTFile = conf.getParameter<edm::FileInPath>("etSumEttPUSLUTFile");
265  std::ifstream etSumEttPUSLUTStream(etSumEttPUSLUTFile.fullPath());
266  std::shared_ptr<LUT> etSumEttPUSLUT( new LUT(etSumEttPUSLUTStream) );
267  m_params_helper.setEtSumEttPUSLUT(*etSumEttPUSLUT);
268 
269  edm::FileInPath etSumEcalSumPUSLUTFile = conf.getParameter<edm::FileInPath>("etSumEcalSumPUSLUTFile");
270  std::ifstream etSumEcalSumPUSLUTStream(etSumEcalSumPUSLUTFile.fullPath());
271  std::shared_ptr<LUT> etSumEcalSumPUSLUT( new LUT(etSumEcalSumPUSLUTStream) );
272  m_params_helper.setEtSumEcalSumPUSLUT(*etSumEcalSumPUSLUT);
273 
274  // HI centrality trigger
275  edm::FileInPath centralityLUTFile = conf.getParameter<edm::FileInPath>("centralityLUTFile");
276  std::ifstream centralityLUTStream(centralityLUTFile.fullPath());
277  std::shared_ptr<LUT> centralityLUT( new LUT(centralityLUTStream) );
278  m_params_helper.setCentralityLUT(*centralityLUT);
279  m_params_helper.setCentralityRegionMask(conf.getParameter<int>("centralityRegionMask"));
280  std::vector<int> minbiasThresholds = conf.getParameter<std::vector<int> >("minimumBiasThresholds");
281  if(minbiasThresholds.size() == 4) {
282  m_params_helper.setMinimumBiasThresholds(minbiasThresholds);
283  } else {
284  edm::LogError("l1t|calo") << "Incorrect number of minimum bias thresholds set.";
285  }
286 
287  // HI Q2 trigger
288  edm::FileInPath q2LUTFile = conf.getParameter<edm::FileInPath>("q2LUTFile");
289  std::ifstream q2LUTStream(q2LUTFile.fullPath());
290  std::shared_ptr<LUT> q2LUT( new LUT(q2LUTStream) );
291  m_params_helper.setQ2LUT(*q2LUT);
292 
293  // Layer 1 LUT specification
294  m_params_helper.setLayer1ECalScaleFactors(conf.getParameter<std::vector<double>>("layer1ECalScaleFactors"));
295  m_params_helper.setLayer1HCalScaleFactors(conf.getParameter<std::vector<double>>("layer1HCalScaleFactors"));
296  m_params_helper.setLayer1HFScaleFactors (conf.getParameter<std::vector<double>>("layer1HFScaleFactors"));
297 
298  m_params_helper.setLayer1ECalScaleETBins(conf.getParameter<std::vector<int>>("layer1ECalScaleETBins"));
299  m_params_helper.setLayer1HCalScaleETBins(conf.getParameter<std::vector<int>>("layer1HCalScaleETBins"));
300  m_params_helper.setLayer1HFScaleETBins (conf.getParameter<std::vector<int>>("layer1HFScaleETBins"));
301 
302  m_params = (CaloParams)m_params_helper;
303 }
void setEtSumEtaMax(unsigned isum, int eta)
T getParameter(std::string const &) const
int i
Definition: DBlmapReader.cc:9
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)
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)
void setJetCompressEtaLUT(const l1t::LUT &lut)
void setTauIsoAreaNrTowersEta(unsigned iTauIsoAreaNrTowersEta)
void setEgCalibrationLUT(const l1t::LUT &lut)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
void setEgShapeIdLUT(const l1t::LUT &lut)
void setEtSumEttPUSLUT(const l1t::LUT &lut)
void setJetCompressPtLUT(const l1t::LUT &lut)
void setEgHOverEcutBarrel(int cut)
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 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 > &params)
void setQ2LUT(const l1t::LUT &lut)
void setLayer1HCalScaleFactors(const std::vector< double > params)
void setEgMaxHOverELUT(const l1t::LUT &lut)
void setLayer1HFScaleFactors(const std::vector< double > params)
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 > &params)
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
Definition: FileInPath.cc:184
std::vector< unsigned short int > LUT
Definition: DTTracoLUTs.h:32
void setEgShapeIdType(std::string type)
void setIsoTauEtaMin(int value)
void setTowerLsbSum(double lsb)
void setEgPUSParams(const std::vector< double > &params)
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)
L1TCaloParamsESProducer::~L1TCaloParamsESProducer ( )

Definition at line 306 of file L1TCaloParamsESProducer.cc.

307 {
308 
309  // do anything here that needs to be done at desctruction time
310  // (e.g. close files, deallocate resources etc.)
311 
312 }

Member Function Documentation

L1TCaloParamsESProducer::ReturnType L1TCaloParamsESProducer::produce ( const L1TCaloParamsRcd iRecord)

Definition at line 321 of file L1TCaloParamsESProducer.cc.

322 {
323  using namespace edm::es;
324  boost::shared_ptr<CaloParams> pCaloParams ;
325 
326  pCaloParams = boost::shared_ptr< CaloParams >(new CaloParams(m_params));
327  return pCaloParams;
328 }

Member Data Documentation

std::string L1TCaloParamsESProducer::m_label
private

Definition at line 56 of file L1TCaloParamsESProducer.cc.

CaloParams L1TCaloParamsESProducer::m_params
private

Definition at line 55 of file L1TCaloParamsESProducer.cc.