21 m_scales(ps.getParameter<int>(
"nbitPackingDTEta"),
22 ps.getParameter<bool>(
"signedPackingDTEta"),
23 ps.getParameter<int>(
"nbinsDTEta"),
24 ps.getParameter<double>(
"minDTEta"),
25 ps.getParameter<double>(
"maxDTEta"),
26 ps.getParameter<int>(
"offsetDTEta"),
28 ps.getParameter<int>(
"nbitPackingCSCEta"),
29 ps.getParameter<int>(
"nbinsCSCEta"),
30 ps.getParameter<double>(
"minCSCEta"),
31 ps.getParameter<double>(
"maxCSCEta"),
33 ps.getParameter<std::
vector<double> >(
"scaleRPCEta"),
34 ps.getParameter<int>(
"nbitPackingBrlRPCEta"),
35 ps.getParameter<bool>(
"signedPackingBrlRPCEta"),
36 ps.getParameter<int>(
"nbinsBrlRPCEta"),
37 ps.getParameter<int>(
"offsetBrlRPCEta"),
38 ps.getParameter<int>(
"nbitPackingFwdRPCEta"),
39 ps.getParameter<bool>(
"signedPackingFwdRPCEta"),
40 ps.getParameter<int>(
"nbinsFwdRPCEta"),
41 ps.getParameter<int>(
"offsetFwdRPCEta"),
62 m_nbitPackingPhi(ps.getParameter<int>(
"nbitPackingPhi")),
63 m_nbitPackingEta(ps.getParameter<int>(
"nbitPackingGMTEta")),
64 m_nbinsEta(ps.getParameter<int>(
"nbinsGMTEta")),
65 m_signedPackingPhi(ps.getParameter<bool>(
"signedPackingPhi")) {}
92 static double deg2rad(
double deg) {
return deg *
M_PI / 180.0; }
93 static double rad2deg(
double rad) {
return rad /
M_PI * 180.0; }
109 vector<string> foreignKeys;
114 foreignKeys.push_back(etaKeyColumn);
115 foreignKeys.push_back(phiKeyColumn);
132 "Problem finding L1MuTriggerScales associated "
133 "with scales key `" +
154 "L1T_SCALE_MUON_ETA",
156 "L1T_SCALE_MUON_ETA.ID",
160 vector<double> etaScales;
163 unique_ptr<L1MuSymmetricBinnedScale> ptrEtaScale(
178 "L1T_SCALE_MUON_PHI",
180 "L1T_SCALE_MUON_PHI.ID",
188 return std::make_unique<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
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)
std::unique_ptr< L1MuTriggerScales > newObject(const std::string &objectKey) override
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)