CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
L1TMuonGlobalParamsESProducer Class Reference
Inheritance diagram for L1TMuonGlobalParamsESProducer:
edm::ESProducer edm::ESProductResolverFactoryProducer edm::eventsetup::ESProductResolverProvider

Public Types

using ReturnType = std::unique_ptr< L1TMuonGlobalParams >
 

Public Member Functions

 L1TMuonGlobalParamsESProducer (const edm::ParameterSet &)
 
ReturnType produce (const L1TMuonGlobalParamsRcd &)
 
 ~L1TMuonGlobalParamsESProducer () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
 ESProducer (ESProducer &&)=delete
 
ESResolverIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProduceroperator= (const ESProducer &)=delete
 
ESProduceroperator= (ESProducer &&)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESResolverIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProductResolverFactoryProducer
 ESProductResolverFactoryProducer ()
 
 ESProductResolverFactoryProducer (const ESProductResolverFactoryProducer &)=delete
 
const ESProductResolverFactoryProduceroperator= (const ESProductResolverFactoryProducer &)=delete
 
 ~ESProductResolverFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
void createKeyedResolvers (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
const ComponentDescriptiondescription () const
 
 ESProductResolverProvider ()
 
 ESProductResolverProvider (const ESProductResolverProvider &)=delete
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedResolverskeyedResolvers (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const ESProductResolverProvideroperator= (const ESProductResolverProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~ESProductResolverProvider () noexcept(false)
 

Private Attributes

L1TMuonGlobalParams m_params
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Types inherited from edm::ESProductResolverFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::ESProductResolverProvider
using KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >>
 
- Protected Member Functions inherited from edm::ESProducer
ESConsumesInfoconsumesInfoPushBackNew ()
 
unsigned int consumesInfoSize () const
 
template<typename CallbackT , typename TList , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>> iCallback, const TList *, const TRecord *iRecord, const es::Label &iLabel)
 
template<typename CallbackT , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>>, const eventsetup::produce::Null *, const TRecord *, const es::Label &)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TDecorator >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename TFunc >
auto setWhatProduced (TFunc &&func, const es::Label &iLabel={})
 
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator >
ESConsumesCollectorT< TRecord > setWhatProduced (TFunc &&func, TDecorator &&iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProductResolverFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ESProductResolverFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedResolversVector registerResolvers (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::ESProductResolverProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 

Detailed Description

Description: [one line class summary]

Implementation: [Notes on implementation]

Definition at line 39 of file L1TMuonGlobalParamsESProducer.cc.

Member Typedef Documentation

◆ ReturnType

Definition at line 44 of file L1TMuonGlobalParamsESProducer.cc.

Constructor & Destructor Documentation

◆ L1TMuonGlobalParamsESProducer()

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

Definition at line 63 of file L1TMuonGlobalParamsESProducer.cc.

References fakeGmtParams_cff::bmtfInputsToDisable, fakeGmtParams_cff::caloInputsMasked, cast_to_L1TMuonGlobalParams(), l1t::TriggerSystem::configureSystemFromFiles(), 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, fakeGmtParams_cff::emtfInputsToDisable, l1t::MicroGMTConfiguration::ETA, l1t::MicroGMTConfiguration::ETA_OUT, amcDumpToRaw_cfi::fwVersion, edm::ParameterSet::getParameter(), fakeGmtParams_cff::hwXmlFile, mps_fire::i, L1TMuonGlobalParamsHelper::loadFromOnline(), m_params, fakeGmtParams_cff::maskedBmtfInputs, fakeGmtParams_cff::maskedEmtfInputs, fakeGmtParams_cff::maskedOmtfInputs, l1t::omtf_bmtf_neg, l1t::omtf_bmtf_pos, l1t::omtf_emtf_neg, l1t::omtf_emtf_pos, l1t::omtf_omtf_neg, l1t::omtf_omtf_pos, fakeGmtParams_cff::omtfInputsToDisable, 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(), AlCaHLTBitMon_QueryRunRegistry::string, and fakeGmtParams_cff::topCfgXmlFile.

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  // get configuration from DB
71  if (iConfig.getParameter<bool>("configFromXml")) {
72  l1t::TriggerSystem trgSys;
73  edm::FileInPath hwXmlFile(iConfig.getParameter<std::string>("hwXmlFile"));
74  edm::FileInPath topCfgXmlFile(iConfig.getParameter<std::string>("topCfgXmlFile"));
75  // These xml files are for testing the configuration from the online DB
76  trgSys.configureSystemFromFiles(hwXmlFile.fullPath().c_str(),
77  topCfgXmlFile.fullPath().c_str(),
78  iConfig.getParameter<std::string>("xmlCfgKey").c_str());
79 
80  m_params_helper.loadFromOnline(trgSys, iConfig.getParameter<std::string>("uGmtProcessorId"));
81  } else {
82  // Firmware version
83  unsigned fwVersion = iConfig.getParameter<unsigned>("fwVersion");
84  m_params_helper.setFwVersion(fwVersion);
85 
86  // LUTs
87  m_params_helper.setFwdPosSingleMatchQualLUTMaxDR(iConfig.getParameter<double>("FwdPosSingleMatchQualLUTMaxDR"),
88  iConfig.getParameter<double>("FwdPosSingleMatchQualLUTfEta"),
89  iConfig.getParameter<double>("FwdPosSingleMatchQualLUTfPhi"));
90  m_params_helper.setFwdNegSingleMatchQualLUTMaxDR(iConfig.getParameter<double>("FwdNegSingleMatchQualLUTMaxDR"),
91  iConfig.getParameter<double>("FwdNegSingleMatchQualLUTfEta"),
92  iConfig.getParameter<double>("FwdNegSingleMatchQualLUTfPhi"));
93  m_params_helper.setOvlPosSingleMatchQualLUTMaxDR(iConfig.getParameter<double>("OvlPosSingleMatchQualLUTMaxDR"),
94  iConfig.getParameter<double>("OvlPosSingleMatchQualLUTfEta"),
95  iConfig.getParameter<double>("OvlPosSingleMatchQualLUTfEtaCoarse"),
96  iConfig.getParameter<double>("OvlPosSingleMatchQualLUTfPhi"));
97  m_params_helper.setOvlNegSingleMatchQualLUTMaxDR(iConfig.getParameter<double>("OvlNegSingleMatchQualLUTMaxDR"),
98  iConfig.getParameter<double>("OvlNegSingleMatchQualLUTfEta"),
99  iConfig.getParameter<double>("OvlNegSingleMatchQualLUTfEtaCoarse"),
100  iConfig.getParameter<double>("OvlNegSingleMatchQualLUTfPhi"));
101  m_params_helper.setBOPosMatchQualLUTMaxDR(iConfig.getParameter<double>("BOPosMatchQualLUTMaxDR"),
102  iConfig.getParameter<double>("BOPosMatchQualLUTfEta"),
103  iConfig.getParameter<double>("BOPosMatchQualLUTfEtaCoarse"),
104  iConfig.getParameter<double>("BOPosMatchQualLUTfPhi"));
105  m_params_helper.setBONegMatchQualLUTMaxDR(iConfig.getParameter<double>("BONegMatchQualLUTMaxDR"),
106  iConfig.getParameter<double>("BONegMatchQualLUTfEta"),
107  iConfig.getParameter<double>("BONegMatchQualLUTfEtaCoarse"),
108  iConfig.getParameter<double>("BONegMatchQualLUTfPhi"));
109  m_params_helper.setFOPosMatchQualLUTMaxDR(iConfig.getParameter<double>("FOPosMatchQualLUTMaxDR"),
110  iConfig.getParameter<double>("FOPosMatchQualLUTfEta"),
111  iConfig.getParameter<double>("FOPosMatchQualLUTfEtaCoarse"),
112  iConfig.getParameter<double>("FOPosMatchQualLUTfPhi"));
113  m_params_helper.setFONegMatchQualLUTMaxDR(iConfig.getParameter<double>("FONegMatchQualLUTMaxDR"),
114  iConfig.getParameter<double>("FONegMatchQualLUTfEta"),
115  iConfig.getParameter<double>("FONegMatchQualLUTfEtaCoarse"),
116  iConfig.getParameter<double>("FONegMatchQualLUTfPhi"));
117 
118  unsigned sortRankLUTPtFactor = iConfig.getParameter<unsigned>("SortRankLUTPtFactor");
119  unsigned sortRankLUTQualFactor = iConfig.getParameter<unsigned>("SortRankLUTQualFactor");
120  m_params_helper.setSortRankLUTFactors(sortRankLUTPtFactor, sortRankLUTQualFactor);
121 
123  iConfig.getParameter<std::string>("AbsIsoCheckMemLUTPath"), fwVersion);
125  iConfig.getParameter<std::string>("RelIsoCheckMemLUTPath"), fwVersion);
127  iConfig.getParameter<std::string>("IdxSelMemPhiLUTPath"), l1t::MicroGMTConfiguration::PHI, fwVersion);
129  iConfig.getParameter<std::string>("IdxSelMemEtaLUTPath"), l1t::MicroGMTConfiguration::ETA, fwVersion);
130  auto fwdPosSingleMatchQualLUT = l1t::MicroGMTMatchQualLUTFactory::create(
131  iConfig.getParameter<std::string>("FwdPosSingleMatchQualLUTPath"),
132  iConfig.getParameter<double>("FwdPosSingleMatchQualLUTMaxDR"),
133  iConfig.getParameter<double>("FwdPosSingleMatchQualLUTfEta"),
134  iConfig.getParameter<double>("FwdPosSingleMatchQualLUTfEta"), // set the coarse eta factor = fine eta factor
135  iConfig.getParameter<double>("FwdPosSingleMatchQualLUTfPhi"),
137  fwVersion);
138  auto fwdNegSingleMatchQualLUT = l1t::MicroGMTMatchQualLUTFactory::create(
139  iConfig.getParameter<std::string>("FwdNegSingleMatchQualLUTPath"),
140  iConfig.getParameter<double>("FwdNegSingleMatchQualLUTMaxDR"),
141  iConfig.getParameter<double>("FwdNegSingleMatchQualLUTfEta"),
142  iConfig.getParameter<double>("FwdNegSingleMatchQualLUTfEta"), // set the coarse eta factor = fine eta factor
143  iConfig.getParameter<double>("FwdNegSingleMatchQualLUTfPhi"),
145  fwVersion);
146  auto ovlPosSingleMatchQualLUT =
147  l1t::MicroGMTMatchQualLUTFactory::create(iConfig.getParameter<std::string>("OvlPosSingleMatchQualLUTPath"),
148  iConfig.getParameter<double>("OvlPosSingleMatchQualLUTMaxDR"),
149  iConfig.getParameter<double>("OvlPosSingleMatchQualLUTfEta"),
150  iConfig.getParameter<double>("OvlPosSingleMatchQualLUTfEtaCoarse"),
151  iConfig.getParameter<double>("OvlPosSingleMatchQualLUTfPhi"),
153  fwVersion);
154  auto ovlNegSingleMatchQualLUT =
155  l1t::MicroGMTMatchQualLUTFactory::create(iConfig.getParameter<std::string>("OvlNegSingleMatchQualLUTPath"),
156  iConfig.getParameter<double>("OvlNegSingleMatchQualLUTMaxDR"),
157  iConfig.getParameter<double>("OvlNegSingleMatchQualLUTfEta"),
158  iConfig.getParameter<double>("OvlNegSingleMatchQualLUTfEtaCoarse"),
159  iConfig.getParameter<double>("OvlNegSingleMatchQualLUTfPhi"),
161  fwVersion);
162  auto bOPosMatchQualLUT =
163  l1t::MicroGMTMatchQualLUTFactory::create(iConfig.getParameter<std::string>("BOPosMatchQualLUTPath"),
164  iConfig.getParameter<double>("BOPosMatchQualLUTMaxDR"),
165  iConfig.getParameter<double>("BOPosMatchQualLUTfEta"),
166  iConfig.getParameter<double>("BOPosMatchQualLUTfEtaCoarse"),
167  iConfig.getParameter<double>("BOPosMatchQualLUTfPhi"),
169  fwVersion);
170  auto bONegMatchQualLUT =
171  l1t::MicroGMTMatchQualLUTFactory::create(iConfig.getParameter<std::string>("BONegMatchQualLUTPath"),
172  iConfig.getParameter<double>("BONegMatchQualLUTMaxDR"),
173  iConfig.getParameter<double>("BONegMatchQualLUTfEta"),
174  iConfig.getParameter<double>("BONegMatchQualLUTfEtaCoarse"),
175  iConfig.getParameter<double>("BONegMatchQualLUTfPhi"),
177  fwVersion);
178  auto fOPosMatchQualLUT =
179  l1t::MicroGMTMatchQualLUTFactory::create(iConfig.getParameter<std::string>("FOPosMatchQualLUTPath"),
180  iConfig.getParameter<double>("FOPosMatchQualLUTMaxDR"),
181  iConfig.getParameter<double>("FOPosMatchQualLUTfEta"),
182  iConfig.getParameter<double>("FOPosMatchQualLUTfEtaCoarse"),
183  iConfig.getParameter<double>("FOPosMatchQualLUTfPhi"),
185  fwVersion);
186  auto fONegMatchQualLUT =
187  l1t::MicroGMTMatchQualLUTFactory::create(iConfig.getParameter<std::string>("FONegMatchQualLUTPath"),
188  iConfig.getParameter<double>("FONegMatchQualLUTMaxDR"),
189  iConfig.getParameter<double>("FONegMatchQualLUTfEta"),
190  iConfig.getParameter<double>("FONegMatchQualLUTfEtaCoarse"),
191  iConfig.getParameter<double>("FONegMatchQualLUTfPhi"),
193  fwVersion);
194  auto bPhiExtrapolationLUT = l1t::MicroGMTExtrapolationLUTFactory::create(
195  iConfig.getParameter<std::string>("BPhiExtrapolationLUTPath"), l1t::MicroGMTConfiguration::PHI_OUT, fwVersion);
196  auto oPhiExtrapolationLUT = l1t::MicroGMTExtrapolationLUTFactory::create(
197  iConfig.getParameter<std::string>("OPhiExtrapolationLUTPath"), l1t::MicroGMTConfiguration::PHI_OUT, fwVersion);
198  auto fPhiExtrapolationLUT = l1t::MicroGMTExtrapolationLUTFactory::create(
199  iConfig.getParameter<std::string>("FPhiExtrapolationLUTPath"), l1t::MicroGMTConfiguration::PHI_OUT, fwVersion);
200  auto bEtaExtrapolationLUT = l1t::MicroGMTExtrapolationLUTFactory::create(
201  iConfig.getParameter<std::string>("BEtaExtrapolationLUTPath"), l1t::MicroGMTConfiguration::ETA_OUT, fwVersion);
202  auto oEtaExtrapolationLUT = l1t::MicroGMTExtrapolationLUTFactory::create(
203  iConfig.getParameter<std::string>("OEtaExtrapolationLUTPath"), l1t::MicroGMTConfiguration::ETA_OUT, fwVersion);
204  auto fEtaExtrapolationLUT = l1t::MicroGMTExtrapolationLUTFactory::create(
205  iConfig.getParameter<std::string>("FEtaExtrapolationLUTPath"), l1t::MicroGMTConfiguration::ETA_OUT, fwVersion);
206  auto rankPtQualityLUT =
208  fwVersion,
209  sortRankLUTPtFactor,
210  sortRankLUTQualFactor); // LUTs defined from config file
211  m_params_helper.setAbsIsoCheckMemLUT(*absIsoCheckMemLUT);
212  m_params_helper.setRelIsoCheckMemLUT(*relIsoCheckMemLUT);
213  m_params_helper.setIdxSelMemPhiLUT(*idxSelMemPhiLUT);
214  m_params_helper.setIdxSelMemEtaLUT(*idxSelMemEtaLUT);
215  m_params_helper.setFwdPosSingleMatchQualLUT(*fwdPosSingleMatchQualLUT);
216  m_params_helper.setFwdNegSingleMatchQualLUT(*fwdNegSingleMatchQualLUT);
217  m_params_helper.setOvlPosSingleMatchQualLUT(*ovlPosSingleMatchQualLUT);
218  m_params_helper.setOvlNegSingleMatchQualLUT(*ovlNegSingleMatchQualLUT);
219  m_params_helper.setBOPosMatchQualLUT(*bOPosMatchQualLUT);
220  m_params_helper.setBONegMatchQualLUT(*bONegMatchQualLUT);
221  m_params_helper.setFOPosMatchQualLUT(*fOPosMatchQualLUT);
222  m_params_helper.setFONegMatchQualLUT(*fONegMatchQualLUT);
223  m_params_helper.setBPhiExtrapolationLUT(*bPhiExtrapolationLUT);
224  m_params_helper.setOPhiExtrapolationLUT(*oPhiExtrapolationLUT);
225  m_params_helper.setFPhiExtrapolationLUT(*fPhiExtrapolationLUT);
226  m_params_helper.setBEtaExtrapolationLUT(*bEtaExtrapolationLUT);
227  m_params_helper.setOEtaExtrapolationLUT(*oEtaExtrapolationLUT);
228  m_params_helper.setFEtaExtrapolationLUT(*fEtaExtrapolationLUT);
229  m_params_helper.setSortRankLUT(*rankPtQualityLUT);
230 
231  // LUT paths
232  m_params_helper.setAbsIsoCheckMemLUTPath(iConfig.getParameter<std::string>("AbsIsoCheckMemLUTPath"));
233  m_params_helper.setRelIsoCheckMemLUTPath(iConfig.getParameter<std::string>("RelIsoCheckMemLUTPath"));
234  m_params_helper.setIdxSelMemPhiLUTPath(iConfig.getParameter<std::string>("IdxSelMemPhiLUTPath"));
235  m_params_helper.setIdxSelMemEtaLUTPath(iConfig.getParameter<std::string>("IdxSelMemEtaLUTPath"));
236  m_params_helper.setFwdPosSingleMatchQualLUTPath(iConfig.getParameter<std::string>("FwdPosSingleMatchQualLUTPath"));
237  m_params_helper.setFwdNegSingleMatchQualLUTPath(iConfig.getParameter<std::string>("FwdNegSingleMatchQualLUTPath"));
238  m_params_helper.setOvlPosSingleMatchQualLUTPath(iConfig.getParameter<std::string>("OvlPosSingleMatchQualLUTPath"));
239  m_params_helper.setOvlNegSingleMatchQualLUTPath(iConfig.getParameter<std::string>("OvlNegSingleMatchQualLUTPath"));
240  m_params_helper.setBOPosMatchQualLUTPath(iConfig.getParameter<std::string>("BOPosMatchQualLUTPath"));
241  m_params_helper.setBONegMatchQualLUTPath(iConfig.getParameter<std::string>("BONegMatchQualLUTPath"));
242  m_params_helper.setFOPosMatchQualLUTPath(iConfig.getParameter<std::string>("FOPosMatchQualLUTPath"));
243  m_params_helper.setFONegMatchQualLUTPath(iConfig.getParameter<std::string>("FONegMatchQualLUTPath"));
244  m_params_helper.setBPhiExtrapolationLUTPath(iConfig.getParameter<std::string>("BPhiExtrapolationLUTPath"));
245  m_params_helper.setOPhiExtrapolationLUTPath(iConfig.getParameter<std::string>("OPhiExtrapolationLUTPath"));
246  m_params_helper.setFPhiExtrapolationLUTPath(iConfig.getParameter<std::string>("FPhiExtrapolationLUTPath"));
247  m_params_helper.setBEtaExtrapolationLUTPath(iConfig.getParameter<std::string>("BEtaExtrapolationLUTPath"));
248  m_params_helper.setOEtaExtrapolationLUTPath(iConfig.getParameter<std::string>("OEtaExtrapolationLUTPath"));
249  m_params_helper.setFEtaExtrapolationLUTPath(iConfig.getParameter<std::string>("FEtaExtrapolationLUTPath"));
250  m_params_helper.setSortRankLUTPath(iConfig.getParameter<std::string>("SortRankLUTPath"));
251 
252  // uGMT disabled inputs
253  bool disableCaloInputs = iConfig.getParameter<bool>("caloInputsDisable");
254  std::vector<unsigned> bmtfInputsToDisable = iConfig.getParameter<std::vector<unsigned> >("bmtfInputsToDisable");
255  std::vector<unsigned> omtfInputsToDisable = iConfig.getParameter<std::vector<unsigned> >("omtfInputsToDisable");
256  std::vector<unsigned> emtfInputsToDisable = iConfig.getParameter<std::vector<unsigned> >("emtfInputsToDisable");
257 
258  if (disableCaloInputs) {
259  m_params_helper.setCaloInputsToDisable(std::bitset<28>(0xFFFFFFF));
260  } else {
261  m_params_helper.setCaloInputsToDisable(std::bitset<28>());
262  }
263 
264  std::bitset<12> bmtfDisables;
265  for (size_t i = 0; i < bmtfInputsToDisable.size(); ++i) {
266  bmtfDisables.set(i, bmtfInputsToDisable[i] > 0);
267  }
268  m_params_helper.setBmtfInputsToDisable(bmtfDisables);
269 
270  std::bitset<6> omtfpDisables;
271  std::bitset<6> omtfnDisables;
272  for (size_t i = 0; i < omtfInputsToDisable.size(); ++i) {
273  if (i < 6) {
274  omtfpDisables.set(i, omtfInputsToDisable[i] > 0);
275  } else {
276  omtfnDisables.set(i - 6, omtfInputsToDisable[i] > 0);
277  }
278  }
279  m_params_helper.setOmtfpInputsToDisable(omtfpDisables);
280  m_params_helper.setOmtfnInputsToDisable(omtfnDisables);
281 
282  std::bitset<6> emtfpDisables;
283  std::bitset<6> emtfnDisables;
284  for (size_t i = 0; i < emtfInputsToDisable.size(); ++i) {
285  if (i < 6) {
286  emtfpDisables.set(i, emtfInputsToDisable[i] > 0);
287  } else {
288  emtfnDisables.set(i - 6, emtfInputsToDisable[i] > 0);
289  }
290  }
291  m_params_helper.setEmtfpInputsToDisable(emtfpDisables);
292  m_params_helper.setEmtfnInputsToDisable(emtfnDisables);
293 
294  // masked inputs
295  bool caloInputsMasked = iConfig.getParameter<bool>("caloInputsMasked");
296  std::vector<unsigned> maskedBmtfInputs = iConfig.getParameter<std::vector<unsigned> >("maskedBmtfInputs");
297  std::vector<unsigned> maskedOmtfInputs = iConfig.getParameter<std::vector<unsigned> >("maskedOmtfInputs");
298  std::vector<unsigned> maskedEmtfInputs = iConfig.getParameter<std::vector<unsigned> >("maskedEmtfInputs");
299 
300  if (caloInputsMasked) {
301  m_params_helper.setMaskedCaloInputs(std::bitset<28>(0xFFFFFFF));
302  } else {
303  m_params_helper.setMaskedCaloInputs(std::bitset<28>());
304  }
305 
306  std::bitset<12> bmtfMasked;
307  for (size_t i = 0; i < maskedBmtfInputs.size(); ++i) {
308  bmtfMasked.set(i, maskedBmtfInputs[i] > 0);
309  }
310  m_params_helper.setMaskedBmtfInputs(bmtfMasked);
311 
312  std::bitset<6> omtfpMasked;
313  std::bitset<6> omtfnMasked;
314  for (size_t i = 0; i < maskedOmtfInputs.size(); ++i) {
315  if (i < 6) {
316  omtfpMasked.set(i, maskedOmtfInputs[i] > 0);
317  } else {
318  omtfnMasked.set(i - 6, maskedOmtfInputs[i] > 0);
319  }
320  }
321  m_params_helper.setMaskedOmtfpInputs(omtfpMasked);
322  m_params_helper.setMaskedOmtfnInputs(omtfnMasked);
323 
324  std::bitset<6> emtfpMasked;
325  std::bitset<6> emtfnMasked;
326  for (size_t i = 0; i < maskedEmtfInputs.size(); ++i) {
327  if (i < 6) {
328  emtfpMasked.set(i, maskedEmtfInputs[i] > 0);
329  } else {
330  emtfnMasked.set(i - 6, maskedEmtfInputs[i] > 0);
331  }
332  }
333  m_params_helper.setMaskedEmtfpInputs(emtfpMasked);
334  m_params_helper.setMaskedEmtfnInputs(emtfnMasked);
335  }
336 
337  // temp hack to avoid ALCA/DB signoff:
339 }
void setBONegMatchQualLUTPath(const std::string &path)
const L1TMuonGlobalParams & cast_to_L1TMuonGlobalParams(const L1TMuonGlobalParams_PUBLIC &x)
void setFOPosMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:166
void setMaskedCaloInputs(const std::bitset< 28 > &masked)
void setIdxSelMemEtaLUT(const l1t::LUT &lut)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
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 setOPhiExtrapolationLUTPath(const std::string &path)
void setFEtaExtrapolationLUT(const l1t::LUT &lut)
void setFwdNegSingleMatchQualLUTPath(const std::string &path)
void setFPhiExtrapolationLUT(const l1t::LUT &lut)
void setFOPosMatchQualLUTPath(const std::string &path)
void setIdxSelMemEtaLUTPath(const std::string &path)
void setOmtfpInputsToDisable(const std::bitset< 6 > &disables)
void setOEtaExtrapolationLUT(const l1t::LUT &lut)
void setBPhiExtrapolationLUTPath(const std::string &path)
void setSortRankLUTFactors(unsigned ptFactor, unsigned qualFactor)
static ReturnType create(const std::string &filename, const int fwVersion)
void setIdxSelMemPhiLUT(const l1t::LUT &lut)
static ReturnType create(const std::string &filename, const int type, const int fwVersion)
void setBPhiExtrapolationLUT(const l1t::LUT &lut)
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 setRelIsoCheckMemLUTPath(const std::string &path)
void setMaskedOmtfpInputs(const std::bitset< 6 > &masked)
void setFONegMatchQualLUT(const l1t::LUT &lut)
void setFwdPosSingleMatchQualLUTPath(const std::string &path)
void setBOPosMatchQualLUTPath(const std::string &path)
void loadFromOnline(l1t::TriggerSystem &trgSys, const std::string &processorId="")
void setRelIsoCheckMemLUT(const l1t::LUT &lut)
void setEmtfnInputsToDisable(const std::bitset< 6 > &disables)
void setOvlPosSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
void setFEtaExtrapolationLUTPath(const std::string &path)
void setAbsIsoCheckMemLUT(const l1t::LUT &lut)
void setOvlPosSingleMatchQualLUT(const l1t::LUT &lut)
void setFwVersion(unsigned fwVersion)
void setIdxSelMemPhiLUTPath(const std::string &path)
void setBOPosMatchQualLUT(const l1t::LUT &lut)
void setMaskedOmtfnInputs(const std::bitset< 6 > &masked)
void configureSystemFromFiles(const char *hwCfgFile, const char *topCfgFile, const char *key)
Definition: TriggerSystem.cc:8
void setCaloInputsToDisable(const std::bitset< 28 > &disables)
void setBOPosMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
void setMaskedBmtfInputs(const std::bitset< 12 > &masked)
void setFONegMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
void setBEtaExtrapolationLUTPath(const std::string &path)
void setOvlPosSingleMatchQualLUTPath(const std::string &path)
void setFwdNegSingleMatchQualLUT(const l1t::LUT &lut)
void setOvlNegSingleMatchQualLUTPath(const std::string &path)
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 setAbsIsoCheckMemLUTPath(const std::string &path)
void setMaskedEmtfnInputs(const std::bitset< 6 > &masked)
void setEmtfpInputsToDisable(const std::bitset< 6 > &disables)
void setOmtfnInputsToDisable(const std::bitset< 6 > &disables)
void setFPhiExtrapolationLUTPath(const std::string &path)
void setSortRankLUTPath(const std::string &path)
void setOEtaExtrapolationLUTPath(const std::string &path)
void setFwdNegSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fPhi)
void setFONegMatchQualLUTPath(const std::string &path)
void setOvlNegSingleMatchQualLUT(const l1t::LUT &lut)
static ReturnType create(const std::string &filename, const int type, const int fwVersion)

◆ ~L1TMuonGlobalParamsESProducer()

L1TMuonGlobalParamsESProducer::~L1TMuonGlobalParamsESProducer ( )
override

Definition at line 341 of file L1TMuonGlobalParamsESProducer.cc.

341 {}

Member Function Documentation

◆ produce()

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

Definition at line 348 of file L1TMuonGlobalParamsESProducer.cc.

References m_params.

348  {
349  return std::make_unique<L1TMuonGlobalParams>(m_params);
350 }

Member Data Documentation

◆ m_params

L1TMuonGlobalParams L1TMuonGlobalParamsESProducer::m_params
private

Definition at line 49 of file L1TMuonGlobalParamsESProducer.cc.

Referenced by L1TMuonGlobalParamsESProducer(), and produce().