1 /////////////////////////////////////////////////////
2 // Segmentation and Response classes version 02 //
3 /////////////////////////////////////////////////////
8 #include "AliMUONSegResV02.h"
13 //___________________________________________
14 ClassImp(AliMUONsegmentationV02)
16 void AliMUONsegmentationV02::SetPADSIZ(Float_t p1, Float_t p2)
22 Int_t AliMUONsegmentationV02::Npx()
23 {return AliMUONsegmentationV01::Npy();}
25 Int_t AliMUONsegmentationV02::Npy()
26 {return AliMUONsegmentationV01::Npx();}
29 Float_t AliMUONsegmentationV02::Dpx(Int_t)
32 Float_t AliMUONsegmentationV02::Dpy(Int_t isec)
35 Int_t AliMUONsegmentationV02::Sector(Int_t ix, Int_t iy)
36 {return AliMUONsegmentationV01::Sector(iy, ix);}
38 void AliMUONsegmentationV02::
39 GetPadIxy(Float_t x, Float_t y, Int_t &ix, Int_t &iy)
41 AliMUONsegmentationV01::GetPadIxy(y, x, iy, ix);
42 // printf("\n x,y,ix,iy %f %f %d %d", x,y,ix,iy);
45 void AliMUONsegmentationV02::
46 GetPadCxy(Int_t ix, Int_t iy, Float_t &x, Float_t &y)
48 AliMUONsegmentationV01::GetPadCxy(iy, ix, y, x);
49 // printf("\n ix,iy,x,y %d %d %f %f ", ix,iy,x,y);
51 void AliMUONsegmentationV02::SetPad(Int_t ix,Int_t iy)
53 GetPadCxy(ix,iy,fx,fy);
54 fSector=Sector(ix,iy);
59 void AliMUONsegmentationV02::NextPad()
62 // Step to next pad in integration region
67 if (fy < fymax && fy != 0) {
71 } else if (fix != fixmax) {
74 // get y-position of next row (yc), xc not used here
75 GetPadCxy(fix,fiy,xc,yc);
76 // get x-pad coordiante for 1 pad in row (fix)
77 GetPadIxy(xc,fymin,ixc,fiy);
79 printf("\n Error: Stepping outside integration region\n ");
81 GetPadCxy(fix,fiy,fx,fy);
82 fSector=Sector(fix,fiy);
84 (fSector ==-1 || fSector==0 ||
85 TMath::Abs(fx)<1.5 || TMath::Abs(fy)<1.5))
87 // printf("\n this pad %f %f %d %d \n",fx,fy,fix,fiy);
91 Int_t AliMUONsegmentationV02::MorePads()
93 // Are there more pads in the integration region
95 if ((fy >= fymax && fix >= fixmax) || fx==0) {
102 void AliMUONsegmentationV02::
103 Neighbours(Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[10], Int_t Ylist[10])
106 AliMUONsegmentationV01::Neighbours(iY, iX, &N, Ylist, Xlist);