selection on minimum number of N points added
authoramastros <amastros@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 Sep 2011 13:48:20 +0000 (13:48 +0000)
committeramastros <amastros@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 Sep 2011 13:48:20 +0000 (13:48 +0000)
ITS/UPGRADE/macros/efficiency.C

index 4678213..51a9a5a 100644 (file)
@@ -23,6 +23,7 @@
 #include "AliITSsegmentationUpgrade.h"
 #endif
 
+Int_t minNpoints=3;
 Bool_t IsTrackable(TClonesArray *trackRef);
 TArrayF radii;
 
@@ -170,6 +171,7 @@ void efficiency(char *title="",Bool_t isPrimary=kTRUE){
       AliESDtrack* track = esd->GetTrack(iTrack);
       if(track->Pt()<ptlimit) continue;      
       if(isPrimary && !stack->IsPhysicalPrimary(TMath::Abs(track->GetLabel()))) continue;
+      if(track->GetNcls(0)<minNpoints) continue; // selection compatible with IsSelected
       ntrack++;
       hPtRec->Fill(track->Pt());
       hEtaRec->Fill(track->Eta());
@@ -393,7 +395,7 @@ Bool_t IsTrackable(TClonesArray *trackRef){
     if(isInLayer.At(iLayer)) nTrackRef++;
   }
 
-  if(nTrackRef>2) isOk=kTRUE;
+  if(nTrackRef>=minNpoints) isOk=kTRUE;
   return isOk; 
 }