From ed6324e57cdd2db9ef0ebc5d2fedc6d49fd74ae3 Mon Sep 17 00:00:00 2001 From: dainese Date: Mon, 21 Feb 2011 09:53:06 +0000 Subject: [PATCH] Setters added (Magnus) --- PWG3/vertexingHF/AliAODRecoDecayHF.h | 17 +++++++++++++++++ PWG3/vertexingHF/AliAODRecoDecayHF3Prong.h | 2 ++ 2 files changed, 19 insertions(+) diff --git a/PWG3/vertexingHF/AliAODRecoDecayHF.h b/PWG3/vertexingHF/AliAODRecoDecayHF.h index 7ba02e3134d..275f3a6e634 100644 --- a/PWG3/vertexingHF/AliAODRecoDecayHF.h +++ b/PWG3/vertexingHF/AliAODRecoDecayHF.h @@ -83,6 +83,7 @@ class AliAODRecoDecayHF : public AliAODRecoDecay { // prongs Double_t Getd0errProng(Int_t ip) const {return fd0err[ip];} + void Setd0errProngs(Int_t nprongs,Double_t *d0); Double_t Normalizedd0Prong(Int_t ip) const {return Getd0Prong(ip)/Getd0errProng(ip);} @@ -206,5 +207,21 @@ inline Int_t AliAODRecoDecayHF::NumberOfFakeDaughters() const return nfakes; } +inline void AliAODRecoDecayHF::Setd0errProngs(Int_t nprongs,Double_t *d0err) +{ + if(nprongs!=GetNProngs()) { + printf("Wrong number of momenta, must be nProngs"); + return; + } + if(!fd0) { + fd0err = new Double32_t[nprongs]; + } + for(Int_t i=0;iKpipi -- 2.39.3