void Create_mapping_parameters() { FairLogger::GetLogger(); // This code was copied from the Go4 analysis used for previous beamtimes // The original maping was developed by Christian Pauli Int_t nrOfChannels=128; Int_t fHodoFiber[nrOfChannels]; Int_t fHodoPlane[nrOfChannels]; Int_t fHodoPixel[nrOfChannels]; for (Int_t i=0; i=8) lcn=(fibersubnr-7)*2; Int_t channel=-1; Int_t cable=(ifiber-1)/16+1; Int_t pixel= ((lcn-1)/2)*8 +((lcn-1)%2); if (cable==1) { channel=(lcn-1)*4+0; pixel=pixel+1; } if (cable==2) { channel=(lcn-1)*4+2; pixel=pixel+3; } if (cable==3) { channel=(lcn-1)*4+1; pixel=pixel+5; } if (cable==4) { channel=(lcn-1)*4+3; pixel=pixel+7; } // new code to resolve cabling problem during cern-oct12 int ifiber_bis = ifiber; if (ifiber <= 8 ) ifiber_bis = ifiber + 56; else if (ifiber <= 16 ) ifiber_bis = ifiber + 40; else if (ifiber <= 24 ) ifiber_bis = ifiber + 24; else if (ifiber <= 32 ) ifiber_bis = ifiber + 8; else if (ifiber <= 40 ) ifiber_bis = ifiber - 8; else if (ifiber <= 48 ) ifiber_bis = ifiber - 24; else if (ifiber <= 56 ) ifiber_bis = ifiber - 40; else if (ifiber <= 64 ) ifiber_bis = ifiber - 56; // and swap at the end ifiber_bis = 65 - ifiber_bis; fHodoFiber[channel] = ifiber_bis - 1; fHodoPlane[channel] = 0; fHodoPixel[channel] = pixel; fHodoFiber[channel+64] = ifiber_bis - 1; fHodoPlane[channel+64] = 1; fHodoPixel[channel+64] = pixel; } cout << "NrOfChannels: Int_t " << nrOfChannels << endl; cout << "ChannelToFiberMap: Int_t \\" << endl; Int_t counter=0; for (Int_t i=0; i