ClassImp(AliRsnPairDef)
//_____________________________________________________________________________
-AliRsnPairDef::AliRsnPairDef() :
- fMotherPDG(0)
+AliRsnPairDef::AliRsnPairDef() : fMotherPDG(0)
{
//
// Empty constructor.
//_____________________________________________________________________________
AliRsnPairDef::AliRsnPairDef
(Char_t sign1, AliRsnPID::EType type1, Char_t sign2, AliRsnPID::EType type2, Int_t motherPDG) :
- fMotherPDG(motherPDG)
+ fMotherPDG(motherPDG)
{
//
// Constructor with arguments.
SetPair(sign1, type1, sign2, type2);
}
+//_____________________________________________________________________________
+AliRsnPairDef::AliRsnPairDef
+(AliRsnPID::EType type1, Char_t sign1, AliRsnPID::EType type2, Char_t sign2, Int_t motherPDG) :
+ fMotherPDG(motherPDG)
+{
+//
+// Constructor with arguments.
+// This constructor allows to define all the working parameters.
+//
+
+ SetPair(sign1, type1, sign2, type2);
+}
+
+
//_____________________________________________________________________________
AliRsnPairDef::AliRsnPairDef(const AliRsnPairDef ©) :
- TObject(copy),
- fMotherPDG(copy.fMotherPDG)
+ TObject(copy),
+ fMotherPDG(copy.fMotherPDG)
{
//
// Copy constructor with standard behavior
fCharge[i] = charge;
fType[i] = type;
fMass[i] = AliRsnPID::ParticleMass(type);
+
return kTRUE;
}
// Set both elements of the pair,
// returning logical AND of check for each one.
//
-
Bool_t part1 = SetPairElement(0, charge1, type1);
Bool_t part2 = SetPairElement(1, charge2, type2);
+
return (part1 && part2);
}
return prob0*prob1;
}
+
+//_____________________________________________________________________________
+TString AliRsnPairDef::GetPairName()
+{
+//
+// Returns a compact string with the name of the pair,
+// to be used for naming objects related to it.
+//
+
+ TString sName;
+ sName += AliRsnPID::ParticleName(fType[0]);
+ sName += fCharge[0];
+ sName += AliRsnPID::ParticleName(fType[1]);
+ sName += fCharge[1];
+
+ return sName;
+}