//-------------------------------------------------------------------------
#include "AliKalmanTrack.h"
+#include "AliLog.h"
#include "AliPDG.h"
#include "TPDGCode.h"
#include "TDatabasePDG.h"
// Default constructor
//
if (fgConvConst==0) {
- Fatal("AliKalmanTrack()", "The magnetic field has not been set!");
+ AliFatal("The magnetic field has not been set!");
}
fStartTimeIntegral = kFALSE;
// Copy constructor
//
if (fgConvConst==0) {
- Fatal("AliKalmanTrack(const AliKalmanTrack&)",
- "The magnetic field has not been set!");
+ AliFatal("The magnetic field has not been set!");
}
fStartTimeIntegral = t.fStartTimeIntegral;
Double_t AliKalmanTrack::GetX() const
{
// Returns the X coordinate of the current track position
- Warning("GetX()","Method must be overloaded !\n");
+ AliWarning("Method must be overloaded !");
return 0.;
}
//_______________________________________________________________________
Double_t AliKalmanTrack::GetdEdx() const
{
// Returns the dE/dx of the track
- Warning("GetdEdx()","Method must be overloaded !\n");
+ AliWarning("Method must be overloaded !");
return 0.;
}
//
//if (fStartTimeIntegral)
- // Warning("StartTimeIntegral", "Reseting Recorded Time.");
+ // AliWarning("Reseting Recorded Time.");
fStartTimeIntegral = kTRUE;
for(Int_t i=0; i<fgkTypes; i++) fIntegratedTime[i] = 0;
if (!fStartTimeIntegral) {
- Warning("GetIntegratedTime","Time integration not started");
+ AliWarning("Time integration not started");
return 0.;
}
for (Int_t i=0; i<fgkTypes; i++)
if (pdgCode[i] == TMath::Abs(pdg)) return fIntegratedTime[i];
- Warning(":GetIntegratedTime","Particle type [%d] not found", pdg);
+ AliWarning(Form("Particle type [%d] not found", pdg));
return 0;
}
if (TMath::Abs(dt1)/(TMath::Abs(t1)+1.e-3) < 1.e-4)
if (TMath::Abs(dt2)/(TMath::Abs(t2)+1.e-3) < 1.e-4) {
if ((gt1*gt1+gt2*gt2) > 1.e-4/dy2/dy2)
- Warning("GetDCA"," stopped at not a stationary point !\n");
+ AliWarning(" stopped at not a stationary point !");
Double_t lmb=h11+h22; lmb=lmb-TMath::Sqrt(lmb*lmb-4*det);
if (lmb < 0.)
- Warning("GetDCA"," stopped at not a minimum !\n");
+ AliWarning(" stopped at not a minimum !");
break;
}
if (dd<dm) break;
dt1*=0.5; dt2*=0.5;
if (div>512) {
- Warning("GetDCA"," overshoot !\n"); break;
+ AliWarning(" overshoot !"); break;
}
}
dm=dd;
}
- if (max<=0) Warning("GetDCA"," too many iterations !\n");
+ if (max<=0) AliWarning(" too many iterations !");
Double_t cs=TMath::Cos(GetAlpha());
Double_t sn=TMath::Sin(GetAlpha());
Double_t dca=GetDCA(p,xthis,xp);
if (!PropagateTo(xthis,d,x0)) {
- //Warning("PropagateToDCA"," propagation failed !\n");
+ //AliWarning(" propagation failed !");
return 1e+33;
}
if (!p->PropagateTo(xp,d,x0)) {
- //Warning("PropagateToDCA"," propagation failed !\n";
+ //AliWarning(" propagation failed !";
return 1e+33;
}
#include "AliTracker.h"
#include "AliCluster.h"
#include "AliKalmanTrack.h"
+#include "AliLog.h"
#include "AliRun.h"
#include "AliMagF.h"
// The default constructor.
//--------------------------------------------------------------------
AliMagF *field=gAlice->Field();
- if (field==0) Fatal("AliTracker()","Can't access the field map !");
+ if (field==0) AliFatal("Can't access the field map !");
SetFieldMap(field);
}
//--------------------------------------------------------------------
//This passes the field map to the reconstruction.
//--------------------------------------------------------------------
- if (map==0) ::Fatal("SetFieldMap","Can't access the field map !");
+ if (map==0) AliFatalClass("Can't access the field map !");
AliKalmanTrack::SetConvConst(1000/0.299792458/map->SolenoidField());
fgkFieldMap=map;
}
#include <TFile.h>
#include <TTree.h>
+#include "AliLog.h"
#include "AliGenEventHeader.h"
#include "AliHeader.h"
#include "AliVertexGenFile.h"
fFile = TFile::Open(fileName);
if (!fFile || !fFile->IsOpen()) {
- Error("AliVertexGenFile", "could not open file %s", fileName);
+ AliError(Form("could not open file %s", fileName));
delete fFile;
fFile = NULL;
return;
}
fTree = (TTree*) fFile->Get("TE");
if (!fTree) {
- Error("AliVertexGenFile", "no header tree found in file %s", fileName);
+ AliError(Form("no header tree found in file %s", fileName));
dir->cd();
return;
}
Int_t entry = fEvent++ / fEventsPerEntry;
if (!fTree) {
- Error("GetVertex", "no header tree");
+ AliError("no header tree");
return TVector3(0,0,0);
}
if (fTree->GetEntry(entry) <= 0) {
- Error("GetVertex", "error loading entry %d", entry);
+ AliError(Form("error loading entry %d", entry));
return TVector3(0,0,0);
}
if (!fHeader->GenEventHeader()) {
- Error("GetVertex", "no generator event header");
+ AliError("no generator event header");
return TVector3(0,0,0);
}