#include "AliLog.h"
#include "AliRsnCut.h"
#include "AliRsnCutManager.h"
ClassImp(AliRsnCutManager)
AliRsnCutManager::AliRsnCutManager() :
TNamed("defaultName", "defaultTitle"),
fDaughterCutsCommon("defaultCommon", AliRsnTarget::kDaughter),
fDaughterCuts1("defaultD1", AliRsnTarget::kDaughter),
fDaughterCuts2("defaultD2", AliRsnTarget::kDaughter),
fMotherCuts("defaultPair", AliRsnTarget::kMother)
{
}
AliRsnCutManager::AliRsnCutManager(const char *name, const char *title) :
TNamed(name, title),
fDaughterCutsCommon(Form("common_%s", name), AliRsnTarget::kDaughter),
fDaughterCuts1(Form("d1_%s", name), AliRsnTarget::kDaughter),
fDaughterCuts2(Form("d2_%s", name), AliRsnTarget::kDaughter),
fMotherCuts(Form("pair_%s", name), AliRsnTarget::kMother)
{
}
AliRsnCutManager::AliRsnCutManager(const AliRsnCutManager &cut) :
TNamed(cut),
fDaughterCutsCommon(cut.fDaughterCutsCommon),
fDaughterCuts1(cut.fDaughterCuts1),
fDaughterCuts2(cut.fDaughterCuts2),
fMotherCuts(cut.fMotherCuts)
{
}
AliRsnCutManager &AliRsnCutManager::operator=(const AliRsnCutManager &cut)
{
if (this == &cut)
return *this;
SetName(cut.GetName());
SetTitle(cut.GetTitle());
fDaughterCuts2 = cut.fDaughterCuts2;
fDaughterCuts1 = cut.fDaughterCuts1;
fDaughterCutsCommon = cut.fDaughterCutsCommon;
fMotherCuts = cut.fMotherCuts;
return (*this);
}
AliRsnCutManager::~AliRsnCutManager()
{
}