test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuGMTParametersProducer.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // \class L1MuGMTParametersProducer
4 //
5 // Description: A class to produce the L1 GMT emulator Parameters record in the event setup
6 //
7 //
8 // Author :
9 // I. Mikulec
10 //
11 //--------------------------------------------------
13 
15 {
16 
17  m_ps = new edm::ParameterSet(ps);
20 
21 }
22 
23 
25  delete m_ps;
26 }
27 
28 
29 //
30 // member functions
31 //
32 
33 // ------------ methods called to produce the data ------------
34 std::unique_ptr<L1MuGMTParameters>
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 }
86 
87 std::unique_ptr<L1MuGMTChannelMask>
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 }
98 
99 
T getParameter(std::string const &) const
std::unique_ptr< L1MuGMTParameters > produceL1MuGMTParameters(const L1MuGMTParametersRcd &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
L1MuGMTParametersProducer(const edm::ParameterSet &)
std::unique_ptr< L1MuGMTChannelMask > produceL1MuGMTChannelMask(const L1MuGMTChannelMaskRcd &)