2 // Class AliRsnCutManager
4 // The cut manager: contains a complete set of cut definitions
5 // to be applied to all possible targets (one for each target),
6 // in order to ease the set-up procedure of cuts and allow to
7 // pass them at once to each object which must use them
9 // author: Martin Vala (martin.vala@cern.ch)
14 #include "AliRsnCutManager.h"
16 ClassImp(AliRsnCutManager)
18 //_____________________________________________________________________________
19 AliRsnCutManager::AliRsnCutManager() :
20 TNamed("defaultName", "defaultTitle"),
21 fDaughterCutsCommon(0x0),
27 // Constructor without arguments.
31 //_____________________________________________________________________________
32 AliRsnCutManager::AliRsnCutManager(const char *name, const char *title) :
34 fDaughterCutsCommon(0x0),
40 // Constructor with name and title.
44 //_____________________________________________________________________________
45 AliRsnCutManager::AliRsnCutManager(const AliRsnCutManager &cut) :
47 fDaughterCutsCommon(cut.fDaughterCutsCommon),
48 fDaughterCuts1(cut.fDaughterCuts1),
49 fDaughterCuts2(cut.fDaughterCuts2),
50 fMotherCuts(cut.fMotherCuts)
53 // Constructor with name and title.
57 AliRsnCutManager& AliRsnCutManager::operator=(const AliRsnCutManager &cut)
63 SetName(cut.GetName());
64 SetTitle(cut.GetTitle());
66 fDaughterCuts2 = cut.fDaughterCuts2;
67 fDaughterCuts1 = cut.fDaughterCuts1;
68 fDaughterCutsCommon = cut.fDaughterCutsCommon;
69 fMotherCuts = cut.fMotherCuts;
74 //_____________________________________________________________________________
75 AliRsnCutManager::~AliRsnCutManager()
79 // Deletes all cut definitions.
82 delete fDaughterCuts2;
83 delete fDaughterCuts1;
84 delete fDaughterCutsCommon;
88 //_____________________________________________________________________________
89 void AliRsnCutManager::SetEvent(AliRsnEvent *event)
92 // Sets reference event in all cut sets
95 if (fDaughterCuts2 ) fDaughterCuts2 ->SetEvent(event);
96 if (fDaughterCuts1 ) fDaughterCuts1 ->SetEvent(event);
97 if (fDaughterCutsCommon) fDaughterCutsCommon ->SetEvent(event);
98 if (fMotherCuts ) fMotherCuts ->SetEvent(event);