]>
Commit | Line | Data |
---|---|---|
c2922515 | 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 | /* $Id$ */ | |
17 | ||
18 | // Base class for event pool. | |
19 | // This class is needed by the AnalysisManager to steer a mixing analysis. | |
20 | // Author Andreas Morsch | |
21 | // andreas.morsch@cern.ch | |
22 | ||
1278d5a9 | 23 | #include "TChain.h" |
24 | ||
c2922515 | 25 | #include "AliVEventPool.h" |
26 | ||
c2922515 | 27 | ClassImp(AliVEventPool) |
28 | ||
29 | ||
30 | //////////////////////////////////////////////////////////////////////// | |
31 | ||
32 | AliVEventPool::AliVEventPool(): | |
3854bbec | 33 | TNamed(), |
34 | fChain(0) | |
c2922515 | 35 | { |
36 | // Default constructor | |
37 | } | |
38 | ||
39 | AliVEventPool::AliVEventPool(const char* name, const char* title): | |
3854bbec | 40 | TNamed(name, title), |
41 | fChain() | |
c2922515 | 42 | { |
43 | // Constructor | |
44 | } | |
45 | ||
3854bbec | 46 | |
ee257383 | 47 | AliVEventPool::AliVEventPool(const AliVEventPool& obj): |
48 | TNamed(obj), | |
8bf114f2 | 49 | fChain(obj.fChain) |
ee257383 | 50 | { |
8bf114f2 | 51 | // |
52 | // Copy constructor | |
53 | // | |
ee257383 | 54 | } |
55 | ||
56 | AliVEventPool& AliVEventPool::operator=(const AliVEventPool& other) | |
57 | { | |
8bf114f2 | 58 | // |
59 | // Assignment operator | |
60 | // | |
61 | if(this != &other) { | |
ee257383 | 62 | TNamed::operator=(other); |
8bf114f2 | 63 | delete fChain; |
ee257383 | 64 | fChain = other.fChain; |
8bf114f2 | 65 | } |
66 | return *this; | |
ee257383 | 67 | } |