]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/RESONANCES/AliRsnPairMgr.cxx
Several updates from the validation phase of the Fast Or DA (A. Mastroserio)
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnPairMgr.cxx
1 //
2 // Class AliRsnPairMgr
3 //
4 // A collection of pairs for an analysis.
5 // The function of this collection is just for purposes of well-sorting
6 // the analyzed pairs into upper-level groups, in the case of a wide
7 // analysis containing many resonances at once, or different settings for the same one.
8 //
9 // Each PairMgr will result in a separate list of histograms, which
10 // can be seen as a folder in the output file, whose name is given by this object.
11 //
12 // author: M. Vala (email: martin.vala@cern.ch)
13 //
14
15 #include "AliLog.h"
16
17 #include "AliRsnPairMgr.h"
18
19 ClassImp(AliRsnPairMgr)
20
21 //_____________________________________________________________________________
22 AliRsnPairMgr::AliRsnPairMgr(const char*name) :
23     TNamed(name,name),
24     fPairs(0)
25 {
26 //
27 // Default constructor
28 //
29 }
30
31 //_____________________________________________________________________________
32 AliRsnPairMgr::~AliRsnPairMgr()
33 {
34 //
35 // Destructor
36 //
37 }
38
39 //_____________________________________________________________________________
40 void AliRsnPairMgr::AddPair(AliRsnPair *pair)
41 {
42 //
43 // Adds pair
44 //
45
46   fPairs.Add((AliRsnPair*)pair);
47 }
48
49 //_____________________________________________________________________________
50 void AliRsnPairMgr::PrintPairs()
51 {
52 //
53 // Prints all pairs
54 //
55
56   AliRsnPair *pair = 0;
57   TObjArrayIter next(&fPairs);
58   while ((pair = (AliRsnPair*)next())) pair->Print();
59 }