20 fArray.SetName(
"acceptance");
108 if (b <= 0 || b >
fArray.GetEntriesFast()) {
109 AliWarning(Form(
"vertex bin %d out of range [1,%d]",
110 b,
fArray.GetEntriesFast()));
116 AliWarning(Form(
"No dead channels map found for SPD in vertex bin %d",
120 return static_cast<TH1D*
>(o);
138 AliWarning(
"No vertex array defined");
143 AliWarning(Form(
"vertex %+8.4f out of range [%+8.4f,%+8.4f]",
168 AliWarning(Form(
"Vertex bin %3d out of range [1,%3d]",
173 h->SetName(Form(
"acc_vtxbin%03d", b));
174 h->SetTitle(Form(
"Acceptance correction [%+5.1f<v_{z}<%+5.1f]",
177 h->SetXTitle(
"#eta");
178 h->SetYTitle(
"dN_{ch}/d#eta / sum_i N_{ch,i}");
179 h->SetFillStyle(3001);
182 fArray.AddAtAndExpand(h, b-1);
202 AliWarning(Form(
"Vertex %+8.4f out of range [%+8.4f,%+8.4f]",
231 std::cout <<
" Acceptance correction due to dead channels" 232 <<
" # of vertex bins: " <<
fVertexAxis.GetNbins() <<
"\n" 239 while ((o = next())) std::cout << o->GetName() <<
" ";
240 std::cout << std::endl;
AliCentralCorrAcceptance()
AliCentralCorrAcceptance & operator=(const AliCentralCorrAcceptance &o)
void SetVertexAxis(const TAxis &axis)
Int_t FindVertexBin(Double_t vertex) const
TH1D * GetCorrection(Double_t v) const
Bool_t SetCorrection(Double_t v, TH1D *h)
void Print(Option_t *option="R") const
virtual ~AliCentralCorrAcceptance()