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;
92 mask = tTopo->
pxfDetId(max, DISK, BLADE, PANEL, MODULE).
rawId();
94 mask = tTopo->
pxfDetId(SIDE, max, BLADE, PANEL, MODULE).
rawId();
96 mask = tTopo->
pxfDetId(SIDE, DISK, max, PANEL, MODULE).
rawId();
98 mask = tTopo->
pxfDetId(SIDE, DISK, BLADE, max, MODULE).
rawId();
100 mask = tTopo->
pxfDetId(SIDE, DISK, BLADE, PANEL, max).
rawId();
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");
116 edm::LogPrint(
"SiPixelDynamicInefficiencyDB") <<
"Putting Pixel geom BPix layer " << layer <<
" ladder " << ladder
117 <<
" module " << module <<
" factor " << factor << std::endl;
119 }
else if (det ==
"fpix") {
120 DetId detID = tTopo->
pxfDetId(side, disk, blade, panel, module);
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 "
145 << factor << std::endl;
147 }
else if (det ==
"fpix") {
148 DetId detID = tTopo->
pxfDetId(side, disk, blade, panel, module);
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");
171 edm::LogPrint(
"SiPixelDynamicInefficiencyDB") <<
"Putting Chip geom BPix layer " << layer <<
" ladder " << ladder
172 <<
" module " << module <<
" factor " << factor << std::endl;
174 }
else if (det ==
"fpix") {
175 DetId detID = tTopo->
pxfDetId(side, disk, blade, panel, module);
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") {
203 DetId detID = tTopo->
pxfDetId(side, disk, blade, panel, module);
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 &)
Parameters theColGeomFactors_
constexpr uint32_t rawId() const
get the raw id
Log< level::Error, false > LogError
DetId pxfDetId(uint32_t side, uint32_t disk, uint32_t blade, uint32_t panel, uint32_t module) const
void createOneIOV(const T &payload, cond::Time_t firstSinceTime, const std::string &recordName)
constexpr std::array< uint8_t, layerIndexSize > layer
void appendOneIOV(const T &payload, cond::Time_t sinceTime, const std::string &recordName)
Parameters thePUEfficiency_
bool isNewTagRequest(const std::string &recordName)
Parameters theChipGeomFactors_
cond::Time_t beginOfTime() const
char const * what() const noexceptoverride
bool puttheInstLumiScaleFactor(double &)
Log< level::Warning, true > LogPrint
cond::Time_t currentTime() const
Parameters thePixelGeomFactors_
DetId pxbDetId(uint32_t layer, uint32_t ladder, uint32_t module) const
bool putPixelGeomFactor(const uint32_t &, double &)
double theInstLumiScaleFactor_