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
L1TMuonGlobalParamsESProducer Class Reference
Inheritance diagram for L1TMuonGlobalParamsESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Types

typedef boost::shared_ptr
< L1TMuonGlobalParams
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

 L1TMuonGlobalParamsESProducer (const edm::ParameterSet &)
 
ReturnType produce (const L1TMuonGlobalParamsRcd &)
 
 ~L1TMuonGlobalParamsESProducer ()
 
- 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

L1TMuonGlobalParams 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: [one line class summary]

Implementation: [Notes on implementation]

Definition at line 39 of file L1TMuonGlobalParamsESProducer.cc.

Member Typedef Documentation

Definition at line 44 of file L1TMuonGlobalParamsESProducer.cc.

Constructor & Destructor Documentation

L1TMuonGlobalParamsESProducer::L1TMuonGlobalParamsESProducer ( const edm::ParameterSet iConfig)

Definition at line 62 of file L1TMuonGlobalParamsESProducer.cc.

References cast_to_L1TMuonGlobalParams(), l1t::MicroGMTRankPtQualLUTFactory::create(), l1t::MicroGMTMatchQualLUTFactory::create(), l1t::MicroGMTExtrapolationLUTFactory::create(), l1t::MicroGMTCaloIndexSelectionLUTFactory::create(), l1t::MicroGMTAbsoluteIsolationCheckLUTFactory::create(), l1t::MicroGMTRelativeIsolationCheckLUTFactory::create(), l1t::emtf_emtf_neg, l1t::emtf_emtf_pos, l1t::MicroGMTConfiguration::ETA, l1t::MicroGMTConfiguration::ETA_OUT, stage2BMTFBufferRaw_cfi::fwVersion, edm::ParameterSet::getParameter(), i, m_params, l1t::omtf_bmtf_neg, l1t::omtf_bmtf_pos, l1t::omtf_emtf_neg, l1t::omtf_emtf_pos, l1t::omtf_omtf_neg, l1t::omtf_omtf_pos, l1t::MicroGMTConfiguration::PHI, l1t::MicroGMTConfiguration::PHI_OUT, L1TMuonGlobalParamsHelper::setAbsIsoCheckMemLUT(), L1TMuonGlobalParamsHelper::setAbsIsoCheckMemLUTPath(), L1TMuonGlobalParamsHelper::setBEtaExtrapolationLUT(), L1TMuonGlobalParamsHelper::setBEtaExtrapolationLUTPath(), L1TMuonGlobalParamsHelper::setBmtfInputsToDisable(), L1TMuonGlobalParamsHelper::setBONegMatchQualLUT(), L1TMuonGlobalParamsHelper::setBONegMatchQualLUTMaxDR(), L1TMuonGlobalParamsHelper::setBONegMatchQualLUTPath(), L1TMuonGlobalParamsHelper::setBOPosMatchQualLUT(), L1TMuonGlobalParamsHelper::setBOPosMatchQualLUTMaxDR(), L1TMuonGlobalParamsHelper::setBOPosMatchQualLUTPath(), L1TMuonGlobalParamsHelper::setBPhiExtrapolationLUT(), L1TMuonGlobalParamsHelper::setBPhiExtrapolationLUTPath(), L1TMuonGlobalParamsHelper::setCaloInputsToDisable(), L1TMuonGlobalParamsHelper::setEmtfnInputsToDisable(), L1TMuonGlobalParamsHelper::setEmtfpInputsToDisable(), L1TMuonGlobalParamsHelper::setFEtaExtrapolationLUT(), L1TMuonGlobalParamsHelper::setFEtaExtrapolationLUTPath(), L1TMuonGlobalParamsHelper::setFONegMatchQualLUT(), L1TMuonGlobalParamsHelper::setFONegMatchQualLUTMaxDR(), L1TMuonGlobalParamsHelper::setFONegMatchQualLUTPath(), L1TMuonGlobalParamsHelper::setFOPosMatchQualLUT(), L1TMuonGlobalParamsHelper::setFOPosMatchQualLUTMaxDR(), L1TMuonGlobalParamsHelper::setFOPosMatchQualLUTPath(), L1TMuonGlobalParamsHelper::setFPhiExtrapolationLUT(), L1TMuonGlobalParamsHelper::setFPhiExtrapolationLUTPath(), L1TMuonGlobalParamsHelper::setFwdNegSingleMatchQualLUT(), L1TMuonGlobalParamsHelper::setFwdNegSingleMatchQualLUTMaxDR(), L1TMuonGlobalParamsHelper::setFwdNegSingleMatchQualLUTPath(), L1TMuonGlobalParamsHelper::setFwdPosSingleMatchQualLUT(), L1TMuonGlobalParamsHelper::setFwdPosSingleMatchQualLUTMaxDR(), L1TMuonGlobalParamsHelper::setFwdPosSingleMatchQualLUTPath(), L1TMuonGlobalParamsHelper::setFwVersion(), L1TMuonGlobalParamsHelper::setIdxSelMemEtaLUT(), L1TMuonGlobalParamsHelper::setIdxSelMemEtaLUTPath(), L1TMuonGlobalParamsHelper::setIdxSelMemPhiLUT(), L1TMuonGlobalParamsHelper::setIdxSelMemPhiLUTPath(), L1TMuonGlobalParamsHelper::setMaskedBmtfInputs(), L1TMuonGlobalParamsHelper::setMaskedCaloInputs(), L1TMuonGlobalParamsHelper::setMaskedEmtfnInputs(), L1TMuonGlobalParamsHelper::setMaskedEmtfpInputs(), L1TMuonGlobalParamsHelper::setMaskedOmtfnInputs(), L1TMuonGlobalParamsHelper::setMaskedOmtfpInputs(), L1TMuonGlobalParamsHelper::setOEtaExtrapolationLUT(), L1TMuonGlobalParamsHelper::setOEtaExtrapolationLUTPath(), L1TMuonGlobalParamsHelper::setOmtfnInputsToDisable(), L1TMuonGlobalParamsHelper::setOmtfpInputsToDisable(), L1TMuonGlobalParamsHelper::setOPhiExtrapolationLUT(), L1TMuonGlobalParamsHelper::setOPhiExtrapolationLUTPath(), L1TMuonGlobalParamsHelper::setOvlNegSingleMatchQualLUT(), L1TMuonGlobalParamsHelper::setOvlNegSingleMatchQualLUTMaxDR(), L1TMuonGlobalParamsHelper::setOvlNegSingleMatchQualLUTPath(), L1TMuonGlobalParamsHelper::setOvlPosSingleMatchQualLUT(), L1TMuonGlobalParamsHelper::setOvlPosSingleMatchQualLUTMaxDR(), L1TMuonGlobalParamsHelper::setOvlPosSingleMatchQualLUTPath(), L1TMuonGlobalParamsHelper::setRelIsoCheckMemLUT(), L1TMuonGlobalParamsHelper::setRelIsoCheckMemLUTPath(), L1TMuonGlobalParamsHelper::setSortRankLUT(), L1TMuonGlobalParamsHelper::setSortRankLUTFactors(), L1TMuonGlobalParamsHelper::setSortRankLUTPath(), edm::ESProducer::setWhatProduced(), and AlCaHLTBitMon_QueryRunRegistry::string.

