]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/RESONANCES/AliRsnCutManager.cxx
Added an information histogram on *real* number of events contributing to fill each...
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnCutManager.cxx
CommitLineData
2dab9030 1//
32992791 2// *** Class AliRsnCutManager ***
3//
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
11// -----
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.
15//
16// authors: Martin Vala (martin.vala@cern.ch)
17// Alberto Pulvirenti (alberto.pulvirenti@cern.ch)
2dab9030 18//
19
20#include "AliLog.h"
21
32992791 22#include "AliRsnCut.h"
2dab9030 23#include "AliRsnCutManager.h"
24
25ClassImp(AliRsnCutManager)
26
27//_____________________________________________________________________________
28AliRsnCutManager::AliRsnCutManager() :
29 TNamed("defaultName", "defaultTitle"),
32992791 30 fDaughterCutsCommon("defaultCommon", AliRsnTarget::kDaughter),
31 fDaughterCuts1("defaultD1", AliRsnTarget::kDaughter),
32 fDaughterCuts2("defaultD2", AliRsnTarget::kDaughter),
33 fMotherCuts("defaultPair", AliRsnTarget::kMother)
2dab9030 34{
35//
36// Constructor without arguments.
37//
2dab9030 38}
39
40//_____________________________________________________________________________
41AliRsnCutManager::AliRsnCutManager(const char *name, const char *title) :
42 TNamed(name, title),
32992791 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)
2dab9030 47{
48//
49// Constructor with name and title.
50//
2dab9030 51}
52
53//_____________________________________________________________________________
54AliRsnCutManager::AliRsnCutManager(const AliRsnCutManager &cut) :
55 TNamed(cut),
4820b1ae 56 fDaughterCutsCommon(cut.fDaughterCutsCommon),
57 fDaughterCuts1(cut.fDaughterCuts1),
58 fDaughterCuts2(cut.fDaughterCuts2),
2dab9030 59 fMotherCuts(cut.fMotherCuts)
60{
61//
62// Constructor with name and title.
63//
2dab9030 64}
65
32992791 66//_____________________________________________________________________________
2dab9030 67AliRsnCutManager& AliRsnCutManager::operator=(const AliRsnCutManager &cut)
68{
69//
70// Assign operator
71//
72
73 SetName(cut.GetName());
74 SetTitle(cut.GetTitle());
75
32992791 76 fDaughterCuts2 = cut.fDaughterCuts2;
77 fDaughterCuts1 = cut.fDaughterCuts1;
4820b1ae 78 fDaughterCutsCommon = cut.fDaughterCutsCommon;
32992791 79 fMotherCuts = cut.fMotherCuts;
2dab9030 80
81 return (*this);
82}
83
84//_____________________________________________________________________________
85AliRsnCutManager::~AliRsnCutManager()
86{
87//
88// Destructor.
32992791 89// Does nothing.
2dab9030 90//
2dab9030 91}
92
93//_____________________________________________________________________________
94void AliRsnCutManager::SetEvent(AliRsnEvent *event)
95{
96//
97// Sets reference event in all cut sets
98//
99
32992791 100 fDaughterCuts2.SetEvent(event);
101 fDaughterCuts1.SetEvent(event);
102 fDaughterCutsCommon.SetEvent(event);
103 fMotherCuts.SetEvent(event);
2dab9030 104}