]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
change systematic and resolution plots
authorabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 30 Sep 2010 11:54:17 +0000 (11:54 +0000)
committerabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 30 Sep 2010 11:54:17 +0000 (11:54 +0000)
PWG1/TRD/AliTRDclusterResolution.cxx

index 76d9318d544d23453d34d3afe998a1b0f7520850..15c8dbdb36a328cfdeabc611b4829a5f4851a9a3 100644 (file)
@@ -574,7 +574,6 @@ void AliTRDclusterResolution::UserExec(Option_t *)
       if(TMath::Abs(fCol-c) > 5) continue;
       if(TMath::Abs(fRow-r) > 2) continue;
     }
-    Int_t stk(AliTRDgeometry::GetStack(fDet));
     dy = cli->GetResolution();
     AliDebug(4, Form("det[%d] tb[%2d] q[%4.0f Log[%6.4f]] dy[%7.2f][um] ypull[%5.2f]", det, t, q, TMath::Log(q), 1.e4*dy, dy/TMath::Sqrt(covcl[0])));
     
@@ -588,9 +587,8 @@ void AliTRDclusterResolution::UserExec(Option_t *)
       h3->Fill(TMath::Log(q), dy, dy/TMath::Sqrt(covcl[0]));
     }
     // resolution as a function of cluster charge
-    // only for dydx = 0, ExB=0, stack=2
-    if(stk==2 &&
-       TMath::Abs(dydx) < kAroundZero &&
+    // only for dydx = 0, ExB=0
+    if(TMath::Abs(dydx) < kAroundZero &&
        TMath::Abs(fExB) < kAroundZero){
       h3 = (TH3S*)arr1->At(2);
       h3->Fill(TMath::Log(q), dy, dy/TMath::Sqrt(covcl[0]));
@@ -612,8 +610,7 @@ void AliTRDclusterResolution::UserExec(Option_t *)
     }
     // resolution as a function of y displacement from pad center and time bin
     // only for dydx = 0, ExB=0, stack=2
-    if(stk==2 &&
-       TMath::Abs(dydx) < kAroundZero &&
+    if(TMath::Abs(dydx) < kAroundZero &&
        TMath::Abs(fExB) < kAroundZero){
       h3 = (TH3S*)arr1->At(0);
       h3->Fill(t, cli->GetYDisplacement(), dy);
@@ -625,7 +622,7 @@ void AliTRDclusterResolution::UserExec(Option_t *)
 
     // fill histo for general systematic/resolution
     ((TH3S*)arr2->At(it-1))->Fill(tilt*dzdx, dydx, dy);
-    ((TH3S*)arr3->At(it-1))->Fill(10.*cli->GetAnisochronity(), tilt*dzdx-fExB, dy);
+    ((TH3S*)arr3->At(it-1))->Fill(10.*cli->GetAnisochronity(), dydx-tilt*dzdx-fExB, dy);
   }
 }