#include "TH1F.h"
#include "TH2F.h"
#include "AliMathBase.h"
+
ClassImp(AliTPCCalROC)
TH1F * his = new TH1F(name,name,100, min,max);
for (UInt_t irow=0; irow<fNRows; irow++){
UInt_t npads = (Int_t)GetNPads(irow);
- for (UInt_t ipad=0; ipad<=npads; ipad++){
+ for (UInt_t ipad=0; ipad<npads; ipad++){
his->Fill(GetValue(irow,ipad));
}
}
TH2F * his = new TH2F(name,name,fNRows+10,-5, fNRows+5, maxPad+10, -(Int_t(maxPad/2))-5, maxPad/2+5);
for (UInt_t irow=0; irow<fNRows; irow++){
UInt_t npads = (Int_t)GetNPads(irow);
- for (UInt_t ipad=0; ipad<=npads; ipad++){
+ for (UInt_t ipad=0; ipad<npads; ipad++){
his->Fill(irow+0.5,Int_t(ipad)-Int_t(npads/2)+0.5,GetValue(irow,ipad));
}
}
TH2F * his = new TH2F(name,name,fNRows+10,-5, fNRows+5, maxPad+10, -(Int_t(maxPad/2))-5, maxPad/2+5);
for (UInt_t irow=0; irow<fNRows; irow++){
UInt_t npads = (Int_t)GetNPads(irow);
- for (UInt_t ipad=0; ipad<=npads; ipad++){
+ for (UInt_t ipad=0; ipad<npads; ipad++){
if (TMath::Abs(GetValue(irow,ipad)-mean)>delta)
his->Fill(irow+0.5,Int_t(ipad)-Int_t(npads/2)+0.5,1);
}