-
-//--------------------------------------------------------------------------
-void AliMUONSt345SlatSegmentation::GetMpFileName(Char_t* name) const
-{
- //
- // Get mapping file name
- //
-
- strcpy(name,"slat");
-
- for (Int_t isec = 1; isec < 4; isec++) {
-
- switch(isec) {
- case 1:
- for (Int_t i = 0; i < fPcbBoards[isec]; i++)
- strcat(name,"1");
- break;
- case 2 :
- for (Int_t i = 0; i < fPcbBoards[isec]; i++)
- strcat(name,"2");
- break;
- case 3:
- for (Int_t i = 0; i < fPcbBoards[isec]; i++)
- strcat(name,"3");
- break;
- }
- }
-
- while (strlen(name) < 10)
- strcat(name,"0");
-
- switch(fRtype) {
- case 0:
- strcat(name, "N");
- break;
- case 1:
- strcat(name, "NR1");
- break;
- case 2:
- strcat(name, "NR2");
- break;
- case 3:
- strcat(name, "NR3");
- break;
- case 4:
- strcat(name, "S");
- break;
- case -1:
- strcat(name, "SR1");
- break;
- case -2:
- strcat(name, "SR2");
- break;
- case -3:
- strcat(name, "SR3"); // should not exist
- AliFatal("SR3 Slat type does not exist !!");
- break;
- }
-}
-
-//--------------------------------------------------------------------------
-void AliMUONSt345SlatSegmentation::Swap(Int_t padX, Int_t &padY)
-{
-
- // swap the numbering between segmentation (i.e. pady = [0,40])
- // and mapping file (i.e. pady = [-20,20])
-
-
- if (fBending == 1) {
- if (padY < 0)
- padY += fNpy + 1;
- else
- padY += fNpy;
- }
-
-
- if (fBending == 0) {
- if (padY < 0)
- padY += fNpyS[Sector(padX, padY)] + 1;
- else
- padY += fNpyS[Sector(padX, padY)];
- }
-
-}
-
-