ROOT logo
/**************************************************************************
 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 *                                                                        *
 * Author: The ALICE Off-line Project.                                    *
 * Contributors are mentioned in the code where appropriate.              *
 *                                                                        *
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/

////////////////////////////////////////////////////////////////////////////////
//
//  This class is a simple set of definitions which are used to define a
//  decay tree to be studied for a resonance, in terms of the PID and charge
//  of its candidate daughters, which in turn determins what kind of objects
//  the analysis must take into account.
//  This object contains two AliRsnDaughterDef which define a model for each
//  of the two expected daughters (see also AliRsnDaughterDef class) plus a
//  mass hypothesis for the resonance, which is used for computin quantities
//  which need it (like rapidity or Mt), and a PDG code, which is used to
//  check for true pairs, when needed. In all other cases, these two additional
//  values can be left to their default (meaningless) value.
//  Since this object must define a decay channel, the only provided constructor
//  allow to set a PID and a charge.
//
//  authors: A. Pulvirenti (alberto.pulvirenti@ct.infn.it)
//           M. Vala (martin.vala@cern.ch)
//
////////////////////////////////////////////////////////////////////////////////

#include "AliLog.h"
#include "AliRsnMother.h"
#include "AliRsnPairDef.h"

ClassImp(AliRsnPairDef)

//_____________________________________________________________________________
AliRsnPairDef::AliRsnPairDef() :
   fMotherMass(0.0),
   fMotherPDG(0),
   fDef1(),
   fDef2()
{
//
// Constructor.
// If the two pointers are well initialized, they are used to init the members.
//
}

//_____________________________________________________________________________
AliRsnPairDef::AliRsnPairDef
(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.
// If the two pointers are well initialized, they are used to init the members.
//
}

//_____________________________________________________________________________
AliRsnPairDef::AliRsnPairDef
(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.
// If the two pointers are well initialized, they are used to init the members.
//
}

//_____________________________________________________________________________
AliRsnPairDef::AliRsnPairDef(const AliRsnPairDef &copy) :
   TObject(copy),
   fMotherMass(copy.fMotherMass),
   fMotherPDG(copy.fMotherPDG),
   fDef1(copy.fDef1),
   fDef2(copy.fDef2)
{
//
// Copy constructor with standard behavior
//
}

//_____________________________________________________________________________
AliRsnPairDef &AliRsnPairDef::operator=(const AliRsnPairDef &copy)
{
//
// Assignment operator with standard behavior.
//
   if (this == &copy)
      return *this;
   fMotherMass = copy.fMotherMass;
   fMotherPDG = copy.fMotherPDG;
   fDef1 = copy.fDef1;
   fDef2 = copy.fDef2;

   return (*this);
}
 AliRsnPairDef.cxx:1
 AliRsnPairDef.cxx:2
 AliRsnPairDef.cxx:3
 AliRsnPairDef.cxx:4
 AliRsnPairDef.cxx:5
 AliRsnPairDef.cxx:6
 AliRsnPairDef.cxx:7
 AliRsnPairDef.cxx:8
 AliRsnPairDef.cxx:9
 AliRsnPairDef.cxx:10
 AliRsnPairDef.cxx:11
 AliRsnPairDef.cxx:12
 AliRsnPairDef.cxx:13
 AliRsnPairDef.cxx:14
 AliRsnPairDef.cxx:15
 AliRsnPairDef.cxx:16
 AliRsnPairDef.cxx:17
 AliRsnPairDef.cxx:18
 AliRsnPairDef.cxx:19
 AliRsnPairDef.cxx:20
 AliRsnPairDef.cxx:21
 AliRsnPairDef.cxx:22
 AliRsnPairDef.cxx:23
 AliRsnPairDef.cxx:24
 AliRsnPairDef.cxx:25
 AliRsnPairDef.cxx:26
 AliRsnPairDef.cxx:27
 AliRsnPairDef.cxx:28
 AliRsnPairDef.cxx:29
 AliRsnPairDef.cxx:30
 AliRsnPairDef.cxx:31
 AliRsnPairDef.cxx:32
 AliRsnPairDef.cxx:33
 AliRsnPairDef.cxx:34
 AliRsnPairDef.cxx:35
 AliRsnPairDef.cxx:36
 AliRsnPairDef.cxx:37
 AliRsnPairDef.cxx:38
 AliRsnPairDef.cxx:39
 AliRsnPairDef.cxx:40
 AliRsnPairDef.cxx:41
 AliRsnPairDef.cxx:42
 AliRsnPairDef.cxx:43
 AliRsnPairDef.cxx:44
 AliRsnPairDef.cxx:45
 AliRsnPairDef.cxx:46
 AliRsnPairDef.cxx:47
 AliRsnPairDef.cxx:48
 AliRsnPairDef.cxx:49
 AliRsnPairDef.cxx:50
 AliRsnPairDef.cxx:51
 AliRsnPairDef.cxx:52
 AliRsnPairDef.cxx:53
 AliRsnPairDef.cxx:54
 AliRsnPairDef.cxx:55
 AliRsnPairDef.cxx:56
 AliRsnPairDef.cxx:57
 AliRsnPairDef.cxx:58
 AliRsnPairDef.cxx:59
 AliRsnPairDef.cxx:60
 AliRsnPairDef.cxx:61
 AliRsnPairDef.cxx:62
 AliRsnPairDef.cxx:63
 AliRsnPairDef.cxx:64
 AliRsnPairDef.cxx:65
 AliRsnPairDef.cxx:66
 AliRsnPairDef.cxx:67
 AliRsnPairDef.cxx:68
 AliRsnPairDef.cxx:69
 AliRsnPairDef.cxx:70
 AliRsnPairDef.cxx:71
 AliRsnPairDef.cxx:72
 AliRsnPairDef.cxx:73
 AliRsnPairDef.cxx:74
 AliRsnPairDef.cxx:75
 AliRsnPairDef.cxx:76
 AliRsnPairDef.cxx:77
 AliRsnPairDef.cxx:78
 AliRsnPairDef.cxx:79
 AliRsnPairDef.cxx:80
 AliRsnPairDef.cxx:81
 AliRsnPairDef.cxx:82
 AliRsnPairDef.cxx:83
 AliRsnPairDef.cxx:84
 AliRsnPairDef.cxx:85
 AliRsnPairDef.cxx:86
 AliRsnPairDef.cxx:87
 AliRsnPairDef.cxx:88
 AliRsnPairDef.cxx:89
 AliRsnPairDef.cxx:90
 AliRsnPairDef.cxx:91
 AliRsnPairDef.cxx:92
 AliRsnPairDef.cxx:93
 AliRsnPairDef.cxx:94
 AliRsnPairDef.cxx:95
 AliRsnPairDef.cxx:96
 AliRsnPairDef.cxx:97
 AliRsnPairDef.cxx:98
 AliRsnPairDef.cxx:99
 AliRsnPairDef.cxx:100
 AliRsnPairDef.cxx:101
 AliRsnPairDef.cxx:102
 AliRsnPairDef.cxx:103
 AliRsnPairDef.cxx:104
 AliRsnPairDef.cxx:105
 AliRsnPairDef.cxx:106
 AliRsnPairDef.cxx:107
 AliRsnPairDef.cxx:108
 AliRsnPairDef.cxx:109
 AliRsnPairDef.cxx:110