CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1MuGMTParametersProducer Class Reference

#include <L1MuGMTParametersProducer.h>

Inheritance diagram for L1MuGMTParametersProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

 L1MuGMTParametersProducer (const edm::ParameterSet &)
 
std::unique_ptr< L1MuGMTChannelMaskproduceL1MuGMTChannelMask (const L1MuGMTChannelMaskRcd &)
 
std::unique_ptr< L1MuGMTParametersproduceL1MuGMTParameters (const L1MuGMTParametersRcd &)
 
 ~L1MuGMTParametersProducer () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer ()(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval) override
 overrides DataProxyProvider method More...
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- 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 () noexcept(false)
 

Private Attributes

edm::ParameterSetm_ps
 

Additional Inherited Members

- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
 
typedef std::vector< EventSetupRecordKeyKeys
 
typedef std::map< EventSetupRecordKey, KeyedProxiesRecordProxies
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::ESProducer
 ESProducer (const ESProducer &)=delete
 
ESProducer const & operator= (const ESProducer &)=delete
 
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 TArg >
ESConsumesCollectorT< TRecord > setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) override
 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

Definition at line 34 of file L1MuGMTParametersProducer.h.

Constructor & Destructor Documentation

L1MuGMTParametersProducer::L1MuGMTParametersProducer ( const edm::ParameterSet ps)

Definition at line 14 of file L1MuGMTParametersProducer.cc.

References m_ps, produceL1MuGMTChannelMask(), produceL1MuGMTParameters(), and edm::ESProducer::setWhatProduced().

