- ycoor = -hTof/2.+ kspace;//2 cm over front plate
-
- // Plate B
-
- nrot = 0;
- Int_t i=1; // AdC
- upDown = 1;
- Float_t deadRegion = 1.0;//cm
-
- zpos = zcoor - (zSenStrip/2)/TMath::Cos(ang)-
- upDown*gap*TMath::Tan(ang)-
- (zSenStrip/2)/TMath::Cos(ang)-
- deadRegion/TMath::Cos(ang);
-
- ang = atan(zpos/radius);
- ang *= kRaddeg;
- AliMatrix (idrotm[nrot], 90., 0., 90.-ang,90.,ang, 270.);
- ang /= kRaddeg;
- ycoor = -hTof*0.5+ kspace ; //2 cm over front plate
- ycoor += (1-(upDown+1)/2)*gap;
- zcoor = zpos+(zFLTA*0.5+zFLTB*0.5+db); // Moves to the system of the modulus FLTB
- gMC->Gspos("FSTR",i, "FLTB", 0., ycoor, zcoor,idrotm[nrot], "ONLY");
- if(fDebug>=1) {
- printf("%s: %f, St. %2i, Pl.4 ",ClassName(),ang*kRaddeg,i);
- printf("y = %f, z = %f, zpos = %f \n",ycoor,zcoor,zpos);
- }
- i++;
- upDown*=-1;
-
- do {
- zpos = zpos - (zSenStrip/2)/TMath::Cos(ang)-
- upDown*gap*TMath::Tan(ang)-
- (zSenStrip/2)/TMath::Cos(ang);
- ang = atan(zpos/radius);
- ang *= kRaddeg;
- AliMatrix (idrotm[nrot], 90., 0., 90.-ang,90.,ang, 270.);
- ang /= kRaddeg;
- Float_t deltaSpaceinB=-0.5; // [cm] to avoid overlaps with the end of freon frame
- Float_t deltaGapinB=0.5; // [cm] to avoid overlaps in between initial strips
- ycoor = -hTof*0.5+ kspace+deltaSpaceinB ; //2 cm over front plate
- ycoor += (1-(upDown+1)/2)*(gap+deltaGapinB);
- zcoor = zpos+(zFLTA*0.5+zFLTB*0.5+db); // Moves to the system of the modulus FLTB
- gMC->Gspos("FSTR",i, "FLTB", 0., ycoor, zcoor,idrotm[nrot], "ONLY");
- if(fDebug>=1) {
- printf("%s: %f, St. %2i, Pl.4 ",ClassName(),ang*kRaddeg,i);
- printf("y = %f, z = %f, zpos = %f \n",ycoor,zcoor,zpos);
- }
- upDown*=-1;
- i++;
- } while (TMath::Abs(ang*kRaddeg)<22.5);
- //till we reach a tilting angle of 22.5 degrees
-
- ycoor = -hTof*0.5+ kspace ; //2 cm over front plate
- zpos = zpos - zSenStrip/TMath::Cos(ang);
- // this avoid overlaps in between outer strips in plate B
- Float_t deltaMovingUp=0.8; // [cm]
- Float_t deltaMovingDown=-0.5; // [cm]
-
- do {
- ang = atan(zpos/radius);
- ang *= kRaddeg;
- AliMatrix (idrotm[nrot], 90., 0., 90.-ang,90.,ang, 270.);