24 ps.getParameter<int>(
"nbitPackingDTEta"),
25 ps.getParameter<bool>(
"signedPackingDTEta"),
26 ps.getParameter<int>(
"nbinsDTEta"),
27 ps.getParameter<double>(
"minDTEta"),
28 ps.getParameter<double>(
"maxDTEta"),
29 ps.getParameter<int>(
"offsetDTEta"),
31 ps.getParameter<int>(
"nbitPackingCSCEta"),
32 ps.getParameter<int>(
"nbinsCSCEta"),
33 ps.getParameter<double>(
"minCSCEta"),
34 ps.getParameter<double>(
"maxCSCEta"),
36 ps.getParameter<std::vector<double> >(
"scaleRPCEta"),
37 ps.getParameter<int>(
"nbitPackingBrlRPCEta"),
38 ps.getParameter<bool>(
"signedPackingBrlRPCEta"),
39 ps.getParameter<int>(
"nbinsBrlRPCEta"),
40 ps.getParameter<int>(
"offsetBrlRPCEta"),
41 ps.getParameter<int>(
"nbitPackingFwdRPCEta"),
42 ps.getParameter<bool>(
"signedPackingFwdRPCEta"),
43 ps.getParameter<int>(
"nbinsFwdRPCEta"),
44 ps.getParameter<int>(
"offsetFwdRPCEta"),
53 std::vector<double>(1),
66 m_nbitPackingPhi(ps.getParameter<int>(
"nbitPackingPhi")),
67 m_nbitPackingEta(ps.getParameter<int>(
"nbitPackingGMTEta")),
68 m_nbinsEta(ps.getParameter<int>(
"nbinsGMTEta")),
69 m_signedPackingPhi(ps.getParameter<bool>(
"signedPackingPhi"))
118 using namespace edm::es;
123 vector<string> foreignKeys;
128 foreignKeys.push_back(etaKeyColumn);
129 foreignKeys.push_back(phiKeyColumn);
144 if( keysRecord.numberRows() != 1 )
147 "with scales key `" + objectKey +
"'");
153 keysRecord.fillVariable(etaKeyColumn, etaKeyValue);
154 keysRecord.fillVariable(phiKeyColumn, phiKeyValue);
156 vector<string> columns;
169 "L1T_SCALE_MUON_ETA",
171 "L1T_SCALE_MUON_ETA.ID",
175 vector<double> etaScales;
193 "L1T_SCALE_MUON_PHI",
195 "L1T_SCALE_MUON_PHI.ID",
203 boost::shared_ptr<L1MuTriggerScales> l1muscale =
bool fillVariable(const std::string &columnName, T &outputVariable) const
const QueryResults singleAttribute(const T &data) const
L1MuTriggerScalesOnlineProducer(const edm::ParameterSet &)
virtual boost::shared_ptr< L1MuTriggerScales > newObject(const std::string &objectKey)
static const string LowMarkColumn
void setGMTEtaScale(const L1MuSymmetricBinnedScale &scale)
set the GMT eta scale
unsigned int m_nbitPackingEta
static void pushColumnNames(vector< string > &columns)
static const string StepColumn
const QueryResults basicQuery(const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="") const
static double deg2rad(double deg)
l1t::OMDSReader m_omdsReader
void setPhiScale(const L1MuBinnedScale &scale)
set the phi scale
void pushColumnNames(std::vector< std::string > &columns)
unsigned int m_nbitPackingPhi
void extractScales(l1t::OMDSReader::QueryResults &record, std::vector< double > &destScales)
static const string BinsColumn
L1MuTriggerScales m_scales
static double rad2deg(double rad)
~L1MuTriggerScalesOnlineProducer()
static L1MuBinnedScale * makeBinnedScale(l1t::OMDSReader::QueryResults &record, int nBits, bool signedPacking)