]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/RESONANCES/AliRsnPairMgr.cxx
Package revised - New AnalysisTask's - Added more functions
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnPairMgr.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15 //
16 // *** Class AliRsnPairMgr ***
17 //
18 // TODO
19 //
20 // authors: A. Pulvirenti (email: alberto.pulvirenti@ct.infn.it)
21 //          M. Vala (email: martin.vala@cern.ch)
22 //
23
24 #include "AliLog.h"
25
26 #include "AliRsnPairMgr.h"
27
28 ClassImp ( AliRsnPairMgr )
29
30 //_____________________________________________________________________________
31 AliRsnPairMgr::AliRsnPairMgr ( const char*name )
32     : TNamed ( name,name),fPairs(0)
33 {
34 //=========================================================
35 // Default constructor
36 //=========================================================
37
38 }
39
40 //_____________________________________________________________________________
41 AliRsnPairMgr::~AliRsnPairMgr()
42 {
43 //=========================================================
44 // Destructor
45 //=========================================================
46
47 }
48
49 //_____________________________________________________________________________
50 void AliRsnPairMgr::AddPair ( AliRsnPair * pair )
51 {
52 //=========================================================
53 // Adds pair
54 //=========================================================
55
56   fPairs.Add ( ( AliRsnPair * ) pair );
57 }
58
59 //_____________________________________________________________________________
60 void AliRsnPairMgr::PrintPairs()
61 {
62 //=========================================================
63 // Prints all pairs
64 //=========================================================
65   AliRsnPair * pair=0;
66   for ( Int_t i=0;i<fPairs.GetEntriesFast() ;i++ )
67   {
68     pair = ( AliRsnPair * ) fPairs.At ( i );
69     pair->Print();
70   }
71 }