194 int halfcylinder = 0;
203 int nbinHalfcylinder = 168;
208 vector<string> subDirVector;
211 for (vector<string>::const_iterator it = subDirVector.begin();
212 it != subDirVector.end(); it++) {
213 if((*it).find(
"Collector") != string::npos ||
215 (*it).find(
"FU") != string::npos ||
216 (*it).find(
"Pixel") != string::npos ||
217 (*it).find(
"Barrel") != string::npos ||
218 (*it).find(
"Endcap") != string::npos)
continue;
220 if((*it).find(
"Module") != string::npos){
221 module = atoi((*it).substr((*it).find(
"_")+1).c_str());
224 if((*it).find(
"Shell") != string::npos){
225 if((*it).find(
"mI") != string::npos) shell = 1;
226 if((*it).find(
"mO") != string::npos) shell = 2;
227 if((*it).find(
"pI") != string::npos) shell = 3;
228 if((*it).find(
"pO") != string::npos) shell = 4;
230 if((*it).find(
"Layer") != string::npos){
231 layer = atoi((*it).substr((*it).find(
"_")+1).c_str());
242 if((*it).find(
"Ladder") != string::npos){
243 ladder = atoi((*it).substr((*it).find(
"_")+1,2).c_str());
245 if((*it).find(
"HalfCylinder") != string::npos){
246 if((*it).find(
"mI") != string::npos) halfcylinder = 1;
247 if((*it).find(
"mO") != string::npos) halfcylinder = 2;
248 if((*it).find(
"pI") != string::npos) halfcylinder = 3;
249 if((*it).find(
"pO") != string::npos) halfcylinder = 4;
251 if((*it).find(
"Disk") != string::npos){
252 disk = atoi((*it).substr((*it).find(
"_")+1).c_str());
254 if((*it).find(
"Blade") != string::npos){
255 blade = atoi((*it).substr((*it).find(
"_")+1,2).c_str());
257 if((*it).find(
"Panel") != string::npos){
258 panel = atoi((*it).substr((*it).find(
"_")+1).c_str());
259 if(panel==1) nbinPanel = 0;
260 if(panel==2) nbinPanel = 4;
263 if(module_path.find(
"Barrel") != string::npos){
264 module_bin = module +
265 (ladder-1)*nbinLadder +
267 (shell -1)*nbinShell;
269 if(module_path.find(
"Endcap") != string::npos){
270 module_bin = module +
271 (panel -1)*nbinPanel +
272 (blade -1)*nbinBlade +
274 (halfcylinder-1)*nbinHalfcylinder;
static void split(const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ")