22 ps.getParameter<
int>(
"nbitPackingDTEta"),
23 ps.getParameter<
bool>(
"signedPackingDTEta"),
24 ps.getParameter<
int>(
"nbinsDTEta"),
25 ps.getParameter<double>(
"minDTEta"),
26 ps.getParameter<double>(
"maxDTEta"),
27 ps.getParameter<
int>(
"offsetDTEta"),
29 ps.getParameter<
int>(
"nbitPackingCSCEta"),
30 ps.getParameter<
int>(
"nbinsCSCEta"),
31 ps.getParameter<double>(
"minCSCEta"),
32 ps.getParameter<double>(
"maxCSCEta"),
34 ps.getParameter<
std::vector<double> >(
"scaleRPCEta"),
35 ps.getParameter<
int>(
"nbitPackingBrlRPCEta"),
36 ps.getParameter<
bool>(
"signedPackingBrlRPCEta"),
37 ps.getParameter<
int>(
"nbinsBrlRPCEta"),
38 ps.getParameter<
int>(
"offsetBrlRPCEta"),
39 ps.getParameter<
int>(
"nbitPackingFwdRPCEta"),
40 ps.getParameter<
bool>(
"signedPackingFwdRPCEta"),
41 ps.getParameter<
int>(
"nbinsFwdRPCEta"),
42 ps.getParameter<
int>(
"offsetFwdRPCEta"),
51 std::vector<double>(1),
64 m_nbitPackingPhi(ps.getParameter<
int>(
"nbitPackingPhi")),
65 m_nbitPackingEta(ps.getParameter<
int>(
"nbitPackingGMTEta")),
66 m_nbinsEta(ps.getParameter<
int>(
"nbinsGMTEta")),
67 m_signedPackingPhi(ps.getParameter<
bool>(
"signedPackingPhi"))
90 nbins, deg2rad(lowMark),
91 deg2rad(lowMark + nbins*step));
96 columns.push_back(BinsColumn);
97 columns.push_back(LowMarkColumn);
98 columns.push_back(StepColumn);
121 vector<string> foreignKeys;
126 foreignKeys.push_back(etaKeyColumn);
127 foreignKeys.push_back(phiKeyColumn);
145 "with scales key `" + objectKey +
"'");
167 "L1T_SCALE_MUON_ETA",
169 "L1T_SCALE_MUON_ETA.ID",
173 vector<double> etaScales;
191 "L1T_SCALE_MUON_PHI",
193 "L1T_SCALE_MUON_PHI.ID",
201 return std::make_shared<L1MuTriggerScales>(
m_scales);
persistency::Exception Exception
bool fillVariable(const std::string &columnName, T &outputVariable) const
const QueryResults singleAttribute(const T &data) const
~L1MuTriggerScalesOnlineProducer() override
L1MuTriggerScalesOnlineProducer(const edm::ParameterSet &)
static const string LowMarkColumn
void setGMTEtaScale(const L1MuSymmetricBinnedScale &scale)
set the GMT eta scale
unsigned int m_nbitPackingEta
std::shared_ptr< L1MuTriggerScales > newObject(const std::string &objectKey) override
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="")
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)
static L1MuBinnedScale * makeBinnedScale(l1t::OMDSReader::QueryResults &record, int nBits, bool signedPacking)