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

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

#ifndef AliFlowLYZHist2_H
#define AliFlowLYZHist2_H

#include "TProfile.h"   //no forward declaration possible because of inline functions

class TComplex;
class TProfile2D;
class TCollection;
class TList;
class TBrowser;

// Description: Class to organise histograms for Flow
//              by the LeeYangZeros method in the second run.
//              Also contains methods to get values from the histograms
//              which are called in AliFlowLeeYandZerosMaker::Finish().


class AliFlowLYZHist2: public TNamed  {

 public:

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

  void     Fill(Double_t d1,Double_t d2, TComplex c);   //fill the histograms
  Int_t    GetNbinsX()                
    {Int_t iMaxEtaBins = fHistProReNumer->GetNbinsX();  return iMaxEtaBins;}     
  Int_t    GetNbinsXPt()              
    {Int_t iMaxPtBins = fHistProReNumerPt->GetNbinsX(); return iMaxPtBins;}
  Double_t GetBinCenter(Int_t i)   
    {Double_t dEta = fHistProReNumer->GetXaxis()->GetBinCenter(i);  return dEta;}
  Double_t GetBinCenterPt(Int_t i) 
    {Double_t dPt = fHistProReNumerPt->GetXaxis()->GetBinCenter(i); return dPt;}
  TComplex GetNumerEta(Int_t i);                   //get numerator for diff. flow (eta)
  TComplex GetNumerPt(Int_t i);                    //get numerator for diff. flow (pt)

  TProfile*   GetHistProReNumer()   {return this->fHistProReNumer;}         
  TProfile*   GetHistProImNumer()   {return this->fHistProImNumer;}        
  TProfile*   GetHistProReNumerPt() {return this->fHistProReNumerPt;} 
  TProfile*   GetHistProImNumerPt() {return this->fHistProImNumerPt;} 
  TProfile2D* GetHistProReNumer2D() {return this->fHistProReNumer2D;}       
  TProfile2D* GetHistProImNumer2D() {return this->fHistProImNumer2D;}
  TList*      GetHistList()         {return this->fHistList;}   
  
  virtual Double_t Merge(TCollection *aList);          //merge function
  void             Print(Option_t* option = "") const; //method to print stats

 private:
 
  AliFlowLYZHist2(const AliFlowLYZHist2& aAnalysis);             //copy constructor
  AliFlowLYZHist2& operator=(const AliFlowLYZHist2& aAnalysis);  //assignment operator
  
  TProfile*   fHistProReNumer;         //holds Re of Numerator(eta)
  TProfile*   fHistProImNumer;         //holds Im of Numerator(eta)
  TProfile*   fHistProReNumerPt;       //holds Re of Numerator(pt)
  TProfile*   fHistProImNumerPt;       //holds Im of Numerator(pt)
  TProfile2D* fHistProReNumer2D;       //holds Re of Numerator
  TProfile2D* fHistProImNumer2D;       //holds Im of Numerator
  TList*      fHistList;               //list to hold all histograms  

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