40 if (type > 3 && type != 7)
50 sprintf(slayer,
"Layer_%i", DBlayer);
52 sprintf(sladder,
"Ladder_%02i", DBladder);
54 sprintf(smodule,
"Module_%i", DBmodule);
56 std::ostringstream sfolder;
60 sfolder <<
"/Shell_" << DBshell <<
"/" << slayer;
63 sfolder <<
"/" << sladder;
70 sfolder <<
"/" << smodule;
78 }
else if (isUpgrade) {
80 if (type > 3 && type != 7)
90 sprintf(slayer,
"Layer_%i", DBlayer);
92 sprintf(sladder,
"Ladder_%02i", DBladder);
94 sprintf(smodule,
"Module_%i", DBmodule);
96 std::ostringstream sfolder;
100 sfolder <<
"/Shell_" << DBshell <<
"/" << slayer;
103 sfolder <<
"/" << sladder;
110 sfolder <<
"/" << smodule;
127 if (type > 0 && type < 4)
138 sprintf(sdisk,
"Disk_%i", disk);
140 sprintf(sblade,
"Blade_%02i", blade);
142 sprintf(spanel,
"Panel_%i", panel);
144 sprintf(smodule,
"Module_%i", module);
146 std::ostringstream sfolder;
148 sfolder <<
topFolderName <<
"/" << subDetectorFolder <<
"/HalfCylinder_" << side <<
"/" << sdisk;
149 if (type == 0 || type == 4) {
150 sfolder <<
"/" << sblade;
153 sfolder <<
"/" << spanel <<
"/" << smodule;
165 }
else if (isUpgrade) {
167 if (type > 0 && type < 4)
178 sprintf(sdisk,
"Disk_%i", disk);
180 sprintf(sblade,
"Blade_%02i", blade);
182 sprintf(spanel,
"Panel_%i", panel);
184 sprintf(smodule,
"Module_%i", module);
186 std::ostringstream sfolder;
188 sfolder <<
topFolderName <<
"/" << subDetectorFolder <<
"/HalfCylinder_" << side <<
"/" << sdisk;
189 if (type == 0 || type == 4) {
190 sfolder <<
"/" << sblade;
193 sfolder <<
"/" << spanel <<
"/" << smodule;
206 throw cms::Exception(
"LogicError") <<
"[SiPixelFolderOrganizer::setModuleFolder] Not a Pixel detector " 214 const uint32_t &rawdetid,
229 if (type > 3 && type != 7)
239 sprintf(slayer,
"Layer_%i", DBlayer);
241 sprintf(sladder,
"Ladder_%02i", DBladder);
243 sprintf(smodule,
"Module_%i", DBmodule);
245 std::ostringstream sfolder;
249 sfolder <<
"/Shell_" << DBshell <<
"/" << slayer;
252 sfolder <<
"/" << sladder;
259 sfolder <<
"/" << smodule;
267 }
else if (isUpgrade) {
269 if (type > 3 && type != 7)
279 sprintf(slayer,
"Layer_%i", DBlayer);
281 sprintf(sladder,
"Ladder_%02i", DBladder);
283 sprintf(smodule,
"Module_%i", DBmodule);
285 std::ostringstream sfolder;
289 sfolder <<
"/Shell_" << DBshell <<
"/" << slayer;
292 sfolder <<
"/" << sladder;
299 sfolder <<
"/" << smodule;
316 if (type > 0 && type < 4)
327 sprintf(sdisk,
"Disk_%i", disk);
329 sprintf(sblade,
"Blade_%02i", blade);
331 sprintf(spanel,
"Panel_%i", panel);
333 sprintf(smodule,
"Module_%i", module);
335 std::ostringstream sfolder;
337 sfolder <<
topFolderName <<
"/" << subDetectorFolder <<
"/HalfCylinder_" << side <<
"/" << sdisk;
338 if (type == 0 || type == 4) {
339 sfolder <<
"/" << sblade;
342 sfolder <<
"/" << spanel <<
"/" << smodule;
354 }
else if (isUpgrade) {
356 if (type > 0 && type < 4)
367 sprintf(sdisk,
"Disk_%i", disk);
369 sprintf(sblade,
"Blade_%02i", blade);
371 sprintf(spanel,
"Panel_%i", panel);
373 sprintf(smodule,
"Module_%i", module);
375 std::ostringstream sfolder;
377 sfolder <<
topFolderName <<
"/" << subDetectorFolder <<
"/HalfCylinder_" << side <<
"/" << sdisk;
378 if (type == 0 || type == 4) {
379 sfolder <<
"/" << sblade;
382 sfolder <<
"/" << spanel <<
"/" << smodule;
395 throw cms::Exception(
"LogicError") <<
"[SiPixelFolderOrganizer::setModuleFolder] Not a Pixel detector " 403 std::string subDetectorFolder =
"AdditionalPixelErrors";
405 sprintf(sFed,
"FED_%i", FedId);
406 std::ostringstream sfolder;
408 sfolder <<
topFolderName <<
"/" << subDetectorFolder <<
"/" << sFed;
416 std::string subDetectorFolder =
"AdditionalPixelErrors";
418 sprintf(sFed,
"FED_%i", FedId);
419 std::ostringstream sfolder;
421 sfolder <<
topFolderName <<
"/" << subDetectorFolder <<
"/" << sFed;
440 sprintf(slayer,
"Layer_%i", DBlayer);
442 sprintf(sladder,
"Ladder_%02i", DBladder);
444 sprintf(smodule,
"Module_%i", DBmodule);
446 std::ostringstream sfolder;
447 sfolder <<
topFolderName <<
"/" << subDetectorFolder <<
"/Shell_" << DBshell <<
"/" << slayer <<
"/" << sladder;
452 sfolder <<
"/" << smodule;
453 path = sfolder.str();
470 sprintf(slayer,
"Layer_%i", DBlayer);
472 sprintf(sladder,
"Ladder_%02i", DBladder);
474 sprintf(smodule,
"Module_%i", DBmodule);
476 std::ostringstream sfolder;
477 sfolder <<
topFolderName <<
"/" << subDetectorFolder <<
"/Shell_" << DBshell <<
"/" << slayer <<
"/" << sladder;
482 sfolder <<
"/" << smodule;
483 path = sfolder.str();
501 sprintf(sdisk,
"Disk_%i", disk);
503 sprintf(sblade,
"Blade_%02i", blade);
505 sprintf(spanel,
"Panel_%i", panel);
507 sprintf(smodule,
"Module_%i", module);
509 std::ostringstream sfolder;
510 sfolder <<
topFolderName <<
"/" << subDetectorFolder <<
"/HalfCylinder_" << side <<
"/" << sdisk <<
"/" << sblade
511 <<
"/" << spanel <<
"/" << smodule;
512 path = sfolder.str();
527 sprintf(sdisk,
"Disk_%i", disk);
529 sprintf(sblade,
"Blade_%02i", blade);
531 sprintf(spanel,
"Panel_%i", panel);
533 sprintf(smodule,
"Module_%i", module);
535 std::ostringstream sfolder;
536 sfolder <<
topFolderName <<
"/" << subDetectorFolder <<
"/HalfCylinder_" << side <<
"/" << sdisk <<
"/" << sblade
537 <<
"/" << spanel <<
"/" << smodule;
538 path = sfolder.str();
544 throw cms::Exception(
"LogicError") <<
"[SiPixelFolderOrganizer::getModuleFolder] Not a Pixel detector " int plaquetteName() const
plaquetteId (in pannel)
int moduleName() const
module id (index in z)
int plaquetteName() const
plaquetteId (in pannel)
int bladeName() const
blade id
bool setFedFolder(const uint32_t FedId)
Set folder name for a FED (used in the case of errors without detId)
SiPixelFolderOrganizer(bool getStore=true)
DQM and Framework services.
void getModuleFolder(const uint32_t &rawdetid, std::string &path, bool isUpgrade)
void setCurrentFolder(std::string const &fullpath)
bool setModuleFolder(const uint32_t &rawdetid=0, int type=0, bool isUpgrade=false)
Set folder name for a module or plaquette.
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
int bladeName() const
blade id
int diskName() const
disk id
void setCurrentFolder(std::string const &fullpath)
std::string topFolderName
int ladderName() const
ladder id (index in phi)
int ladderName() const
ladder id (index in phi)
int moduleName() const
module id (index in z)
int layerName() const
layer id
int pannelName() const
pannel id
int diskName() const
disk id
virtual ~SiPixelFolderOrganizer()
Destructor.
HalfCylinder halfCylinder() const
HalfCylinder halfCylinder() const
int pannelName() const
pannel id
int layerName() const
layer id