]> git.uio.no Git - u/mrichter/AliRoot.git/blame - JETAN/AliJetReader.cxx
Move AliTRDclusterError.h into macro
[u/mrichter/AliRoot.git] / JETAN / AliJetReader.cxx
CommitLineData
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
30ClassImp(AliJetReader)
31
32////////////////////////////////////////////////////////////////////////
33
34AliJetReader::AliJetReader()
35{
36 // Constructor
37 fChain = 0;
38 fChainMC = 0;
39 fESD = 0;
40 fMomentumArray = new TClonesArray("TLorentzVector",2000);
41 fArrayMC = 0;
42 fAliHeader = 0;
8011d399 43 fSignalFlag = TArrayI();
83a444b1 44 fCutFlag = TArrayI();
99e5fe42 45}
46
47////////////////////////////////////////////////////////////////////////
48
49AliJetReader::~AliJetReader()
50{
51 // Destructor
52 delete fChain;
53 delete fChainMC;
54 delete fESD;
55 delete fAliHeader;
56 if (fMomentumArray) {
57 fMomentumArray->Delete();
58 delete fMomentumArray;
59 }
60 delete fArrayMC;
61}
62
63
64////////////////////////////////////////////////////////////////////////
65
66void AliJetReader::ClearArray()
67
68{
69 if (fMomentumArray) fMomentumArray->Clear();
70}