]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/RESONANCES/AliRsnPairDef.cxx
Macros to plot QA train output
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnPairDef.cxx
index 24a666f8f3e190a858d46d7caf32a96cd94a35d5..1eb34aa8a4222990aff6e13590d44413b6e2750c 100644 (file)
 ClassImp(AliRsnPairDef)
 
 //_____________________________________________________________________________
-AliRsnPairDef::AliRsnPairDef() : fMotherMass(0.0), fMotherPDG(0), fDef1(), fDef2()
+AliRsnPairDef::AliRsnPairDef() :
+   fMotherMass(0.0), 
+   fMotherPDG(0), 
+   fDef1(), 
+   fDef2()
 {
 //
-// Empty constructor.
-// Initializes the data members to default values:
-//  - no definition of particles in the pair;
-//  - histogram binning undefined.
-// When using this constructor, all analysis elements (particles, histogram)
-// must be defined before starting event processing.
+// Constructor.
+// If the two pointers are well initialized, they are used to init the members.
 //
 }
 
 //_____________________________________________________________________________
 AliRsnPairDef::AliRsnPairDef
-(EPARTYPE type1, Char_t sign1, EPARTYPE type2, Char_t sign2, Int_t motherPDG, Double_t motherMass) :
-   fMotherMass(motherMass),
-   fMotherPDG(motherPDG),
-   fDef1(AliRsnDaughter::FromAliPID(type1), sign1),
-   fDef2(AliRsnDaughter::FromAliPID(type2), sign2)
+(EPARTYPE type1, Char_t ch1, EPARTYPE type2, Char_t ch2, Int_t pdg, Double_t mass) :
+   fMotherMass(mass), 
+   fMotherPDG(pdg), 
+   fDef1(type1, ch1), 
+   fDef2(type2, ch2)
 {
 //
-// Constructor with arguments.
-// This constructor allows to define all the working parameters.
+// Constructor.
+// If the two pointers are well initialized, they are used to init the members.
 //
 }
 
 //_____________________________________________________________________________
 AliRsnPairDef::AliRsnPairDef
-(AliRsnDaughter::ESpecies type1, Char_t sign1, AliRsnDaughter::ESpecies type2, Char_t sign2, Int_t motherPDG, Double_t motherMass) :
-   fMotherMass(motherMass),
-   fMotherPDG(motherPDG),
-   fDef1(type1, sign1),
-   fDef2(type2, sign2)
+(AliRsnDaughter::ESpecies type1, Char_t ch1, AliRsnDaughter::ESpecies type2, Char_t ch2, Int_t pdg, Double_t mass) :
+   fMotherMass(mass), 
+   fMotherPDG(pdg), 
+   fDef1(type1, ch1), 
+   fDef2(type2, ch2)
 {
 //
-// Constructor with arguments.
-// This constructor allows to define all the working parameters.
+// Constructor.
+// If the two pointers are well initialized, they are used to init the members.
 //
 }
-
+   
 //_____________________________________________________________________________
 AliRsnPairDef::AliRsnPairDef(const AliRsnPairDef &copy) :
    TObject(copy),
@@ -107,14 +107,3 @@ const AliRsnPairDef& AliRsnPairDef::operator=(const AliRsnPairDef &copy)
 
    return (*this);
 }
-
-//_____________________________________________________________________________
-const char* AliRsnPairDef::GetPairName() const
-{
-//
-// Returns a compact string with the name of the pair,
-// to be used for naming objects related to it.
-//
-
-   return Form("%s%s", fDef1.GetName(), fDef2.GetName());
-}