max = mean+sigma;
}
}
- char name[1000];
- sprintf(name,"%s Pad 1D",GetTitle());
- TH1F * his = new TH1F(name,name,100, min,max);
+ TString name=Form("%s Pad 1D",GetTitle());
+ TH1F * his = new TH1F(name.Data(),name.Data(),100, min,max);
for (Int_t isec = 0; isec < kNsec; isec++) {
if (side==1 && isec%36>18) continue;
if (side==-1 && isec%36<18) continue;
strDraw+=":lX";
legend = new TLegend(0.5,0.50,0.9,0.9, Form("%s TPC A side", varTitle));
for (Int_t isec=-1; isec<18; isec+=1){
- TCut cutSec=Form("sector%36==%d",isec);
+ TCut cutSec=Form("sector%%36==%d",isec);
cutSec+=cutUser;
if (isec==-1) cutSec="sector%36<18";
chain->SetMarkerColor(1+(isec+2)%5);
//
legend = new TLegend(0.5,0.50,0.9,0.9, Form("%s TPC C side", varTitle));
for (Int_t isec=-1; isec<18; isec+=1){
- TCut cutSec=Form("(sector+18)%36==%d",isec);
+ TCut cutSec=Form("(sector+18)%%36==%d",isec);
cutSec+=cutUser;
if (isec==-1) cutSec="sector%36>18";
chain->SetMarkerColor(1+(isec+2)%5);
for (UInt_t irow=0; irow<calRoc->GetNrows(); irow+=1){
Int_t jrow=irow;
if (isec>=36) jrow+=63;
- Float_t xrow=proc->GetPadRowRadii(isec, irow);
for (UInt_t ipad=0;ipad<proc->GetNPads(isec,irow);ipad+=1){
proc->GetPositionGlobal(isec,irow,ipad, globalPos);
Double_t phi=TMath::ATan2(globalPos[1],globalPos[0]);