]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
bits again
authorloizides <cloizides@lbl.gov>
Mon, 20 Jan 2014 13:59:55 +0000 (14:59 +0100)
committerloizides <cloizides@lbl.gov>
Mon, 20 Jan 2014 14:00:03 +0000 (15:00 +0100)
PWG/EMCAL/AliEmcalAodTrackFilterTask.cxx
PWG/EMCAL/AliEmcalEsdTrackFilterTask.cxx
PWG/EMCAL/AliPicoTrack.cxx

index 1319123530310d366e724a296ce4135ceffb1856..8e89f8b3e0fc6733d8e3fd1106a8376788c73239 100644 (file)
@@ -109,7 +109,6 @@ void AliEmcalAodTrackFilterTask::UserExec(Option_t *)
 
     if (!track)
       continue;
-
     Int_t type = -1;
     if (fAODfilterBits[0] < 0) {
       if (track->IsHybridGlobalConstrainedGlobal())
@@ -153,17 +152,17 @@ void AliEmcalAodTrackFilterTask::UserExec(Option_t *)
        AliDebug(2,Form("Track %d with label==0", iTracks));
     }
     if (type==0) {
-      newt->SetBit(BIT(20),0);
-      newt->SetBit(BIT(21),0);
+      newt->SetBit(BIT(22),0);
+      newt->SetBit(BIT(23),0);
     } else if (type==1) {
-      newt->SetBit(BIT(20),1);
-      newt->SetBit(BIT(21),0);
+      newt->SetBit(BIT(22),1);
+      newt->SetBit(BIT(23),0);
     } else if (type==2) {
-      newt->SetBit(BIT(20),0);
-      newt->SetBit(BIT(21),1);
+      newt->SetBit(BIT(22),0);
+      newt->SetBit(BIT(23),1);
     } else if (type==3) {
-      newt->SetBit(BIT(20),1);
-      newt->SetBit(BIT(21),1);
+      newt->SetBit(BIT(22),1);
+      newt->SetBit(BIT(23),1);
     }
     ++nacc;
   }
index dfa451357b2201d6e17921332e82d535fc472e62..0f4e9128216c94f48881493907c14f54100c943c 100644 (file)
@@ -172,8 +172,8 @@ void AliEmcalEsdTrackFilterTask::UserExec(Option_t *)
         AliESDtrack *newTrack = new ((*fTracks)[ntrnew]) AliESDtrack(*etrack);
        if (fDoPropagation) 
          AliEMCALRecoUtils::ExtrapolateTrackToEMCalSurface(newTrack,fDist);
-        newTrack->SetBit(BIT(20),0); 
-        newTrack->SetBit(BIT(21),0);
+        newTrack->SetBit(BIT(22),0); 
+        newTrack->SetBit(BIT(23),0);
         ++ntrnew;
       } else if (fHybridTrackCuts->AcceptTrack(etrack)) {
 
@@ -186,11 +186,11 @@ void AliEmcalEsdTrackFilterTask::UserExec(Option_t *)
                         constrainParam->GetParameter(),
                         constrainParam->GetCovariance());
          if ((status&AliESDtrack::kITSrefit)==0) {
-            newTrack->SetBit(BIT(20),0); //type 2
-            newTrack->SetBit(BIT(21),1);
+            newTrack->SetBit(BIT(22),0); //type 2
+            newTrack->SetBit(BIT(23),1);
           } else {
-            newTrack->SetBit(BIT(20),1); //type 1
-            newTrack->SetBit(BIT(21),0);
+            newTrack->SetBit(BIT(22),1); //type 1
+            newTrack->SetBit(BIT(23),0);
           }
          if (fDoPropagation)   
            AliEMCALRecoUtils::ExtrapolateTrackToEMCalSurface(newTrack,fDist);
index f9a0518ee55e9cbb53d7582d5d2c725c258c408a..20c45134c6ee7b3f070bf2ed8599ff0247208b54 100644 (file)
@@ -113,11 +113,11 @@ Byte_t AliPicoTrack::GetTrackType(const AliVTrack *t)
   // Get track type encoded from bits 20 and 21.
 
   Byte_t ret = 0;
-  if (t->TestBit(BIT(20)) && !t->TestBit(BIT(21)))
+  if (t->TestBit(BIT(22)) && !t->TestBit(BIT(23)))
     ret = 1;
-  else if (!t->TestBit(BIT(20)) && t->TestBit(BIT(21)))
+  else if (!t->TestBit(BIT(22)) && t->TestBit(BIT(23)))
     ret = 2;
-  else if (t->TestBit(BIT(20)) && t->TestBit(BIT(21)))
+  else if (t->TestBit(BIT(22)) && t->TestBit(BIT(23)))
     ret = 3;
   return ret;
 }