CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
< L1MuGMTChannelMask
produceL1MuGMTChannelMask (const L1MuGMTChannelMaskRcd &)
 
std::unique_ptr
< L1MuGMTParameters
produceL1MuGMTParameters (const L1MuGMTParametersRcd &)
 
 ~L1MuGMTParametersProducer ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()(false)
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer () noexcept(false)
 
- 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
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 
- 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::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())
 
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

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 }
std::unique_ptr< L1MuGMTParameters > produceL1MuGMTParameters(const L1MuGMTParametersRcd &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
std::unique_ptr< L1MuGMTChannelMask > produceL1MuGMTChannelMask(const L1MuGMTChannelMaskRcd &)
L1MuGMTParametersProducer::~L1MuGMTParametersProducer ( )

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 88 of file L1MuGMTParametersProducer.cc.

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

Referenced by L1MuGMTParametersProducer().

89 {
90  using namespace edm::es;
91 
92  std::unique_ptr<L1MuGMTChannelMask> gmtchanmask = std::unique_ptr<L1MuGMTChannelMask>( new L1MuGMTChannelMask() );
93 
94  gmtchanmask->setSubsystemMask(m_ps->getParameter<unsigned>("SubsystemMask"));
95 
96  return gmtchanmask ;
97 }
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(), L1MuGMTParameters_cfi::L1MuGMTParameters, m_ps, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by L1MuGMTParametersProducer().

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

Member Data Documentation

edm::ParameterSet* L1MuGMTParametersProducer::m_ps
private