2 #include "AliVVertex.h"
4 #include "AliCentrality.h"
5 #include "AliEventplane.h"
6 #include "AliMultSelection.h"
7 #include "AliInputEventHandler.h"
25 for (
auto &d : fVtx) d = -999.;
40 TObjString *ps(
nullptr);
44 const auto next(src.
fAct->MakeIterator());
45 while ((ps = static_cast<TObjString*>((*next)()))) {
46 const auto s(ps->String());
49 if (p)
fAct->Add(
new TObjString(s.Data()),
55 for (
auto &d : src.
fVtx)
fVtx[l++] = d;
65 if (&src==
this)
return *
this;
67 TNamed::operator=(src);
74 TObjString *ps(
nullptr);
78 const auto next(src.
fAct->MakeIterator());
79 while ((ps = static_cast<TObjString*>((*next)()))) {
80 const auto s(ps->String());
83 if (p)
fAct->Add(
new TObjString(s.Data()),
89 for (
auto &d : src.
fVtx)
fVtx[l++] = d;
110 const auto pV(pH->GetEvent());
if (!pV)
return;
113 fPS = pH->IsEventSelected();
114 fTrg = pV->GetFiredTriggerClasses();
117 const auto pVtx(pV->GetPrimaryVertex());
118 SetTitle(pVtx->GetTitle());
123 TObjString *ps(
nullptr);
124 const auto next(
fAct->MakeIterator());
126 if (
TString(GetName()).Contains(
"old")) {
127 const auto pm(pV->GetCentrality());
128 if (pm)
while ((ps = static_cast<TObjString*>((*next)()))) {
129 const auto s(ps->String());
131 if (p) p->SetVal(pm->GetCentralityPercentile(s.Data()));
134 const auto pm(static_cast<AliMultSelection*>(pV->FindListObject(
"MultSelection")));
135 if (pm)
while ((ps = static_cast<TObjString*>((*next)()))) {
136 const auto s(ps->String());
138 if (p) p->SetVal(pm->GetMultiplicityPercentile(s.Data()));
144 const auto pEP(pV->GetEventplane());
145 if (pEP)
fEP = pEP->GetEventplane(
"Q");
158 if (!
fAct)
return -999.;
159 if (s.IsNull())
return -999.;
163 if (!p)
return -999.;
180 for (
auto &d :
fVtx) d = -999.;
184 TObjString *ps(
nullptr);
185 const auto next(
fAct->MakeIterator());
186 while ((ps = static_cast<TObjString*>((*next)()))) {
187 const auto s(ps->String());
189 if (p) p->SetVal(-999.);
Bool_t Data(TH1F *h, Double_t *rangefit, Bool_t writefit, Double_t &sgn, Double_t &errsgn, Double_t &bkg, Double_t &errbkg, Double_t &sgnf, Double_t &errsgnf, Double_t &sigmafit, Int_t &status)