42 if(type>3 && type!=7)
return true;
50 char slayer[80]; sprintf(slayer,
"Layer_%i", DBlayer);
51 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
52 char smodule[80]; sprintf(smodule,
"Module_%i", DBmodule);
54 std::ostringstream sfolder;
56 sfolder <<
rootFolder <<
"/" << subDetectorFolder;
58 sfolder <<
"/Shell_" <<DBshell
62 sfolder <<
"/" << sladder;
66 if(type==0) sfolder <<
"/" <<smodule;
73 }
else if (isUpgrade) {
75 if(type>3 && type!=7)
return true;
83 char slayer[80]; sprintf(slayer,
"Layer_%i", DBlayer);
84 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
85 char smodule[80]; sprintf(smodule,
"Module_%i", DBmodule);
87 std::ostringstream sfolder;
89 sfolder <<
rootFolder <<
"/" << subDetectorFolder;
91 sfolder <<
"/Shell_" <<DBshell
95 sfolder <<
"/" << sladder;
99 if(type==0) sfolder <<
"/" <<smodule;
116 if(type>0 && type < 4)
return true;
125 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
126 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
127 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
128 char smodule[80];sprintf(smodule,
"Module_%i",module);
130 std::ostringstream sfolder;
132 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
133 "/HalfCylinder_" << side <<
"/" << sdisk;
134 if(type==0 || type ==4){
135 sfolder <<
"/" << sblade;
138 sfolder <<
"/" << spanel <<
"/" << smodule;
149 }
else if (isUpgrade) {
151 if(type>0 && type < 4)
return true;
161 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
162 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
163 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
164 char smodule[80];sprintf(smodule,
"Module_%i",module);
166 std::ostringstream sfolder;
168 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
169 "/HalfCylinder_" << side <<
"/" << sdisk;
170 if(type==0 || type ==4){
171 sfolder <<
"/" << sblade;
174 sfolder <<
"/" << spanel <<
"/" << smodule;
186 <<
"[SiPixelFolderOrganizer::setModuleFolder] Not a Pixel detector DetId ";
208 if(type>3 && type!=7)
return true;
216 char slayer[80]; sprintf(slayer,
"Layer_%i", DBlayer);
217 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
218 char smodule[80]; sprintf(smodule,
"Module_%i", DBmodule);
220 std::ostringstream sfolder;
222 sfolder <<
rootFolder <<
"/" << subDetectorFolder;
224 sfolder <<
"/Shell_" <<DBshell
228 sfolder <<
"/" << sladder;
232 if(type==0) sfolder <<
"/" <<smodule;
239 }
else if (isUpgrade) {
241 if(type>3 && type!=7)
return true;
249 char slayer[80]; sprintf(slayer,
"Layer_%i", DBlayer);
250 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
251 char smodule[80]; sprintf(smodule,
"Module_%i", DBmodule);
253 std::ostringstream sfolder;
255 sfolder <<
rootFolder <<
"/" << subDetectorFolder;
257 sfolder <<
"/Shell_" <<DBshell
261 sfolder <<
"/" << sladder;
265 if(type==0) sfolder <<
"/" <<smodule;
282 if(type>0 && type < 4)
return true;
291 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
292 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
293 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
294 char smodule[80];sprintf(smodule,
"Module_%i",module);
296 std::ostringstream sfolder;
298 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
299 "/HalfCylinder_" << side <<
"/" << sdisk;
300 if(type==0 || type ==4){
301 sfolder <<
"/" << sblade;
304 sfolder <<
"/" << spanel <<
"/" << smodule;
315 }
else if (isUpgrade) {
317 if(type>0 && type < 4)
return true;
327 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
328 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
329 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
330 char smodule[80];sprintf(smodule,
"Module_%i",module);
332 std::ostringstream sfolder;
334 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
335 "/HalfCylinder_" << side <<
"/" << sdisk;
336 if(type==0 || type ==4){
337 sfolder <<
"/" << sblade;
340 sfolder <<
"/" << spanel <<
"/" << smodule;
352 <<
"[SiPixelFolderOrganizer::setModuleFolder] Not a Pixel detector DetId ";
361 std::string subDetectorFolder =
"AdditionalPixelErrors";
362 char sFed[80]; sprintf(sFed,
"FED_%i",FedId);
363 std::ostringstream sfolder;
365 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
"/" << sFed;
375 std::string subDetectorFolder =
"AdditionalPixelErrors";
376 char sFed[80]; sprintf(sFed,
"FED_%i",FedId);
377 std::ostringstream sfolder;
379 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
"/" << sFed;
401 char slayer[80]; sprintf(slayer,
"Layer_%i", DBlayer);
402 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
403 char smodule[80]; sprintf(smodule,
"Module_%i", DBmodule);
405 std::ostringstream sfolder;
406 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
"/Shell_" <<DBshell <<
"/" << slayer <<
"/" << sladder;
409 sfolder <<
"/" <<smodule;
410 path = sfolder.str().c_str();
426 char slayer[80]; sprintf(slayer,
"Layer_%i", DBlayer);
427 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
428 char smodule[80]; sprintf(smodule,
"Module_%i", DBmodule);
430 std::ostringstream sfolder;
431 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
"/Shell_" <<DBshell <<
"/" << slayer <<
"/" << sladder;
434 sfolder <<
"/" <<smodule;
435 path = sfolder.str().c_str();
452 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
453 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
454 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
455 char smodule[80];sprintf(smodule,
"Module_%i",module);
457 std::ostringstream sfolder;
458 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
"/HalfCylinder_" << side <<
"/" << sdisk <<
"/" << sblade <<
"/" << spanel <<
"/" << smodule;
459 path = sfolder.str().c_str();
472 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
473 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
474 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
475 char smodule[80];sprintf(smodule,
"Module_%i",module);
477 std::ostringstream sfolder;
478 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
"/HalfCylinder_" << side <<
"/" << sdisk <<
"/" << sblade <<
"/" << spanel <<
"/" << smodule;
479 path = sfolder.str().c_str();
484 <<
"[SiPixelFolderOrganizer::getModuleFolder] Not a Pixel detector DetId ";
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)
Constructor - getStore should be called false from multi-thread DQM applications. ...
void getModuleFolder(const uint32_t &rawdetid, std::string &path, bool isUpgrade)
tuple path
else: Piece not in the list, fine.
bool setModuleFolder(const uint32_t &rawdetid=0, int type=0, bool isUpgrade=false)
Set folder name for a module or plaquette.
int bladeName() const
blade id
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
int diskName() const
disk id
int ladderName() const
ladder id (index in phi)
void setCurrentFolder(const std::string &fullpath)
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
void setCurrentFolder(const std::string &fullpath)