#include "AliLoader.h"
#include "AliMUONTrackK.h" //AZ
#include "AliMC.h"
+#include "AliLog.h"
//************* Defaults parameters for reconstruction
const Double_t AliMUONEventReconstructor::fgkDefaultMinBendingMomentum = 3.0;
{
// Protected copy constructor
- Fatal("AliMUONEventReconstructor", "Not implemented.");
+ AliFatal("Not implemented.");
}
AliMUONEventReconstructor &
if (this == &rhs) return *this;
- Fatal("operator=", "Not implemented.");
+ AliFatal("Not implemented.");
return *this;
}
sprintf(treeName, "TreeK%d", fBkgGeantEventNumber);
fBkgGeantTK = (TTree*)gDirectory->Get(treeName);
if (!fBkgGeantTK) {
- cout << "ERROR: cannot find Kine Tree for background event: " <<
- fBkgGeantEventNumber << endl;
- exit(0);
+ AliError(Form("cannot find Kine Tree for background event: %d",fBkgGeantEventNumber));
+ exit(0);
}
}
if (fBkgGeantTK)
sprintf(treeName, "TreeH%d", fBkgGeantEventNumber);
fBkgGeantTH = (TTree*)gDirectory->Get(treeName);
if (!fBkgGeantTH) {
- cout << "ERROR: cannot find Hits Tree for background event: " <<
- fBkgGeantEventNumber << endl;
+ AliError(Form("cannot find Hits Tree for background event: %d",fBkgGeantEventNumber));
exit(0);
}
if (fBkgGeantTH && fBkgGeantHits) {
Int_t retval = fLoader->LoadHits();
if ( retval)
{
- Error("MakeEventToBeReconstructed","Error occured while loading hits.");
+ AliError("Error occured while loading hits.");
return;
}
treeH = fLoader->TreeH();
if (treeH == 0x0)
{
- Error("MakeEventToBeReconstructed","Can not get TreeH");
+ AliError("Can not get TreeH");
return;
}
}
nTRentries = Int_t(TR->GetEntries());
if (nTRentries != 1) {
- cout << "Error in AliMUONEventReconstructor::AddHitsForRecFromRawClusters"
- << endl;
- cout << "nTRentries = " << nTRentries << " not equal to 1" << endl;
+ AliError(Form("nTRentries = %d not equal to 1 ",nTRentries));
exit(0);
}
fLoader->TreeR()->GetEvent(0); // only one entry
treeR->GetEvent(0); // only one entry
if (!(fMUONData->IsTriggerBranchesInTree())) {
- cout << "Warning in AliMUONEventReconstructor::MakeTriggerTracks"
- << endl;
- cout << "Trigger information is not avalaible, nTRentries = " << nTRentries << " not equal to 1" << endl;
+ AliWarning(Form("Trigger information is not avalaible, nTRentries = %d not equal to 1",nTRentries));
return kFALSE;
}