fix logic selection (suggested by Theodor)
authorabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Apr 2010 06:13:15 +0000 (06:13 +0000)
committerabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Apr 2010 06:13:15 +0000 (06:13 +0000)
PWG1/TRD/AliTRDcheckDET.cxx

index e6bb019..38bf76d 100644 (file)
@@ -1034,7 +1034,8 @@ TH1 *AliTRDcheckDET::PlotPHx(const AliTRDtrackV1 *track){
     for(Int_t ic(0); ic<AliTRDseedV1::kNclusters; ic++){
       if(!(c = tracklet->GetClusters(ic))) continue;
       if(!IsUsingClustersOutsideChamber() && !c->IsInChamber()) continue;
-      jc = TMath::Max(ic, ic-AliTRDseedV1::kNtb);
+      jc = (ic-AliTRDseedV1::kNtb);
+      if(jc<0) jc+=AliTRDseedV1::kNtb;
       xd = tracklet->GetX0() - c->GetX(); vxd[jc] = xd;
       dqdl=tracklet->GetdQdl(ic); vdqdl[jc] = dqdl;
       h->Fill(xd, dqdl);