ROOT logo
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
*                                                                        *
* Author: The ALICE Off-line Project.                                    *
* Contributors are mentioned in the code where appropriate.              *
*                                                                        *
* Permission to use, copy, modify and distribute this software and its   *
* documentation strictly for non-commercial purposes is hereby granted   *
* without fee, provided that the above copyright notice appears in all   *
* copies and that both the copyright notice and this permission notice   *
* appear in the supporting documentation. The authors make no claims     *
* about the suitability of this software for any purpose. It is          *
* provided "as is" without express or implied warranty.                  *
**************************************************************************/
//
//
// VZERO event plane task for 2010
// Gain equalization + Recentering 
// Need a root file
//
//
#ifndef ALIHFEVZEROEVENTPLANE_H
#define ALIHFEVZEROEVENTPLANE_H

#include "TProfile.h"
#include <AliVEvent.h>
#include "TString.h"
//#include "TH1F.h"
//#include "TList.h"


class AliHFEVZEROEventPlane : public TNamed {
 public:
  AliHFEVZEROEventPlane();
  AliHFEVZEROEventPlane(const char *name, const Char_t *title);
  AliHFEVZEROEventPlane(const AliHFEVZEROEventPlane &ref);
  AliHFEVZEROEventPlane& operator=(const AliHFEVZEROEventPlane &ref);
  virtual void Copy(TObject &o) const;
  ~AliHFEVZEROEventPlane();

  void ProcessEvent(AliVEvent *event);
  
  void  SetNameFile(TString namefile) {fnamefile = namefile;};
  Bool_t OpenInfoCalbration(Int_t run);

  Double_t GetEventPlaneV0A() const {return fEventPlaneV0A;};
  Double_t GetEventPlaneV0C() const {return fEventPlaneV0C;};
  Double_t GetEventPlaneV0()  const {return fEventPlaneV0;};

  TList *GetOutputList() const {return fOutputList;};

 private:
  virtual void Analyze(AliVEvent* esdEvent); 

  Double_t fEventPlaneV0A;          // Corrected event plane V0A
  Double_t fEventPlaneV0C;          // Corrected event plane V0C
  Double_t fEventPlaneV0;           // Corrected event plane V0

  AliVEvent* fESD;                  //! ESD object
  Int_t        fRun;                // Run number
  TProfile *fMultV0;                //! fMultiplicityV0
  Float_t fV0Cpol,fV0Apol;          // fV0Cpol, fV0Apol
  static const Int_t fgknCentrBin = 9; // Centrality bins
  Float_t fMeanQ[fgknCentrBin][2][2];  // mean for centering
  Float_t fWidthQ[fgknCentrBin][2][2]; // rms for centering
  TString fnamefile;                // name of the file with the coefficient
  TList       *fOutputList;         //! Output list
  TProfile    *fMultV0Before;       //! fMultiplicityV0 Before
  TProfile    *fMultV0After;        //! fMultiplicityV0 After
  TH1F *fQBefore[fgknCentrBin][2][2]; //! Q centering before
  TH1F *fQAfter[fgknCentrBin][2][2];  //! Q centering after
 

  ClassDef(AliHFEVZEROEventPlane, 1);    //Analysis task for high pt analysis 
};

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