TTreeSRedirector * cstream = fDebugStreamer;
if (!cstream) return;
if (!fESD) return;
+ if (!fTracksAcorde) return;
Int_t ntracks0 =fESD->GetNumberOfTracks();
- Int_t ntracks = (fTracksAcorde) ? fTracksAcorde->GetEntries():0;
+ Int_t ntracks = fTracksAcorde->GetEntries();
Float_t mag = fESD->GetMagneticField();
Int_t run = fESD->GetRunNumber();
Int_t event = fESD->GetEventNumberInFile();
//
fPosYcor[0] = 0; fPosYcor[1] = 0; fPosYcor[2] = 0;
fPosZcor[0] = 0; fPosZcor[1] = 0; fPosZcor[2] = 0;
+ fErrorRMSSys[0]=0; fErrorRMSSys[1]=0;
}
AliTPCClusterParam::AliTPCClusterParam(const AliTPCClusterParam& param):
snprintf(hcut1,300,"Dim==%d&&QMean<0&&Pad==%d",idim,ipad);
snprintf(hexp1,300,"(Resol-AliTPCClusterParam::SGetError0(Dim,Pad,Zm,AngleM))/Resol>>%s",hname1);
TH1F his1DRel0(hname1, hname1, 100,-0.2, 0.2);
- snprintf(hname1,1000,"Dim==%d&&QMean<0&&Pad=%d",idim,ipad);
+ snprintf(hname1,300,"Dim==%d&&QMean<0&&Pad=%d",idim,ipad);
tree->Draw(hexp1,hcut1,"");
his1DRel0.Write();
//
//---------------------------------------------------------------
TTree *tH = loader->TreeH();
- if (tH == 0x0)
+ if (tH == 0x0){
AliFatal("Can not find TreeH in folder");
-
+ return;
+ }
tpc->SetTreeAddress();
Stat_t ntracks = tH->GetEntries();
//---------------------------------------------------------------
TTree *tH = loader->TreeH();
- if (tH == 0x0)
+ if (tH == 0x0){
AliFatal("Can not find TreeH in folder");
-
+ return;
+ }
tpc->SetTreeAddress();
Stat_t ntracks = tH->GetEntries();
if(event != 61) return -1;
TObject *select = gPad->GetSelected();
- TString name=select->GetName();
if(!select) return -1;
+ TString name=select->GetName();
if(!select->InheritsFrom("TH2")) {gPad->SetUniqueID(0); return -1; }
if( name=="hglobal" || name=="SIDE A" ) side = 0;
else if( name=="hglobal2" || name=="SIDE C" ) side = 1;
//
TLinearFitter *fitter = new TLinearFitter(3);
- Double_t *x = new Double_t[3];
+ Double_t x[3]={0};
Double_t y = 0;
const Float_t kMaxDelta=0.5;
//
TVectorD paramA(3), paramC(3);
- TLinearFitter *fitterA = new TLinearFitter(3);
- TLinearFitter *fitterC = new TLinearFitter(3);
+ TLinearFitter *fitterA = 0;
+ TLinearFitter *fitterC = 0;
fitterA = GetLinearFitter(3, 0, timeSec);
fitterA->GetParameters(paramA);
Double_t k = (fvalA-fvalC)/(2*247);
Double_t tempValue = fvalC+(fvalA-fvalC)/2+k*z;
- fitterA->~TLinearFitter();
- fitterC->~TLinearFitter();
+ delete fitterA;
+ delete fitterC;
return tempValue;
//
//
//
- if (fCalibCovar) return;
+ if (!fCalibCovar) return;
if (!fCalibration) return;
if (!fCalibration->FindObject(varName)) return;
Int_t ncalibs = fCalibration->GetEntries();
}
Printf("x0=%f finished",x[0]);
}
-
+ delete [] adx;// = new Double_t[ncalibs];
+ delete [] ady;// = new Double_t[ncalibs];
+ delete [] adz;// = new Double_t[ncalibs];
+ delete [] adr;// = new Double_t[ncalibs];
+ delete [] adrphi;// = new Double_t[ncalibs];
+
}