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