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"))
116 using namespace edm::es;
121 vector<string> foreignKeys;
126 foreignKeys.push_back(etaKeyColumn);
127 foreignKeys.push_back(phiKeyColumn);
142 if( keysRecord.numberRows() != 1 )
145 "with scales key `" + objectKey +
"'");
151 keysRecord.fillVariable(etaKeyColumn, etaKeyValue);
152 keysRecord.fillVariable(phiKeyColumn, phiKeyValue);
154 vector<string> columns;
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 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
volatile std::atomic< bool > shutdown_flag false
static double rad2deg(double rad)
~L1MuTriggerScalesOnlineProducer()
static L1MuBinnedScale * makeBinnedScale(l1t::OMDSReader::QueryResults &record, int nBits, bool signedPacking)