Update responsibles for MCH, MTR, HMP
[u/mrichter/AliRoot.git] / JETAN / AliFastJetFinder.h
index 4d92749..9835091 100644 (file)
@@ -4,16 +4,39 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
+/* $Id$ */
 
 //---------------------------------------------------------------------
-// Fast Jet finder algorithm interface
-// manages the search for jets
+// FastJet v2.3.4 finder algorithm interface
+//
 // Author: Rafael.Diaz.Valdes@cern.ch
-// kt algorithm using NlnN
+//
+// ** 2011 magali.estienne@subatech.in2p3.fr &  alexandre.shabetai@cern.ch
+// new implementation of background subtraction
+// allowing to subtract bkg using a different algo than the one used for signal jets  
 //---------------------------------------------------------------------
 
+// FastJet classes 
+#ifndef __CINT__
+# include "fastjet/PseudoJet.hh"
+# include "fastjet/ClusterSequenceArea.hh"
+# include "fastjet/AreaDefinition.hh"
+# include "fastjet/JetDefinition.hh"
+#else
+namespace fastjet {
+  class PseudoJet;
+  class ClusterSequenceArea;
+  class AreaDefinition;
+  class JetDefinition;
+}
+#endif
+
 #include "AliJetFinder.h"
-class AliFastJetHeader;
+
+class AliFastJetInput;
+class AliFastJetBkg;
+
+using namespace std;
 
 class AliFastJetFinder : public AliJetFinder
 {
@@ -22,32 +45,19 @@ class AliFastJetFinder : public AliJetFinder
   AliFastJetFinder();
   ~AliFastJetFinder();
 
-  // getters
-
-  // setters
-  void SetJetHeader(AliFastJetHeader* h) {fHeader= h;}
-  // others
-  void FindJets();
-  void RunAlgorithm(Int_t& nJets,Float_t* etJet,Float_t* etaJet,Float_t* phiJet,
-                    Float_t* etsigJet, Float_t* etallJet, Int_t* ncellsJet,
-                    Int_t& nCell,Float_t* etCell,Float_t* etaCell,Float_t* phiCell,
-                    Float_t* etsigCell, Int_t* jetflagCell);
-  void SubtractBackg(Int_t& nCell, Int_t* jetflagCell, Float_t* etCell,
-                     Int_t& nJets, Float_t* etJet, Float_t* etallJet, Int_t* ncellsJet,
-                     Float_t& meanptCell, Float_t& sqptCell, Float_t& etBackg);
-  void SubtractBackgArea(Int_t& nCell, Int_t* jetflagCell, Float_t* etCell,
-                     Int_t& nJets, Float_t* etJet, Float_t* etallJet);
-  void Reset();
-  void Init();
-  void WriteJHeaderToFile();
-
- protected:
-
-  AliFastJetHeader* fHeader;         // pointer to jet header
-  TH2F*             fLego;           //! Lego Histo
-  TH2F*             fLegoSignal;    // ! Lego histogram for signal
-
-  ClassDef(AliFastJetFinder,1)
+  virtual void      FindJets(); 
+  void              RunTest(const char* datafile); // a simple test
+  virtual void      WriteJHeaderToFile() const;
+  virtual Bool_t    ProcessEvent();
+      
+  protected:
+  AliFastJetFinder(const AliFastJetFinder& rfj);
+  AliFastJetFinder& operator = (const AliFastJetFinder& rsfj);
+  AliFastJetInput*  fInputFJ;  //! input particles array
+  AliFastJetBkg*    fJetBkg;   //! pointer to bkg class
+
+  ClassDef(AliFastJetFinder,3) //  Fastjet analysis class
+
 };
 
 #endif