- Int_t nstrC=20;
- Int_t nStripSec=nstrA+2*nstrB+2*nstrC;
-
- for (Int_t modnum=0; modnum < 1674; modnum++) {
-
- Int_t sector = modnum/nStripSec;
- Char_t string1[100];
- Char_t string2[100];
-
- Int_t icopy=-1;
-
- if(sector<3){
- icopy=sector+1;
- sprintf(string1,"/ALIC_1/B077_1/B075_%i/BTO3_1",icopy);
- }
- else if(sector<11){
- icopy=sector-2;
- sprintf(string1,"/ALIC_1/B077_1/B071_%i/BTO1_1",icopy);
- }
- else if(sector==11 || sector==12){
- icopy=sector-10;
- sprintf(string1,"/ALIC_1/B077_1/B074_%i/BTO2_1",icopy);
- }
- else {
- icopy=sector-4;
- sprintf(string1,"/ALIC_1/B077_1/B071_%i/BTO1_1",icopy);
- }
-
- Int_t strInSec=modnum%nStripSec;
-
- if( strInSec < nstrC){
- icopy= nstrC - (strInSec+1) + 1;
- sprintf(string2,"FTOC_1/FLTC_0/FSTR_%i",icopy);
- }
- else if(strInSec< nstrC+nstrB){
-
- icopy= nstrB - (strInSec-nstrC+1) + 1;
- sprintf(string2,"FTOB_1/FLTB_0/FSTR_%i",icopy);
-
- }
- else if(strInSec< nstrC+nstrB+nstrA){
-
- icopy= strInSec-(nstrC+nstrB)+1;
- sprintf(string2,"FTOA_0/FLTA_0/FSTR_%i",icopy);
- }
- else if(strInSec< nstrC+2*nstrB+nstrA){
-
- icopy= strInSec-(nstrC+nstrB+nstrA)+1;
- sprintf(string2,"FTOB_2/FLTB_0/FSTR_%i",icopy);
-
+ Int_t nstrC=19;
+ Int_t nSectors=18;
+ Int_t nStrips=nstrA+2*nstrB+2*nstrC;
+
+ TString snSM = "TOF/sm";
+ TString snSTRIP = "/strip";
+
+ for (Int_t isect = 0; isect < nSectors; isect++) {
+ for (Int_t istr = 1; istr <= nStrips; istr++) {
+ symname = snSM;
+ symname += Form("%02d",isect);
+ symname += snSTRIP;
+ symname += Form("%02d",istr);
+ fgVolPath[kTOF-kFirstLayer][modnum] = symname.Data();
+ modnum++;