|
|
Go to the documentation of this file.
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);
static L1MuBinnedScale * makeBinnedScale(l1t::OMDSReader::QueryResults &record, int nBits, bool signedPacking)
~L1MuTriggerScalesOnlineProducer() override
l1t::OMDSReader m_omdsReader
static const string LowMarkColumn
L1MuTriggerScales m_scales
void setGMTEtaScale(const L1MuSymmetricBinnedScale &scale)
set the GMT eta scale
static const string BinsColumn
const QueryResults singleAttribute(const T &data) const
static void pushColumnNames(vector< string > &columns)
L1MuTriggerScalesOnlineProducer(const edm::ParameterSet &)
unsigned int m_nbitPackingEta
bool fillVariable(const std::string &columnName, T &outputVariable) const
void setPhiScale(const L1MuBinnedScale &scale)
set the phi scale
unsigned int m_nbitPackingPhi
std::unique_ptr< L1MuTriggerScales > newObject(const std::string &objectKey) override
static double rad2deg(double rad)
persistency::Exception Exception
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="")
void pushColumnNames(std::vector< std::string > &columns)
void extractScales(l1t::OMDSReader::QueryResults &record, std::vector< double > &destScales)
static const string StepColumn
static double deg2rad(double deg)