38 if(type>3 && type!=7)
return true;
46 char slayer[80]; sprintf(slayer,
"Layer_%i", DBlayer);
47 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
48 char smodule[80]; sprintf(smodule,
"Module_%i", DBmodule);
50 std::ostringstream sfolder;
52 sfolder <<
rootFolder <<
"/" << subDetectorFolder;
54 sfolder <<
"/Shell_" <<DBshell
58 sfolder <<
"/" << sladder;
62 if(type==0) sfolder <<
"/" <<smodule;
76 if(type>0 && type < 4)
return true;
85 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
86 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
87 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
88 char smodule[80];sprintf(smodule,
"Module_%i",module);
90 std::ostringstream sfolder;
92 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
93 "/HalfCylinder_" << side <<
"/" << sdisk;
94 if(type==0 || type ==4){
95 sfolder <<
"/" << sblade;
98 sfolder <<
"/" << spanel <<
"/" << smodule;
110 <<
"[SiPixelFolderOrganizer::setModuleFolder] Not a Pixel detector DetId ";
118 std::string subDetectorFolder =
"AdditionalPixelErrors";
119 char sFed[80]; sprintf(sFed,
"FED_%i",FedId);
120 std::ostringstream sfolder;
122 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
"/" << sFed;
144 char slayer[80]; sprintf(slayer,
"Layer_%i", DBlayer);
145 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
146 char smodule[80]; sprintf(smodule,
"Module_%i", DBmodule);
148 std::ostringstream sfolder;
149 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
"/Shell_" <<DBshell <<
"/" << slayer <<
"/" << sladder;
152 sfolder <<
"/" <<smodule;
153 path = sfolder.str().c_str();
170 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
171 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
172 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
173 char smodule[80];sprintf(smodule,
"Module_%i",module);
175 std::ostringstream sfolder;
176 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
"/HalfCylinder_" << side <<
"/" << sdisk <<
"/" << sblade <<
"/" << spanel <<
"/" << smodule;
177 path = sfolder.str().c_str();
182 <<
"[SiPixelFolderOrganizer::getModuleFolder] Not a Pixel detector DetId ";
int plaquetteName() const
plaquetteId (in pannel)
int moduleName() const
module id (index in z)
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)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
int ladderName() const
ladder id (index in phi)
void getModuleFolder(const uint32_t &rawdetid, std::string &path)
int layerName() const
layer id
int pannelName() const
pannel id
SiPixelFolderOrganizer()
Constructor.
int diskName() const
disk id
virtual ~SiPixelFolderOrganizer()
Destructor.
HalfCylinder halfCylinder() const
void setCurrentFolder(const std::string &fullpath)
bool setModuleFolder(const uint32_t &rawdetid=0, int type=0)
Set folder name for a module or plaquette.