41 if(type>3 && type!=7)
return true;
49 char slayer[80]; sprintf(slayer,
"Layer_%i", DBlayer);
50 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
51 char smodule[80]; sprintf(smodule,
"Module_%i", DBmodule);
53 std::ostringstream sfolder;
55 sfolder <<
rootFolder <<
"/" << subDetectorFolder;
57 sfolder <<
"/Shell_" <<DBshell
61 sfolder <<
"/" << sladder;
65 if(type==0) sfolder <<
"/" <<smodule;
72 }
else if (isUpgrade) {
74 if(type>3 && type!=7)
return true;
82 char slayer[80]; sprintf(slayer,
"Layer_%i", DBlayer);
83 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
84 char smodule[80]; sprintf(smodule,
"Module_%i", DBmodule);
86 std::ostringstream sfolder;
88 sfolder <<
rootFolder <<
"/" << subDetectorFolder;
90 sfolder <<
"/Shell_" <<DBshell
94 sfolder <<
"/" << sladder;
98 if(type==0) sfolder <<
"/" <<smodule;
115 if(type>0 && type < 4)
return true;
124 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
125 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
126 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
127 char smodule[80];sprintf(smodule,
"Module_%i",module);
129 std::ostringstream sfolder;
131 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
132 "/HalfCylinder_" << side <<
"/" << sdisk;
133 if(type==0 || type ==4){
134 sfolder <<
"/" << sblade;
137 sfolder <<
"/" << spanel <<
"/" << smodule;
148 }
else if (isUpgrade) {
150 if(type>0 && type < 4)
return true;
160 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
161 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
162 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
163 char smodule[80];sprintf(smodule,
"Module_%i",module);
165 std::ostringstream sfolder;
167 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
168 "/HalfCylinder_" << side <<
"/" << sdisk;
169 if(type==0 || type ==4){
170 sfolder <<
"/" << sblade;
173 sfolder <<
"/" << spanel <<
"/" << smodule;
185 <<
"[SiPixelFolderOrganizer::setModuleFolder] Not a Pixel detector DetId ";
193 std::string subDetectorFolder =
"AdditionalPixelErrors";
194 char sFed[80]; sprintf(sFed,
"FED_%i",FedId);
195 std::ostringstream sfolder;
197 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
"/" << sFed;
219 char slayer[80]; sprintf(slayer,
"Layer_%i", DBlayer);
220 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
221 char smodule[80]; sprintf(smodule,
"Module_%i", DBmodule);
223 std::ostringstream sfolder;
224 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
"/Shell_" <<DBshell <<
"/" << slayer <<
"/" << sladder;
227 sfolder <<
"/" <<smodule;
228 path = sfolder.str().c_str();
244 char slayer[80]; sprintf(slayer,
"Layer_%i", DBlayer);
245 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
246 char smodule[80]; sprintf(smodule,
"Module_%i", DBmodule);
248 std::ostringstream sfolder;
249 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
"/Shell_" <<DBshell <<
"/" << slayer <<
"/" << sladder;
252 sfolder <<
"/" <<smodule;
253 path = sfolder.str().c_str();
270 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
271 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
272 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
273 char smodule[80];sprintf(smodule,
"Module_%i",module);
275 std::ostringstream sfolder;
276 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
"/HalfCylinder_" << side <<
"/" << sdisk <<
"/" << sblade <<
"/" << spanel <<
"/" << smodule;
277 path = sfolder.str().c_str();
290 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
291 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
292 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
293 char smodule[80];sprintf(smodule,
"Module_%i",module);
295 std::ostringstream sfolder;
296 sfolder <<
rootFolder <<
"/" << subDetectorFolder <<
"/HalfCylinder_" << side <<
"/" << sdisk <<
"/" << sblade <<
"/" << spanel <<
"/" << smodule;
297 path = sfolder.str().c_str();
302 <<
"[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)
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)
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
SiPixelFolderOrganizer()
Constructor.
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)