]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix problem with fXpos11 in LoadXPos (Philippe C., thanks to Christian)
authorpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 May 2007 14:56:20 +0000 (14:56 +0000)
committerpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 May 2007 14:56:20 +0000 (14:56 +0000)
MUON/AliMUONTriggerCircuit.cxx

index 55b763350f85e767b6cf9f4cb8e03f9cfd87d0fb..3dedf57aacd00f323f3f0fdbf28dfabd0baad52d 100644 (file)
@@ -285,7 +285,7 @@ void AliMUONTriggerCircuit::LoadXPos(const AliMUONTriggerCrateStore& crates)
 
   // check if one needs a strip doubling or not
   if ( (x2u == 1 || x2m == 1 || x2d == 1) && x2m == 1) doubling = kTRUE;
-  
+
   // check if one starts at strip = 0 or 8 (boards 26-29 and 143-146)
   if (zeroAllYLSB == 1) iStripCircuit = 8;
   
@@ -297,7 +297,7 @@ void AliMUONTriggerCircuit::LoadXPos(const AliMUONTriggerCrateStore& crates)
   const AliMpPCB* pcb = slat->GetPCB(icol-1);
   iFirstStrip = pcb->Ixmin();
   
-  if (doubling) iLastStrip = iFirstStrip + 8;
+  if (doubling || zeroAllYLSB == 1) iLastStrip = iFirstStrip + 8;
   else iLastStrip = iFirstStrip + 16;
   
   FillYstrips(seg,detElemId, 
@@ -313,7 +313,9 @@ void AliMUONTriggerCircuit::FillYstrips(
 {    
 /// fill
   Double_t xyGlobal[4]={0.,0.,0.,0.};
+
   for (Int_t istrip=iFirstStrip; istrip<iLastStrip; istrip++) {
+
     AliMpPad pad = seg->PadByIndices(AliMpIntPair(istrip,0),kTRUE);
     if ( !pad.IsValid() )
     {
@@ -323,9 +325,9 @@ void AliMUONTriggerCircuit::FillYstrips(
                         );
     }
     XYGlobal(detElemId,pad,xyGlobal);
-    
-    if (!doubling) {       
-      fXpos11[liStripCircuit]=xyGlobal[0];
+
+    if (!doubling) {
+       fXpos11[liStripCircuit]=xyGlobal[0];
     } else if (doubling) {         
       fXpos11[2*liStripCircuit]=TMath::Sign(1.,xyGlobal[0]) * 
        (TMath::Abs(xyGlobal[0]) - xyGlobal[2]/2.);