Add a protection to avoid crash in QA (Julian)
[u/mrichter/AliRoot.git] / JETAN / AliFastJetInput.h
1 #ifndef ALIFASTJETINPUT_H
2 #define ALIFASTJETINPUT_H
3  
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6   //---------------------------------------------------------------------
7 // Class for input particles
8 // manages the search for jets 
9 // Authors: Elena Bruna elena.bruna@yale.edu
10 //         
11 //---------------------------------------------------------------------
12
13 //FastJet classes 
14 #include "fastjet/PseudoJet.hh"
15 #include "fastjet/ClusterSequenceArea.hh"
16 #include "fastjet/AreaDefinition.hh"
17 #include "fastjet/JetDefinition.hh"
18 // get info on how fastjet was configured
19 #include "fastjet/config.h"
20 #ifdef ENABLE_PLUGIN_SISCONE
21 #include "fastjet/SISConePlugin.hh"
22
23
24 #include<sstream>  // needed for internal io
25 #include <vector> 
26 #include <cmath> 
27 #endif
28 class AliJetFinder;
29 class AliJetHeader;
30 class AliJetReader;
31
32
33 class AliFastJetInput : public TObject
34 {
35  public:
36     AliFastJetInput();
37     AliFastJetInput(const AliFastJetInput &input);
38     AliFastJetInput& operator=(const AliFastJetInput& source);
39     virtual ~AliFastJetInput() {;}
40     void SetHeader(AliJetHeader *header)  {fHeader=header;}
41     void SetReader(AliJetReader *reader)  {fReader=reader;}
42     void FillInput();
43     vector<fastjet::PseudoJet> GetInputParticles()   const {return fInputParticles;}
44     vector<fastjet::PseudoJet> GetInputParticlesCh() const {return fInputParticlesCh;}
45     Float_t  EtaToTheta(Float_t arg);
46     static Double_t Thermalspectrum(const Double_t *x, const Double_t *par);
47
48  private:
49    AliJetReader *fReader;  //! reader 
50    AliJetHeader *fHeader;  //! header 
51    
52     vector<fastjet::PseudoJet> fInputParticles;     //! input particles for FastJet
53     vector<fastjet::PseudoJet> fInputParticlesCh;   //! input charged particles for FastJet
54
55   ClassDef(AliFastJetInput, 1); // Analysis task for standard jet analysis
56 };
57  
58 #endif