63 {
64  //the following line is needed to tell the framework what
65  // data is being produced
66  setWhatProduced(this);
67 
68  L1TMuonGlobalParamsHelper m_params_helper;
69 
70  // Firmware version
71  unsigned fwVersion = iConfig.getParameter<unsigned>("fwVersion");
72  m_params_helper.setFwVersion(fwVersion);
73 
74  // uGMT disabled inputs
75  bool disableCaloInputs = iConfig.getParameter<bool>("caloInputsDisable");
76  if (disableCaloInputs) {
77  m_params_helper.setCaloInputsToDisable(std::bitset<28>(0xFFFFFFF));
78  } else {
79  m_params_helper.setCaloInputsToDisable(std::bitset<28>());
80  }
81 
82  std::vector<unsigned> bmtfInputsToDisable = iConfig.getParameter<std::vector<unsigned> >("bmtfInputsToDisable");
83  std::bitset<12> bmtfDisables;
84  for (size_t i = 0; i < bmtfInputsToDisable.size(); ++i) {
85  bmtfDisables.set(i, bmtfInputsToDisable[i] > 0);
86  }
87  m_params_helper.setBmtfInputsToDisable(bmtfDisables);
88 
89  std::vector<unsigned> omtfInputsToDisable = iConfig.getParameter<std::vector<unsigned> >("omtfInputsToDisable");
90  std::bitset<6> omtfpDisables;
91  std::bitset<6> omtfnDisables;
92  for (size_t i = 0; i < omtfInputsToDisable.size(); ++i) {
93  if (i < 6) {
94  omtfpDisables.set(i, omtfInputsToDisable[i] > 0);
95  } else {
96  omtfnDisables.set(i-6, omtfInputsToDisable[i] > 0);
97  }
98  }
99  m_params_helper.setOmtfpInputsToDisable(omtfpDisables);
100  m_params_helper.setOmtfnInputsToDisable(omtfnDisables);
101 
102  std::vector<unsigned> emtfInputsToDisable = iConfig.getParameter<std::vector<unsigned> >("emtfInputsToDisable");
103  std::bitset<6> emtfpDisables;
104  std::bitset<6> emtfnDisables;
105  for (size_t i = 0; i < emtfInputsToDisable.size(); ++i) {
106  if (i < 6) {
107  emtfpDisables.set(i, emtfInputsToDisable[i] > 0);
108  } else {
109  emtfnDisables.set(i-6, emtfInputsToDisable[i] > 0);
110  }
111  }
112  m_params_helper.setEmtfpInputsToDisable(emtfpDisables);
113  m_params_helper.setEmtfnInputsToDisable(emtfnDisables);
114 
115  // masked inputs
116  bool caloInputsMasked = iConfig.getParameter<bool>("caloInputsMasked");
117  if (caloInputsMasked) {
118  m_params_helper.setMaskedCaloInputs(std::bitset<28>(0xFFFFFFF));
119  } else {
120  m_params_helper.setMaskedCaloInputs(std::bitset<28>());
121  }
122 
123  std::vector<unsigned> maskedBmtfInputs = iConfig.getParameter<std::vector<unsigned> >("maskedBmtfInputs");
124  std::bitset<12> bmtfMasked;
125  for (size_t i = 0; i < maskedBmtfInputs.size(); ++i) {
126  bmtfMasked.set(i, maskedBmtfInputs[i] > 0);
127  }
128  m_params_helper.setMaskedBmtfInputs(bmtfMasked);
129 
130  std::vector<unsigned> maskedOmtfInputs = iConfig.getParameter<std::vector<unsigned> >("maskedOmtfInputs");
131  std::bitset<6> omtfpMasked;
132  std::bitset<6> omtfnMasked;
133  for (size_t i = 0; i < maskedOmtfInputs.size(); ++i) {
134  if (i < 6) {
135  omtfpMasked.set(i, maskedOmtfInputs[i] > 0);
136  } else {
137  omtfnMasked.set(i-6, maskedOmtfInputs[i] > 0);
138  }
139  }
140  m_params_helper.setMaskedOmtfpInputs(omtfpMasked);
141  m_params_helper.setMaskedOmtfnInputs(omtfnMasked);
142 
143  std::vector<unsigned> maskedEmtfInputs = iConfig.getParameter<std::vector<unsigned> >("maskedEmtfInputs");
144  std::bitset<6> emtfpMasked;
145  std::bitset<6> emtfnMasked;
146  for (size_t i = 0; i < maskedEmtfInputs.size(); ++i) {
147  if (i < 6) {
148  emtfpMasked.set(i, maskedEmtfInputs[i] > 0);
149  } else {
150  emtfnMasked.set(i-6, maskedEmtfInputs[i] > 0);
151  }
152  }
153  m_params_helper.setMaskedEmtfpInputs(emtfpMasked);
154  m_params_helper.setMaskedEmtfnInputs(emtfnMasked);
155 
156  // LUTs
157  m_params_helper.setFwdPosSingleMatchQualLUTMaxDR(iConfig.getParameter<double>("FwdPosSingleMatchQualLUTMaxDR"),
158  iConfig.getParameter<double>("FwdPosSingleMatchQualLUTfEta"),
159  iConfig.getParameter<double>("FwdPosSingleMatchQualLUTfPhi"));
160  m_params_helper.setFwdNegSingleMatchQualLUTMaxDR(iConfig.getParameter<double>("FwdNegSingleMatchQualLUTMaxDR"),
161  iConfig.getParameter<double>("FwdNegSingleMatchQualLUTfEta"),
162  iConfig.getParameter<double>("FwdNegSingleMatchQualLUTfPhi"));
163  m_params_helper.setOvlPosSingleMatchQualLUTMaxDR(iConfig.getParameter<double>("OvlPosSingleMatchQualLUTMaxDR"),
164  iConfig.getParameter<double>("OvlPosSingleMatchQualLUTfEta"),
165  iConfig.getParameter<double>("OvlPosSingleMatchQualLUTfEtaCoarse"),
166  iConfig.getParameter<double>("OvlPosSingleMatchQualLUTfPhi"));
167  m_params_helper.setOvlNegSingleMatchQualLUTMaxDR(iConfig.getParameter<double>("OvlNegSingleMatchQualLUTMaxDR"),
168  iConfig.getParameter<double>("OvlNegSingleMatchQualLUTfEta"),
169  iConfig.getParameter<double>("OvlNegSingleMatchQualLUTfEtaCoarse"),
170  iConfig.getParameter<double>("OvlNegSingleMatchQualLUTfPhi"));
171  m_params_helper.setBOPosMatchQualLUTMaxDR(iConfig.getParameter<double>("BOPosMatchQualLUTMaxDR"),
172  iConfig.getParameter<double>("BOPosMatchQualLUTfEta"),
173  iConfig.getParameter<double>("BOPosMatchQualLUTfEtaCoarse"),
174  iConfig.getParameter<double>("BOPosMatchQualLUTfPhi"));
175  m_params_helper.setBONegMatchQualLUTMaxDR(iConfig.getParameter<double>("BONegMatchQualLUTMaxDR"),
176  iConfig.getParameter<double>("BONegMatchQualLUTfEta"),
177  iConfig.getParameter<double>("BONegMatchQualLUTfEtaCoarse"),
178  iConfig.getParameter<double>("BONegMatchQualLUTfPhi"));
179  m_params_helper.setFOPosMatchQualLUTMaxDR(iConfig.getParameter<double>("FOPosMatchQualLUTMaxDR"),
180  iConfig.getParameter<double>("FOPosMatchQualLUTfEta"),
181  iConfig.getParameter<double>("FOPosMatchQualLUTfEtaCoarse"),
182  iConfig.getParameter<double>("FOPosMatchQualLUTfPhi"));
183  m_params_helper.setFONegMatchQualLUTMaxDR(iConfig.getParameter<double>("FONegMatchQualLUTMaxDR"),
184  iConfig.getParameter<double>("FONegMatchQualLUTfEta"),
185  iConfig.getParameter<double>("FONegMatchQualLUTfEtaCoarse"),
186  iConfig.getParameter<double>("FONegMatchQualLUTfPhi"));
187 
188  unsigned sortRankLUTPtFactor = iConfig.getParameter<unsigned>("SortRankLUTPtFactor");
189  unsigned sortRankLUTQualFactor = iConfig.getParameter<unsigned>("SortRankLUTQualFactor");
190  m_params_helper.setSortRankLUTFactors(sortRankLUTPtFactor, sortRankLUTQualFactor);
191 
192  auto absIsoCheckMemLUT = l1t::MicroGMTAbsoluteIsolationCheckLUTFactory::create (iConfig.getParameter<std::string>("AbsIsoCheckMemLUTPath"), fwVersion);
193  auto relIsoCheckMemLUT = l1t::MicroGMTRelativeIsolationCheckLUTFactory::create (iConfig.getParameter<std::string>("RelIsoCheckMemLUTPath"), fwVersion);
194  auto idxSelMemPhiLUT = l1t::MicroGMTCaloIndexSelectionLUTFactory::create (iConfig.getParameter<std::string>("IdxSelMemPhiLUTPath"), l1t::MicroGMTConfiguration::PHI, fwVersion);
195  auto idxSelMemEtaLUT = l1t::MicroGMTCaloIndexSelectionLUTFactory::create (iConfig.getParameter<std::string>("IdxSelMemEtaLUTPath"), l1t::MicroGMTConfiguration::ETA, fwVersion);
196  auto fwdPosSingleMatchQualLUT = l1t::MicroGMTMatchQualLUTFactory::create (iConfig.getParameter<std::string>("FwdPosSingleMatchQualLUTPath"),
197  iConfig.getParameter<double>("FwdPosSingleMatchQualLUTMaxDR"),
198  iConfig.getParameter<double>("FwdPosSingleMatchQualLUTfEta"),
199  iConfig.getParameter<double>("FwdPosSingleMatchQualLUTfEta"), // set the coarse eta factor = fine eta factor
200  iConfig.getParameter<double>("FwdPosSingleMatchQualLUTfPhi"),
201  l1t::cancel_t::emtf_emtf_pos, fwVersion);
202  auto fwdNegSingleMatchQualLUT = l1t::MicroGMTMatchQualLUTFactory::create (iConfig.getParameter<std::string>("FwdNegSingleMatchQualLUTPath"),
203  iConfig.getParameter<double>("FwdNegSingleMatchQualLUTMaxDR"),
204  iConfig.getParameter<double>("FwdNegSingleMatchQualLUTfEta"),
205  iConfig.getParameter<double>("FwdNegSingleMatchQualLUTfEta"), // set the coarse eta factor = fine eta factor
206  iConfig.getParameter<double>("FwdNegSingleMatchQualLUTfPhi"),
207  l1t::cancel_t::emtf_emtf_neg, fwVersion);
208  auto ovlPosSingleMatchQualLUT = l1t::MicroGMTMatchQualLUTFactory::create (iConfig.getParameter<std::string>("OvlPosSingleMatchQualLUTPath"),
209  iConfig.getParameter<double>("OvlPosSingleMatchQualLUTMaxDR"),
210  iConfig.getParameter<double>("OvlPosSingleMatchQualLUTfEta"),
211  iConfig.getParameter<double>("OvlPosSingleMatchQualLUTfEtaCoarse"),
212  iConfig.getParameter<double>("OvlPosSingleMatchQualLUTfPhi"),
213  l1t::cancel_t::omtf_omtf_pos, fwVersion);
214  auto ovlNegSingleMatchQualLUT = l1t::MicroGMTMatchQualLUTFactory::create (iConfig.getParameter<std::string>("OvlNegSingleMatchQualLUTPath"),
215  iConfig.getParameter<double>("OvlNegSingleMatchQualLUTMaxDR"),
216  iConfig.getParameter<double>("OvlNegSingleMatchQualLUTfEta"),
217  iConfig.getParameter<double>("OvlNegSingleMatchQualLUTfEtaCoarse"),
218  iConfig.getParameter<double>("OvlNegSingleMatchQualLUTfPhi"),
219  l1t::cancel_t::omtf_omtf_neg, fwVersion);
220  auto bOPosMatchQualLUT = l1t::MicroGMTMatchQualLUTFactory::create (iConfig.getParameter<std::string>("BOPosMatchQualLUTPath"),
221  iConfig.getParameter<double>("BOPosMatchQualLUTMaxDR"),
222  iConfig.getParameter<double>("BOPosMatchQualLUTfEta"),
223  iConfig.getParameter<double>("BOPosMatchQualLUTfEtaCoarse"),
224  iConfig.getParameter<double>("BOPosMatchQualLUTfPhi"),
225  l1t::cancel_t::omtf_bmtf_pos, fwVersion);
226  auto bONegMatchQualLUT = l1t::MicroGMTMatchQualLUTFactory::create (iConfig.getParameter<std::string>("BONegMatchQualLUTPath"),
227  iConfig.getParameter<double>("BONegMatchQualLUTMaxDR"),
228  iConfig.getParameter<double>("BONegMatchQualLUTfEta"),
229  iConfig.getParameter<double>("BONegMatchQualLUTfEtaCoarse"),
230  iConfig.getParameter<double>("BONegMatchQualLUTfPhi"),
231  l1t::cancel_t::omtf_bmtf_neg, fwVersion);
232  auto fOPosMatchQualLUT = l1t::MicroGMTMatchQualLUTFactory::create (iConfig.getParameter<std::string>("FOPosMatchQualLUTPath"),
233  iConfig.getParameter<double>("FOPosMatchQualLUTMaxDR"),
234  iConfig.getParameter<double>("FOPosMatchQualLUTfEta"),
235  iConfig.getParameter<double>("FOPosMatchQualLUTfEtaCoarse"),
236  iConfig.getParameter<double>("FOPosMatchQualLUTfPhi"),
237  l1t::cancel_t::omtf_emtf_pos, fwVersion);
238  auto fONegMatchQualLUT = l1t::MicroGMTMatchQualLUTFactory::create (iConfig.getParameter<std::string>("FONegMatchQualLUTPath"),
239  iConfig.getParameter<double>("FONegMatchQualLUTMaxDR"),
240  iConfig.getParameter<double>("FONegMatchQualLUTfEta"),
241  iConfig.getParameter<double>("FONegMatchQualLUTfEtaCoarse"),
242  iConfig.getParameter<double>("FONegMatchQualLUTfPhi"),
243  l1t::cancel_t::omtf_emtf_neg, fwVersion);
244  auto bPhiExtrapolationLUT = l1t::MicroGMTExtrapolationLUTFactory::create (iConfig.getParameter<std::string>("BPhiExtrapolationLUTPath"), l1t::MicroGMTConfiguration::PHI_OUT, fwVersion);
245  auto oPhiExtrapolationLUT = l1t::MicroGMTExtrapolationLUTFactory::create (iConfig.getParameter<std::string>("OPhiExtrapolationLUTPath"), l1t::MicroGMTConfiguration::PHI_OUT, fwVersion);
246  auto fPhiExtrapolationLUT = l1t::MicroGMTExtrapolationLUTFactory::create (iConfig.getParameter<std::string>("FPhiExtrapolationLUTPath"), l1t::MicroGMTConfiguration::PHI_OUT, fwVersion);
247  auto bEtaExtrapolationLUT = l1t::MicroGMTExtrapolationLUTFactory::create (iConfig.getParameter<std::string>("BEtaExtrapolationLUTPath"), l1t::MicroGMTConfiguration::ETA_OUT, fwVersion);
248  auto oEtaExtrapolationLUT = l1t::MicroGMTExtrapolationLUTFactory::create (iConfig.getParameter<std::string>("OEtaExtrapolationLUTPath"), l1t::MicroGMTConfiguration::ETA_OUT, fwVersion);
249  auto fEtaExtrapolationLUT = l1t::MicroGMTExtrapolationLUTFactory::create (iConfig.getParameter<std::string>("FEtaExtrapolationLUTPath"), l1t::MicroGMTConfiguration::ETA_OUT, fwVersion);
250  auto rankPtQualityLUT = l1t::MicroGMTRankPtQualLUTFactory::create (iConfig.getParameter<std::string>("SortRankLUTPath"), fwVersion, sortRankLUTPtFactor, sortRankLUTQualFactor);
251  m_params_helper.setAbsIsoCheckMemLUT(*absIsoCheckMemLUT);
252  m_params_helper.setRelIsoCheckMemLUT(*relIsoCheckMemLUT);
253  m_params_helper.setIdxSelMemPhiLUT(*idxSelMemPhiLUT);
254  m_params_helper.setIdxSelMemEtaLUT(*idxSelMemEtaLUT);
255  m_params_helper.setFwdPosSingleMatchQualLUT(*fwdPosSingleMatchQualLUT);
256  m_params_helper.setFwdNegSingleMatchQualLUT(*fwdNegSingleMatchQualLUT);
257  m_params_helper.setOvlPosSingleMatchQualLUT(*ovlPosSingleMatchQualLUT);
258  m_params_helper.setOvlNegSingleMatchQualLUT(*ovlNegSingleMatchQualLUT);
259  m_params_helper.setBOPosMatchQualLUT(*bOPosMatchQualLUT);
260  m_params_helper.setBONegMatchQualLUT(*bONegMatchQualLUT);
261  m_params_helper.setFOPosMatchQualLUT(*fOPosMatchQualLUT);
262  m_params_helper.setFONegMatchQualLUT(*fONegMatchQualLUT);
263  m_params_helper.setBPhiExtrapolationLUT(*bPhiExtrapolationLUT);
264  m_params_helper.setOPhiExtrapolationLUT(*oPhiExtrapolationLUT);
265  m_params_helper.setFPhiExtrapolationLUT(*fPhiExtrapolationLUT);
266  m_params_helper.setBEtaExtrapolationLUT(*bEtaExtrapolationLUT);
267  m_params_helper.setOEtaExtrapolationLUT(*oEtaExtrapolationLUT);
268  m_params_helper.setFEtaExtrapolationLUT(*fEtaExtrapolationLUT);
269  m_params_helper.setSortRankLUT(*rankPtQualityLUT);
270 
271  // LUT paths
272  m_params_helper.setAbsIsoCheckMemLUTPath (iConfig.getParameter<std::string>("AbsIsoCheckMemLUTPath"));
273  m_params_helper.setRelIsoCheckMemLUTPath (iConfig.getParameter<std::string>("RelIsoCheckMemLUTPath"));
274  m_params_helper.setIdxSelMemPhiLUTPath (iConfig.getParameter<std::string>("IdxSelMemPhiLUTPath"));
275  m_params_helper.setIdxSelMemEtaLUTPath (iConfig.getParameter<std::string>("IdxSelMemEtaLUTPath"));
276  m_params_helper.setFwdPosSingleMatchQualLUTPath (iConfig.getParameter<std::string>("FwdPosSingleMatchQualLUTPath"));
277  m_params_helper.setFwdNegSingleMatchQualLUTPath (iConfig.getParameter<std::string>("FwdNegSingleMatchQualLUTPath"));
278  m_params_helper.setOvlPosSingleMatchQualLUTPath (iConfig.getParameter<std::string>("OvlPosSingleMatchQualLUTPath"));
279  m_params_helper.setOvlNegSingleMatchQualLUTPath (iConfig.getParameter<std::string>("OvlNegSingleMatchQualLUTPath"));
280  m_params_helper.setBOPosMatchQualLUTPath (iConfig.getParameter<std::string>("BOPosMatchQualLUTPath"));
281  m_params_helper.setBONegMatchQualLUTPath (iConfig.getParameter<std::string>("BONegMatchQualLUTPath"));
282  m_params_helper.setFOPosMatchQualLUTPath (iConfig.getParameter<std::string>("FOPosMatchQualLUTPath"));
283  m_params_helper.setFONegMatchQualLUTPath (iConfig.getParameter<std::string>("FONegMatchQualLUTPath"));
284  m_params_helper.setBPhiExtrapolationLUTPath (iConfig.getParameter<std::string>("BPhiExtrapolationLUTPath"));
285  m_params_helper.setOPhiExtrapolationLUTPath (iConfig.getParameter<std::string>("OPhiExtrapolationLUTPath"));
286  m_params_helper.setFPhiExtrapolationLUTPath (iConfig.getParameter<std::string>("FPhiExtrapolationLUTPath"));
287  m_params_helper.setBEtaExtrapolationLUTPath (iConfig.getParameter<std::string>("BEtaExtrapolationLUTPath"));
288  m_params_helper.setOEtaExtrapolationLUTPath (iConfig.getParameter<std::string>("OEtaExtrapolationLUTPath"));
289  m_params_helper.setFEtaExtrapolationLUTPath (iConfig.getParameter<std::string>("FEtaExtrapolationLUTPath"));
290  m_params_helper.setSortRankLUTPath (iConfig.getParameter<std::string>("SortRankLUTPath"));
291 
292  // temp hack to avoid ALCA/DB signoff:
294 }
const L1TMuonGlobalParams & cast_to_L1TMuonGlobalParams(const L1TMuonGlobalParams_PUBLIC &x)
T getParameter(std::string const &) const
void setFOPosMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
int i
Definition: DBlmapReader.cc:9
void setMaskedCaloInputs(const std::bitset< 28 > &masked)
void setBOPosMatchQualLUTPath(std::string path)
void setIdxSelMemEtaLUT(const l1t::LUT &lut)
void setOPhiExtrapolationLUT(const l1t::LUT &lut)
void setBEtaExtrapolationLUT(const l1t::LUT &lut)
void setFwdPosSingleMatchQualLUT(const l1t::LUT &lut)
void setBmtfInputsToDisable(const std::bitset< 12 > &disables)
void setBONegMatchQualLUTPath(std::string path)
void setFEtaExtrapolationLUT(const l1t::LUT &lut)
void setIdxSelMemEtaLUTPath(std::string path)
void setFPhiExtrapolationLUT(const l1t::LUT &lut)
void setFONegMatchQualLUTPath(std::string path)
void setOmtfpInputsToDisable(const std::bitset< 6 > &disables)
void setOEtaExtrapolationLUT(const l1t::LUT &lut)
void setSortRankLUTFactors(unsigned ptFactor, unsigned qualFactor)
static ReturnType create(const std::string &filename, const int fwVersion)
void setAbsIsoCheckMemLUTPath(std::string path)
void setIdxSelMemPhiLUT(const l1t::LUT &lut)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
static ReturnType create(const std::string &filename, const int type, const int fwVersion)
void setBPhiExtrapolationLUT(const l1t::LUT &lut)
void setOPhiExtrapolationLUTPath(std::string path)
void setFwdPosSingleMatchQualLUTPath(std::string path)
static ReturnType create(const std::string &filename, const int fwVersion, const unsigned ptFactor, const unsigned qualFactor)
void setFOPosMatchQualLUT(const l1t::LUT &lut)
void setBONegMatchQualLUT(const l1t::LUT &lut)
void setFwdPosSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fPhi)
static ReturnType create(const std::string &filename, const int fwVersion)
void setSortRankLUTPath(std::string path)
void setFOPosMatchQualLUTPath(std::string path)
void setMaskedOmtfpInputs(const std::bitset< 6 > &masked)
void setRelIsoCheckMemLUTPath(std::string path)
void setFONegMatchQualLUT(const l1t::LUT &lut)
void setOvlNegSingleMatchQualLUTPath(std::string path)
void setRelIsoCheckMemLUT(const l1t::LUT &lut)
void setFPhiExtrapolationLUTPath(std::string path)
void setEmtfnInputsToDisable(const std::bitset< 6 > &disables)
void setOvlPosSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
void setFEtaExtrapolationLUTPath(std::string path)
void setAbsIsoCheckMemLUT(const l1t::LUT &lut)
void setOvlPosSingleMatchQualLUT(const l1t::LUT &lut)
void setFwVersion(unsigned fwVersion)
void setBEtaExtrapolationLUTPath(std::string path)
void setBOPosMatchQualLUT(const l1t::LUT &lut)
void setFwdNegSingleMatchQualLUTPath(std::string path)
void setMaskedOmtfnInputs(const std::bitset< 6 > &masked)
void setOEtaExtrapolationLUTPath(std::string path)
void setCaloInputsToDisable(const std::bitset< 28 > &disables)
void setBOPosMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
void setIdxSelMemPhiLUTPath(std::string path)
void setMaskedBmtfInputs(const std::bitset< 12 > &masked)
void setFONegMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
void setFwdNegSingleMatchQualLUT(const l1t::LUT &lut)
void setSortRankLUT(const l1t::LUT &lut)
void setBONegMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
static ReturnType create(const std::string &filename, const double maxDR, const double fEta, const double fEtaCoarse, const double fPhi, cancel_t cancelType, const int fwVersion)
void setOvlNegSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
void setMaskedEmtfpInputs(const std::bitset< 6 > &masked)
void setMaskedEmtfnInputs(const std::bitset< 6 > &masked)
void setEmtfpInputsToDisable(const std::bitset< 6 > &disables)
void setBPhiExtrapolationLUTPath(std::string path)
void setOmtfnInputsToDisable(const std::bitset< 6 > &disables)
void setFwdNegSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fPhi)
void setOvlPosSingleMatchQualLUTPath(std::string path)
void setOvlNegSingleMatchQualLUT(const l1t::LUT &lut)
static ReturnType create(const std::string &filename, const int type, const int fwVersion)
L1TMuonGlobalParamsESProducer::~L1TMuonGlobalParamsESProducer ( )

Definition at line 297 of file L1TMuonGlobalParamsESProducer.cc.

298 {
299 }

Member Function Documentation

L1TMuonGlobalParamsESProducer::ReturnType L1TMuonGlobalParamsESProducer::produce ( const L1TMuonGlobalParamsRcd iRecord)

Definition at line 308 of file L1TMuonGlobalParamsESProducer.cc.

References m_params.

309 {
310  using namespace edm::es;
311  boost::shared_ptr<L1TMuonGlobalParams> pMicroGMTParams;
312 
313  pMicroGMTParams = boost::shared_ptr<L1TMuonGlobalParams>(new L1TMuonGlobalParams(m_params));
314  return pMicroGMTParams;
315 }

Member Data Documentation

L1TMuonGlobalParams L1TMuonGlobalParamsESProducer::m_params
private

Definition at line 48 of file L1TMuonGlobalParamsESProducer.cc.

Referenced by L1TMuonGlobalParamsESProducer(), and produce().