]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/RESONANCES/AliRsnMother.h
Removed old ME classes, since the nex event mixing has been introduced and is integra...
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnMother.h
index cdfe3a46a9a021f41641bf5dfa0c00350c545725..7d14b926dc72aa94d32eb24f7a0c0c9e4e400c1e 100644 (file)
 
 class AliRsnPairDef;
 
-class AliRsnMother : public TObject
-{
-  public:
-
-    AliRsnMother();
-    AliRsnMother(const AliRsnMother &obj);
-    AliRsnMother& operator=(const AliRsnMother &obj);
-    virtual ~AliRsnMother();
-    
-    TLorentzVector&   Sum()   {return fSum;}
-    TLorentzVector&   SumMC() {return fSumMC;}
-    Double_t          AngleTo(AliRsnDaughter track, Bool_t mc = kFALSE) const {return fSum.Angle(track.P(mc).Vect());}
-    Double_t          CosThetaStar(Bool_t first = kTRUE, Bool_t useMC = kFALSE);
-
-    AliRsnDaughter*   GetDaughter   (const Int_t &index) const {if (index==0||index==1) return fDaughter[index]; return 0x0;}
-    AliRsnDaughter&   GetDaughterRef(const Int_t &index) const {if (index==1) return (*fDaughter[1]); return (*fDaughter[0]);}
-
-    Bool_t            IsLabelEqual() const {return abs(fDaughter[0]->GetLabel()) == abs(fDaughter[1]->GetLabel());}
-    Bool_t            IsIndexEqual() const {return (fDaughter[0]->GetID() == fDaughter[1]->GetID());}
-    Int_t             CommonMother(Int_t &m0, Int_t &m1) const;
-    Int_t             CommonMother() const {Int_t d0, d1; return CommonMother(d0,d1);}
-
-    void              SetDaughters(AliRsnDaughter * const daughter1, Double_t mass1, AliRsnDaughter * const daughter2, Double_t mass2);
-    void              ResetPair();
-    void              PrintInfo(const Option_t *option = "ALL") const;
-    Bool_t            CheckPair() const;
-    Bool_t            MatchesDef(AliRsnPairDef *pairDef);
-
-  private:
-
-    Bool_t           fUseMC;            // choose if momenta are taken from ESD/AOD or MC
-    AliRsnDaughter  *fDaughter[2];      // elements of the pair
-    TLorentzVector   fSum;              // sum computed from the two daughters
-    TLorentzVector   fSumMC;            // sum computed from the two daughters
-
-    ClassDef(AliRsnMother,1)
+class AliRsnMother : public TObject {
+public:
+
+   AliRsnMother();
+   AliRsnMother(const AliRsnMother &obj);
+   AliRsnMother& operator=(const AliRsnMother &obj);
+   virtual ~AliRsnMother();
+
+   TLorentzVector&   Sum()   {return fSum;}
+   TLorentzVector&   SumMC() {return fSumMC;}
+   Double_t          AngleTo(AliRsnDaughter track, Bool_t mc = kFALSE) const {return fSum.Angle(track.P(mc).Vect());}
+   Double_t          CosThetaStar(Bool_t first = kTRUE, Bool_t useMC = kFALSE);
+
+   AliRsnDaughter*   GetDaughter(const Int_t &index) const {if (index == 0 || index == 1) return fDaughter[index]; return 0x0;}
+   AliRsnDaughter&   GetDaughterRef(const Int_t &index) const {if (index == 1) return (*fDaughter[1]); return (*fDaughter[0]);}
+
+   Bool_t            IsLabelEqual() const {return abs(fDaughter[0]->GetLabel()) == abs(fDaughter[1]->GetLabel());}
+   Bool_t            IsIndexEqual() const {return (fDaughter[0]->GetID() == fDaughter[1]->GetID());}
+   Int_t             CommonMother(Int_t &m0, Int_t &m1) const;
+   Int_t             CommonMother() const {Int_t d0, d1; return CommonMother(d0, d1);}
+
+   void              SetDaughters(AliRsnDaughter * const daughter1, Double_t mass1, AliRsnDaughter * const daughter2, Double_t mass2);
+   void              ResetPair();
+   void              PrintInfo(const Option_t *option = "ALL") const;
+   Bool_t            CheckPair() const;
+   Bool_t            MatchesDef(AliRsnPairDef *pairDef);
+
+private:
+
+   Bool_t           fUseMC;            // choose if momenta are taken from ESD/AOD or MC
+   AliRsnDaughter  *fDaughter[2];      // elements of the pair
+   TLorentzVector   fSum;              // sum computed from the two daughters
+   TLorentzVector   fSumMC;            // sum computed from the two daughters
+
+   ClassDef(AliRsnMother, 1)
 };
 
 #endif