]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Method HasBadDaughters() to check that all ITS+TPC daughters have BIT(4) (Francesco)
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Nov 2011 17:55:44 +0000 (17:55 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Nov 2011 17:55:44 +0000 (17:55 +0000)
PWG3/vertexingHF/AliAODRecoDecayHF.h

index b6e6f760ab40bbb87bc454b10ba5485d1f24b670..c1e4292a67485812624c3262f74460cc7a9411dc 100644 (file)
@@ -120,6 +120,8 @@ class AliAODRecoDecayHF : public AliAODRecoDecay {
 
   Int_t   NumberOfFakeDaughters() const;
 
+  Bool_t  HasBadDaughters() const; // TPC+ITS tracks not passing the StandardCuts2010 with loose DCA
+
  protected:
 
   AliAODVertex *fOwnPrimaryVtx; // primary vertex for this candidate
@@ -226,5 +228,19 @@ inline void AliAODRecoDecayHF::Setd0errProngs(Int_t nprongs,Double_t *d0err)
   return;
 }
 
+inline Bool_t AliAODRecoDecayHF::HasBadDaughters() const {
+
+  // checks if at least one of ITS+TPC daughters didn't pass the StandardCuts2010 with loose DCA (ie doesn't have the BIT(4) set)
+
+  for(Int_t iDau=0; iDau<GetNDaughters(); iDau++){
+    AliAODTrack* at=(AliAODTrack*)GetDaughter(iDau);
+    if(at->Charge()==0) continue;
+    if(at->GetTPCNcls()==0) continue;
+    if(!(at->TestFilterMask(BIT(4)))) return kTRUE;
+  }
+  return kFALSE;
+}
+
+
 #endif