]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/RESONANCES/AliRsnPairDef.cxx
Updated macros for D0 analysis (Massimo)
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / AliRsnPairDef.cxx
CommitLineData
7356f978 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16////////////////////////////////////////////////////////////////////////////////
06351446 17//
7356f978 18// This class is a simple set of definitions which are used to define a
19// decay tree to be studied for a resonance, in terms of the PID and charge
20// of its candidate daughters, which in turn determins what kind of objects
21// the analysis must take into account.
22// This object contains two AliRsnDaughterDef which define a model for each
23// of the two expected daughters (see also AliRsnDaughterDef class) plus a
24// mass hypothesis for the resonance, which is used for computin quantities
61f275d1 25// which need it (like rapidity or Mt), and a PDG code, which is used to
7356f978 26// check for true pairs, when needed. In all other cases, these two additional
27// values can be left to their default (meaningless) value.
28// Since this object must define a decay channel, the only provided constructor
29// allow to set a PID and a charge.
06351446 30//
7356f978 31// authors: A. Pulvirenti (alberto.pulvirenti@ct.infn.it)
32// M. Vala (martin.vala@cern.ch)
06351446 33//
7356f978 34////////////////////////////////////////////////////////////////////////////////
06351446 35
06351446 36#include "AliLog.h"
11ed73f6 37#include "AliRsnMother.h"
06351446 38#include "AliRsnPairDef.h"
39
40ClassImp(AliRsnPairDef)
41
42//_____________________________________________________________________________
c865cb1d 43AliRsnPairDef::AliRsnPairDef() :
61f275d1 44 fMotherMass(0.0),
45 fMotherPDG(0),
46 fDef1(),
c865cb1d 47 fDef2()
06351446 48{
49//
c865cb1d 50// Constructor.
51// If the two pointers are well initialized, they are used to init the members.
06351446 52//
06351446 53}
54
aec0ec32 55//_____________________________________________________________________________
56AliRsnPairDef::AliRsnPairDef
c865cb1d 57(EPARTYPE type1, Char_t ch1, EPARTYPE type2, Char_t ch2, Int_t pdg, Double_t mass) :
61f275d1 58 fMotherMass(mass),
59 fMotherPDG(pdg),
60 fDef1(type1, ch1),
c865cb1d 61 fDef2(type2, ch2)
7356f978 62{
63//
c865cb1d 64// Constructor.
65// If the two pointers are well initialized, they are used to init the members.
7356f978 66//
67}
68
69//_____________________________________________________________________________
70AliRsnPairDef::AliRsnPairDef
c865cb1d 71(AliRsnDaughter::ESpecies type1, Char_t ch1, AliRsnDaughter::ESpecies type2, Char_t ch2, Int_t pdg, Double_t mass) :
61f275d1 72 fMotherMass(mass),
73 fMotherPDG(pdg),
74 fDef1(type1, ch1),
c865cb1d 75 fDef2(type2, ch2)
aec0ec32 76{
77//
c865cb1d 78// Constructor.
79// If the two pointers are well initialized, they are used to init the members.
aec0ec32 80//
aec0ec32 81}
61f275d1 82
06351446 83//_____________________________________________________________________________
84AliRsnPairDef::AliRsnPairDef(const AliRsnPairDef &copy) :
2a1c7696 85 TObject(copy),
86 fMotherMass(copy.fMotherMass),
11ed73f6 87 fMotherPDG(copy.fMotherPDG),
88 fDef1(copy.fDef1),
89 fDef2(copy.fDef2)
06351446 90{
91//
92// Copy constructor with standard behavior
93//
06351446 94}
95
96//_____________________________________________________________________________
61f275d1 97AliRsnPairDef &AliRsnPairDef::operator=(const AliRsnPairDef &copy)
06351446 98{
99//
100// Assignment operator with standard behavior.
101//
61f275d1 102 if (this == &copy)
103 return *this;
104 fMotherMass = copy.fMotherMass;
105 fMotherPDG = copy.fMotherPDG;
106 fDef1 = copy.fDef1;
107 fDef2 = copy.fDef2;
108
2a1c7696 109 return (*this);
06351446 110}