ROOT logo
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

/* $Id: AliFlowLYZHist1.h 29627 2008-10-31 10:30:41Z snelling $ */

#ifndef AliFlowLYZHist1_H
#define AliFlowLYZHist1_H


#include "TComplex.h"  //explicitly called in void Fill(Float_t f, TComplex C);

class TH1D;
class TCollection;
class TList;
class TBrowser;

// Description: Class to organise histograms for Flow 
//              by the LeeYangZeros method in the first run.
//              Also includes methods to find the first minimum R0
//              in the generating function.


class AliFlowLYZHist1: public TNamed  {

 public:

  AliFlowLYZHist1();                          //default constructor
  AliFlowLYZHist1(Int_t theta, const char *name ,Bool_t useSum = kTRUE);               //constructor
  virtual  ~AliFlowLYZHist1();                //destructor
  
  Bool_t   IsFolder() const {return kTRUE;};
  void     Browse(TBrowser *b); 

  void     Fill(Double_t f, TComplex c);      //fill the histograms
  TH1D*    FillGtheta();                      //fills fHistGtheta
  Double_t GetR0();                           //get R0
  Double_t GetBinCenter(Int_t i);             //Get a bincentre of fHistGtheta
  Int_t    GetNBins();                        //Gets Nbins

  TH1D*     GetHistGtheta()      {return this->fHistGtheta;} ;
  TProfile* GetHistProReGtheta() {return this->fHistProReGtheta;} ;
  TProfile* GetHistProImGtheta() {return this->fHistProImGtheta;} ;
  TList*    GetHistList()        {return this->fHistList;} ;  

  virtual Double_t  Merge(TCollection *aList);           //merge function
  void              Print(Option_t* option = "") const;  //method to print stats
 
private:

  AliFlowLYZHist1(const AliFlowLYZHist1& aAnalysis);             //copy constructor
  AliFlowLYZHist1& operator=(const AliFlowLYZHist1& aAnalysis);  //assignment operator

  TH1D*     fHistGtheta;             //holds |Gtheta|^2(r)
  TProfile* fHistProReGtheta;        //holds Re of Gtheta(r)
  TProfile* fHistProImGtheta;        //holds Im of Gtheta(r)
  TList*    fHistList;               //list to hold all histograms  

  ClassDef(AliFlowLYZHist1,1)        // macro for rootcint
    };
 
     
#endif
 AliFlowLYZHist1.h:1
 AliFlowLYZHist1.h:2
 AliFlowLYZHist1.h:3
 AliFlowLYZHist1.h:4
 AliFlowLYZHist1.h:5
 AliFlowLYZHist1.h:6
 AliFlowLYZHist1.h:7
 AliFlowLYZHist1.h:8
 AliFlowLYZHist1.h:9
 AliFlowLYZHist1.h:10
 AliFlowLYZHist1.h:11
 AliFlowLYZHist1.h:12
 AliFlowLYZHist1.h:13
 AliFlowLYZHist1.h:14
 AliFlowLYZHist1.h:15
 AliFlowLYZHist1.h:16
 AliFlowLYZHist1.h:17
 AliFlowLYZHist1.h:18
 AliFlowLYZHist1.h:19
 AliFlowLYZHist1.h:20
 AliFlowLYZHist1.h:21
 AliFlowLYZHist1.h:22
 AliFlowLYZHist1.h:23
 AliFlowLYZHist1.h:24
 AliFlowLYZHist1.h:25
 AliFlowLYZHist1.h:26
 AliFlowLYZHist1.h:27
 AliFlowLYZHist1.h:28
 AliFlowLYZHist1.h:29
 AliFlowLYZHist1.h:30
 AliFlowLYZHist1.h:31
 AliFlowLYZHist1.h:32
 AliFlowLYZHist1.h:33
 AliFlowLYZHist1.h:34
 AliFlowLYZHist1.h:35
 AliFlowLYZHist1.h:36
 AliFlowLYZHist1.h:37
 AliFlowLYZHist1.h:38
 AliFlowLYZHist1.h:39
 AliFlowLYZHist1.h:40
 AliFlowLYZHist1.h:41
 AliFlowLYZHist1.h:42
 AliFlowLYZHist1.h:43
 AliFlowLYZHist1.h:44
 AliFlowLYZHist1.h:45
 AliFlowLYZHist1.h:46
 AliFlowLYZHist1.h:47
 AliFlowLYZHist1.h:48
 AliFlowLYZHist1.h:49
 AliFlowLYZHist1.h:50
 AliFlowLYZHist1.h:51
 AliFlowLYZHist1.h:52
 AliFlowLYZHist1.h:53
 AliFlowLYZHist1.h:54
 AliFlowLYZHist1.h:55
 AliFlowLYZHist1.h:56
 AliFlowLYZHist1.h:57
 AliFlowLYZHist1.h:58
 AliFlowLYZHist1.h:59
 AliFlowLYZHist1.h:60
 AliFlowLYZHist1.h:61
 AliFlowLYZHist1.h:62