]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Setters added (Magnus)
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Feb 2011 09:53:06 +0000 (09:53 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Feb 2011 09:53:06 +0000 (09:53 +0000)
PWG3/vertexingHF/AliAODRecoDecayHF.h
PWG3/vertexingHF/AliAODRecoDecayHF3Prong.h

index 7ba02e3134d653f84881b290e62a23c5ce7356b2..275f3a6e6342be8e19e9dc655e436c8769876e46 100644 (file)
@@ -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;i<nprongs;i++) {
+    fd0err[i] = d0err[i]; 
+  }
+
+  return;
+}
+
 #endif
 
index 3f379e15ec43d1032a95d25b114bf397d4b288c1..2cd88d641aa23d8aafa3cdff15d4be09bc81a64e 100644 (file)
@@ -39,6 +39,8 @@ class AliAODRecoDecayHF3Prong : public AliAODRecoDecayHF {
   Double_t GetSigmaVert() const { return fSigmaVert; }
   Double_t GetDist12toPrim() const { return fDist12toPrim; }
   Double_t GetDist23toPrim() const { return fDist23toPrim; }
+  void SetDist12toPrim(Double_t d) { fDist12toPrim=d; }
+  void SetDist23toPrim(Double_t d) { fDist23toPrim=d; }
 
 
   // D+->Kpipi