2 // Class that contains results from FMD eventplane calculations
4 #include "AliAODForwardEP.h"
8 #include <TObjString.h>
11 ClassImp(AliAODForwardEP)
16 //____________________________________________________________________
17 AliAODForwardEP::AliAODForwardEP()
31 //____________________________________________________________________
32 AliAODForwardEP::AliAODForwardEP(Bool_t isMC)
45 // isMC If set to true this is for MC data (effects branch name)
47 fHist.SetXTitle("#eta");
48 fHist.SetDirectory(0);
52 //____________________________________________________________________
54 AliAODForwardEP::Init(const TAxis& etaAxis)
56 // Initialize the histogram with an eta axis
59 // etaAxis Eta axis to use
61 fHist.SetBins(etaAxis.GetNbins()/10, etaAxis.GetXmin(), etaAxis.GetXmax());
64 //____________________________________________________________________
66 AliAODForwardEP::Clear(Option_t* option)
68 // Clear (or reset) internal values
71 // option Passed to TH1::Reset
80 //____________________________________________________________________
82 AliAODForwardEP::Browse(TBrowser* /*b*/)
89 /* static TObjString ipz;
90 static TObjString trg;
91 static TObjString cnt;
92 static TObjString ncl;
93 ipz = Form("ip_z=%fcm", fIpZ);
94 trg = GetTriggerString(fTriggers);
95 cnt = Form("%+6.1f%%", fCentrality);
96 ncl = Form("%d clusters", fNClusters);
105 //____________________________________________________________________
107 AliAODForwardEP::Print(Option_t* option) const
114 std::cout << "Total FMD EP: \t" << fEpT <<std::endl;
115 std::cout << "FMD1+2 EP: \t" << fEpA <<std::endl;
116 std::cout << "FMD3 EP: \t" << fEpC <<std::endl;
117 std::cout << "Random Subep 1: \t" << fEp1 <<std::endl;
118 std::cout << "Random Subep 2: \t" << fEp2 <<std::endl;
121 //____________________________________________________________________