]>
Commit | Line | Data |
---|---|---|
99e5fe42 | 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 | ||
83a444b1 | 16 | //------------------------------------------------------------------------ |
99e5fe42 | 17 | // Jet reader base class |
18 | // manages the reading of input for jet algorithms | |
19 | // Author: jgcn@mda.cinvestav.mx | |
83a444b1 | 20 | //------------------------------------------------------------------------ |
99e5fe42 | 21 | |
83a444b1 | 22 | // root |
99e5fe42 | 23 | #include <TClonesArray.h> |
83a444b1 | 24 | //AliRoot |
99e5fe42 | 25 | #include "AliJetReader.h" |
26 | #include "AliJetReaderHeader.h" | |
27 | #include "AliESD.h" | |
28 | #include "AliHeader.h" | |
29 | ||
30 | ClassImp(AliJetReader) | |
31 | ||
32 | //////////////////////////////////////////////////////////////////////// | |
33 | ||
1b7d5d7e | 34 | AliJetReader::AliJetReader(): |
35 | fChain(0), | |
36 | fChainMC(0), | |
37 | fMomentumArray(0), | |
38 | fArrayMC(0), | |
39 | fESD(0), | |
40 | fReaderHeader(0), | |
41 | fAliHeader(0), | |
42 | fSignalFlag(0), | |
43 | fCutFlag(0) | |
44 | ||
99e5fe42 | 45 | { |
1b7d5d7e | 46 | // Default constructor |
99e5fe42 | 47 | fMomentumArray = new TClonesArray("TLorentzVector",2000); |
8011d399 | 48 | fSignalFlag = TArrayI(); |
83a444b1 | 49 | fCutFlag = TArrayI(); |
99e5fe42 | 50 | } |
51 | ||
52 | //////////////////////////////////////////////////////////////////////// | |
53 | ||
54 | AliJetReader::~AliJetReader() | |
55 | { | |
56 | // Destructor | |
57 | delete fChain; | |
58 | delete fChainMC; | |
59 | delete fESD; | |
60 | delete fAliHeader; | |
61 | if (fMomentumArray) { | |
62 | fMomentumArray->Delete(); | |
63 | delete fMomentumArray; | |
64 | } | |
65 | delete fArrayMC; | |
66 | } | |
67 | ||
68 | ||
69 | //////////////////////////////////////////////////////////////////////// | |
70 | ||
71 | void AliJetReader::ClearArray() | |
72 | ||
73 | { | |
74 | if (fMomentumArray) fMomentumArray->Clear(); | |
75 | } |