Fix in QA plot for ITS standalone tracks (Prino, Dainese)
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 8 Apr 2009 13:38:00 +0000 (13:38 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 8 Apr 2009 13:38:00 +0000 (13:38 +0000)
ITS/AliITSQADataMakerRec.cxx

index c23abace00d300bb06b0709b6ddc9572d6e149b0..78dc3271db616ab343bb983a8bec0f78ba235893 100644 (file)
@@ -382,14 +382,16 @@ void AliITSQADataMakerRec::MakeESDs(AliESDEvent *esd)
     
     Int_t nclsITS = track->GetNcls(0);
 
-    Bool_t itsrefit=kFALSE,tpcin=kFALSE;
+    Bool_t itsrefit=kFALSE,tpcin=kFALSE,itsin=kFALSE;
     if ((track->GetStatus() & AliESDtrack::kITSrefit)) itsrefit=kTRUE;
     if ((track->GetStatus() & AliESDtrack::kTPCin)) tpcin=kTRUE;     
+    if ((track->GetStatus() & AliESDtrack::kITSin)) itsin=kTRUE;     
     if(nclsITS>=5 && itsrefit) nITSrefit5++;
 
     if(tpcin) {
       GetESDsData(0)->Fill(nclsITS);
-    } else {
+    }
+    if(itsin && !tpcin){
       GetESDsData(2)->Fill(nclsITS);
     }