2 // *** Class AliRsnCutManager ***
4 // This class is used both in normal analysis and efficiency computation
5 // as a collection of all cuts which could be needed in a single job.
6 // It allocates an AliRsnCutSet for each possible target:
7 // - one with all cuts common to all tracks
8 // - one with all cuts for first candidate daughter (definition #1 in pairDef)
9 // - one with all cuts for second candidate daughter (definition #2 in pairDef)
10 // - one with all cuts on the pair
12 // This object is used to define a step in efficiency CORRFW container
13 // and also is contained in all AliRsnPair objects to decide if two candidates
14 // can be accepted or not.
16 // authors: Martin Vala (martin.vala@cern.ch)
17 // Alberto Pulvirenti (alberto.pulvirenti@cern.ch)
22 #include "AliRsnCut.h"
23 #include "AliRsnCutManager.h"
25 ClassImp(AliRsnCutManager)
27 //_____________________________________________________________________________
28 AliRsnCutManager::AliRsnCutManager() :
29 TNamed("defaultName", "defaultTitle"),
30 fDaughterCutsCommon("defaultCommon", AliRsnTarget::kDaughter),
31 fDaughterCuts1("defaultD1", AliRsnTarget::kDaughter),
32 fDaughterCuts2("defaultD2", AliRsnTarget::kDaughter),
33 fMotherCuts("defaultPair", AliRsnTarget::kMother)
36 // Constructor without arguments.
40 //_____________________________________________________________________________
41 AliRsnCutManager::AliRsnCutManager(const char *name, const char *title) :
43 fDaughterCutsCommon(Form("common_%s", name), AliRsnTarget::kDaughter),
44 fDaughterCuts1(Form("d1_%s", name), AliRsnTarget::kDaughter),
45 fDaughterCuts2(Form("d2_%s", name), AliRsnTarget::kDaughter),
46 fMotherCuts(Form("pair_%s", name), AliRsnTarget::kMother)
49 // Constructor with name and title.
53 //_____________________________________________________________________________
54 AliRsnCutManager::AliRsnCutManager(const AliRsnCutManager &cut) :
56 fDaughterCutsCommon(cut.fDaughterCutsCommon),
57 fDaughterCuts1(cut.fDaughterCuts1),
58 fDaughterCuts2(cut.fDaughterCuts2),
59 fMotherCuts(cut.fMotherCuts)
62 // Constructor with name and title.
66 //_____________________________________________________________________________
67 AliRsnCutManager &AliRsnCutManager::operator=(const AliRsnCutManager &cut)
75 SetName(cut.GetName());
76 SetTitle(cut.GetTitle());
78 fDaughterCuts2 = cut.fDaughterCuts2;
79 fDaughterCuts1 = cut.fDaughterCuts1;
80 fDaughterCutsCommon = cut.fDaughterCutsCommon;
81 fMotherCuts = cut.fMotherCuts;
86 //_____________________________________________________________________________
87 AliRsnCutManager::~AliRsnCutManager()