77 uint32_t
ladder, LADDER = 0;
79 uint32_t side, SIDE = 0;
80 uint32_t disk,
DISK = 0;
81 uint32_t blade, BLADE = 0;
82 uint32_t panel, PANEL = 0;
105 string det = it->getParameter<
string>(
"det");
106 it->exists(
"layer") ?
layer = it->getParameter<
unsigned int>(
"layer") :
layer =
LAYER;
107 it->exists(
"ladder") ?
ladder = it->getParameter<
unsigned int>(
"ladder") :
ladder = LADDER;
108 it->exists(
"module") ?
module = it->getParameter<
unsigned int>(
"module") :
module =
MODULE;
109 it->exists(
"side") ? side = it->getParameter<
unsigned int>(
"side") : side = SIDE;
110 it->exists(
"disk") ? disk = it->getParameter<
unsigned int>(
"disk") : disk =
DISK;
111 it->exists(
"blade") ? blade = it->getParameter<
unsigned int>(
"blade") : blade = BLADE;
112 it->exists(
"panel") ? panel = it->getParameter<
unsigned int>(
"panel") : panel = PANEL;
113 double factor = it->getParameter<
double>(
"factor");
117 <<
" module " <<
module <<
" factor " <<
factor << std::endl;
119 }
else if (det ==
"fpix") {
122 <<
"Putting Pixel geom FPix side " << side <<
" disk " << disk <<
" blade " << blade <<
" panel " << panel
123 <<
" module " <<
module <<
" factor " <<
factor << std::endl;
127 <<
"SiPixelDynamicInefficiencyDB input detector part is neither bpix nor fpix" << std::endl;
132 string det = it->getParameter<
string>(
"det");
133 it->exists(
"layer") ?
layer = it->getParameter<
unsigned int>(
"layer") :
layer =
LAYER;
134 it->exists(
"ladder") ?
ladder = it->getParameter<
unsigned int>(
"ladder") :
ladder = LADDER;
135 it->exists(
"module") ?
module = it->getParameter<
unsigned int>(
"module") :
module =
MODULE;
136 it->exists(
"side") ? side = it->getParameter<
unsigned int>(
"side") : side = SIDE;
137 it->exists(
"disk") ? disk = it->getParameter<
unsigned int>(
"disk") : disk =
DISK;
138 it->exists(
"blade") ? blade = it->getParameter<
unsigned int>(
"blade") : blade = BLADE;
139 it->exists(
"panel") ? panel = it->getParameter<
unsigned int>(
"panel") : panel = PANEL;
140 double factor = it->getParameter<
double>(
"factor");
144 <<
"Putting Column geom BPix layer " <<
layer <<
" ladder " <<
ladder <<
" module " <<
module <<
" factor " 147 }
else if (det ==
"fpix") {
150 <<
"Putting Column geom FPix side " << side <<
" disk " << disk <<
" blade " << blade <<
" panel " << panel
151 <<
" module " <<
module <<
" factor " <<
factor << std::endl;
155 <<
"SiPixelDynamicInefficiencyDB input detector part is neither bpix nor fpix" << std::endl;
160 string det = it->getParameter<
string>(
"det");
161 it->exists(
"layer") ?
layer = it->getParameter<
unsigned int>(
"layer") :
layer =
LAYER;
162 it->exists(
"ladder") ?
ladder = it->getParameter<
unsigned int>(
"ladder") :
ladder = LADDER;
163 it->exists(
"module") ?
module = it->getParameter<
unsigned int>(
"module") :
module =
MODULE;
164 it->exists(
"side") ? side = it->getParameter<
unsigned int>(
"side") : side = SIDE;
165 it->exists(
"disk") ? disk = it->getParameter<
unsigned int>(
"disk") : disk =
DISK;
166 it->exists(
"blade") ? blade = it->getParameter<
unsigned int>(
"blade") : blade = BLADE;
167 it->exists(
"panel") ? panel = it->getParameter<
unsigned int>(
"panel") : panel = PANEL;
168 double factor = it->getParameter<
double>(
"factor");
172 <<
" module " <<
module <<
" factor " <<
factor << std::endl;
174 }
else if (det ==
"fpix") {
177 <<
"Putting Chip geom FPix side " << side <<
" disk " << disk <<
" blade " << blade <<
" panel " << panel
178 <<
" module " <<
module <<
" factor " <<
factor << std::endl;
182 <<
"SiPixelDynamicInefficiencyDB input detector part is neither bpix nor fpix" << std::endl;
187 string det = it->getParameter<
string>(
"det");
188 it->exists(
"layer") ?
layer = it->getParameter<
unsigned int>(
"layer") :
layer =
LAYER;
189 it->exists(
"ladder") ?
ladder = it->getParameter<
unsigned int>(
"ladder") :
ladder = LADDER;
190 it->exists(
"module") ?
module = it->getParameter<
unsigned int>(
"module") :
module =
MODULE;
191 it->exists(
"side") ? side = it->getParameter<
unsigned int>(
"side") : side = SIDE;
192 it->exists(
"disk") ? disk = it->getParameter<
unsigned int>(
"disk") : disk =
DISK;
193 it->exists(
"blade") ? blade = it->getParameter<
unsigned int>(
"blade") : blade = BLADE;
194 it->exists(
"panel") ? panel = it->getParameter<
unsigned int>(
"panel") : panel = PANEL;
195 std::vector<double>
factor = it->getParameter<std::vector<double> >(
"factor");
199 <<
"Putting PU efficiency BPix layer " <<
layer <<
" ladder " <<
ladder <<
" module " <<
module 200 <<
" factor size " <<
factor.size() << std::endl;
202 }
else if (det ==
"fpix") {
205 <<
"Putting PU efficiency FPix side " << side <<
" disk " << disk <<
" blade " << blade <<
" panel " << panel
206 <<
" module " <<
module <<
" factor size " <<
factor.size() << std::endl;
226 edm::LogError(
"SiPixelDynamicInefficiencyDB") <<
"caught std::exception " << er.what() << std::endl;
228 edm::LogError(
"SiPixelDynamicInefficiencyDB") <<
"Funny error" << std::endl;
231 edm::LogError(
"SiPixelDynamicInefficiencyDB") <<
"Service is unavailable" << std::endl;
Base exception class for the object to relational access.
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tkTopoToken_
bool putPUFactor(const uint32_t &, std::vector< double > &)
bool putDetIdmask(uint32_t &)
bool putChipGeomFactor(const uint32_t &, double &)
bool putColGeomFactor(const uint32_t &, double &)
cond::Time_t beginOfTime() const
Parameters theColGeomFactors_
Log< level::Error, false > LogError
void createOneIOV(const T &payload, cond::Time_t firstSinceTime, const std::string &recordName)
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
void appendOneIOV(const T &payload, cond::Time_t sinceTime, const std::string &recordName)
Parameters thePUEfficiency_
bool isNewTagRequest(const std::string &recordName)
cond::Time_t currentTime() const
Parameters theChipGeomFactors_
bool puttheInstLumiScaleFactor(double &)
Log< level::Warning, true > LogPrint
DetId pxbDetId(uint32_t layer, uint32_t ladder, uint32_t module) const
DetId pxfDetId(uint32_t side, uint32_t disk, uint32_t blade, uint32_t panel, uint32_t module) const
constexpr uint32_t rawId() const
get the raw id
Parameters thePixelGeomFactors_
char const * what() const noexcept override
bool putPixelGeomFactor(const uint32_t &, double &)
double theInstLumiScaleFactor_