15 {
16 
17  m_ps = new edm::ParameterSet(ps);
20 
21 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
std::unique_ptr< L1MuGMTParameters > produceL1MuGMTParameters(const L1MuGMTParametersRcd &)
std::unique_ptr< L1MuGMTChannelMask > produceL1MuGMTChannelMask(const L1MuGMTChannelMaskRcd &)
L1MuGMTParametersProducer::~L1MuGMTParametersProducer ( )
override

Definition at line 24 of file L1MuGMTParametersProducer.cc.

References m_ps.

24  {
25  delete m_ps;
26 }

Member Function Documentation

std::unique_ptr< L1MuGMTChannelMask > L1MuGMTParametersProducer::produceL1MuGMTChannelMask ( const L1MuGMTChannelMaskRcd iRecord)

Definition at line 86 of file L1MuGMTParametersProducer.cc.

References edm::ParameterSet::getParameter(), and m_ps.

Referenced by L1MuGMTParametersProducer().

87 {
88  auto gmtchanmask = std::make_unique<L1MuGMTChannelMask>();
89 
90  gmtchanmask->setSubsystemMask(m_ps->getParameter<unsigned>("SubsystemMask"));
91 
92  return gmtchanmask ;
93 }
T getParameter(std::string const &) const
std::unique_ptr< L1MuGMTParameters > L1MuGMTParametersProducer::produceL1MuGMTParameters ( const L1MuGMTParametersRcd iRecord)

Definition at line 35 of file L1MuGMTParametersProducer.cc.

References edm::ParameterSet::getParameter(), m_ps, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by L1MuGMTParametersProducer().

36 {
37  auto gmtparams = std::make_unique<L1MuGMTParameters>();
38 
39  gmtparams->setEtaWeight_barrel(m_ps->getParameter<double>("EtaWeight_barrel"));
40  gmtparams->setPhiWeight_barrel(m_ps->getParameter<double>("PhiWeight_barrel"));
41  gmtparams->setEtaPhiThreshold_barrel(m_ps->getParameter<double>("EtaPhiThreshold_barrel"));
42  gmtparams->setEtaWeight_endcap(m_ps->getParameter<double>("EtaWeight_endcap"));
43  gmtparams->setPhiWeight_endcap(m_ps->getParameter<double>("PhiWeight_endcap"));
44  gmtparams->setEtaPhiThreshold_endcap(m_ps->getParameter<double>("EtaPhiThreshold_endcap"));
45  gmtparams->setEtaWeight_COU(m_ps->getParameter<double>("EtaWeight_COU"));
46  gmtparams->setPhiWeight_COU(m_ps->getParameter<double>("PhiWeight_COU"));
47  gmtparams->setEtaPhiThreshold_COU(m_ps->getParameter<double>("EtaPhiThreshold_COU"));
48  gmtparams->setCaloTrigger(m_ps->getParameter<bool>("CaloTrigger"));
49  gmtparams->setIsolationCellSizeEta(m_ps->getParameter<int>("IsolationCellSizeEta"));
50  gmtparams->setIsolationCellSizePhi(m_ps->getParameter<int>("IsolationCellSizePhi"));
51  gmtparams->setDoOvlRpcAnd(m_ps->getParameter<bool>("DoOvlRpcAnd"));
52  gmtparams->setPropagatePhi(m_ps->getParameter<bool>("PropagatePhi"));
53  gmtparams->setMergeMethodPhiBrl(m_ps->getParameter<std::string>("MergeMethodPhiBrl"));
54  gmtparams->setMergeMethodPhiFwd(m_ps->getParameter<std::string>("MergeMethodPhiFwd"));
55  gmtparams->setMergeMethodEtaBrl(m_ps->getParameter<std::string>("MergeMethodEtaBrl"));
56  gmtparams->setMergeMethodEtaFwd(m_ps->getParameter<std::string>("MergeMethodEtaFwd"));
57  gmtparams->setMergeMethodPtBrl(m_ps->getParameter<std::string>("MergeMethodPtBrl"));
58  gmtparams->setMergeMethodPtFwd(m_ps->getParameter<std::string>("MergeMethodPtFwd"));
59  gmtparams->setMergeMethodChargeBrl(m_ps->getParameter<std::string>("MergeMethodChargeBrl"));
60  gmtparams->setMergeMethodChargeFwd(m_ps->getParameter<std::string>("MergeMethodChargeFwd"));
61  gmtparams->setMergeMethodMIPBrl(m_ps->getParameter<std::string>("MergeMethodMIPBrl"));
62  gmtparams->setMergeMethodMIPFwd(m_ps->getParameter<std::string>("MergeMethodMIPFwd"));
63  gmtparams->setMergeMethodMIPSpecialUseANDBrl(m_ps->getParameter<bool>("MergeMethodMIPSpecialUseANDBrl"));
64  gmtparams->setMergeMethodMIPSpecialUseANDFwd(m_ps->getParameter<bool>("MergeMethodMIPSpecialUseANDFwd"));
65  gmtparams->setMergeMethodISOBrl(m_ps->getParameter<std::string>("MergeMethodISOBrl"));
66  gmtparams->setMergeMethodISOFwd(m_ps->getParameter<std::string>("MergeMethodISOFwd"));
67  gmtparams->setMergeMethodISOSpecialUseANDBrl(m_ps->getParameter<bool>("MergeMethodISOSpecialUseANDBrl"));
68  gmtparams->setMergeMethodISOSpecialUseANDFwd(m_ps->getParameter<bool>("MergeMethodISOSpecialUseANDFwd"));
69  gmtparams->setMergeMethodSRKBrl(m_ps->getParameter<std::string>("MergeMethodSRKBrl"));
70  gmtparams->setMergeMethodSRKFwd(m_ps->getParameter<std::string>("MergeMethodSRKFwd"));
71  gmtparams->setHaloOverwritesMatchedBrl(m_ps->getParameter<bool>("HaloOverwritesMatchedBrl"));
72  gmtparams->setHaloOverwritesMatchedFwd(m_ps->getParameter<bool>("HaloOverwritesMatchedFwd"));
73  gmtparams->setSortRankOffsetBrl(m_ps->getParameter<unsigned>("SortRankOffsetBrl"));
74  gmtparams->setSortRankOffsetFwd(m_ps->getParameter<unsigned>("SortRankOffsetFwd"));
75  gmtparams->setCDLConfigWordDTCSC(m_ps->getParameter<unsigned>("CDLConfigWordDTCSC"));
76  gmtparams->setCDLConfigWordCSCDT(m_ps->getParameter<unsigned>("CDLConfigWordCSCDT"));
77  gmtparams->setCDLConfigWordbRPCCSC(m_ps->getParameter<unsigned>("CDLConfigWordbRPCCSC"));
78  gmtparams->setCDLConfigWordfRPCDT(m_ps->getParameter<unsigned>("CDLConfigWordfRPCDT"));
79  gmtparams->setVersionSortRankEtaQLUT(m_ps->getParameter<unsigned>("VersionSortRankEtaQLUT"));
80  gmtparams->setVersionLUTs(m_ps->getParameter<unsigned>("VersionLUTs"));
81 
82  return gmtparams ;
83 }
T getParameter(std::string const &) const

Member Data Documentation

edm::ParameterSet* L1MuGMTParametersProducer::m_ps
private