#include "AliMUONDigit.h"
#include "AliMUONDigitizerv2.h"
#include "AliMUONTransientDigit.h"
-#include "AliLog.h"
ClassImp(AliMUONDigitizerv2)
// Loop over all chambers and s-digits in the input stream and create
// AliMUONTransientDigit objects from them. These are then added to fTDList.
- AliDebug(2,"Generating transient digits using treeH = 0x%X");
+ if (GetDebug() > 1)
+ Info("GenerateTransientDigits", "Generating transient digits using treeH = 0x%X");
+
//
// Loop over SDigits
Int_t ndig, k;
// Makes a transient digit from the specified s-digit from the specified chamber.
// Once the digit is created it is added to the fTDList.
- AliDebug(4,Form("Making transient digit from s-digit for chamber %d.", iChamber));
+ if (GetDebug() > 3)
+ Info("MakeTransientDigitFromSDigit",
+ "Making transient digit from s-digit for chamber %d.", iChamber);
+
Int_t digits[6];
//
// Creating a new TransientDigits from SDigit
digits[5] = sDigit->Hit(); // Hit number in the list
- AliDebug(5,Form("Made digit from sDigit 0x%X: PadX %d\tPadY %d\tPlane %d\tCharge %d\tHit %d",
- (void*)sDigit, digits[0], digits[1], digits[2], digits[3], digits[5]));
+ if (GetDebug() > 4)
+ Info("MakeTransientDigitFromSDigit",
+ "Made digit from sDigit 0x%X: PadX %d\tPadY %d\tPlane %d\tCharge %d\tHit %d",
+ (void*)sDigit, digits[0], digits[1], digits[2], digits[3], digits[5]);
AliMUONTransientDigit* mTD = new AliMUONTransientDigit(iChamber, digits);
// Copy list of tracks and trackcharge
// If the s-digits are not loaded then the muon loader is used to load the
// s-digits into memory.
- AliDebug(3,"Loading s-digits in READ mode and setting the tree address.");
+ if (GetDebug() > 2)
+ Info("InitInputData", "Loading s-digits in READ mode and setting the tree address.");
+
fMUONData->SetLoader(muonloader);
if (muonloader->TreeS() == NULL)
muonloader->LoadSDigits("READ");
if (muonloader->TreeS() == NULL)
{
- AliError("Can not load the s-digits tree.");
+ Error("InitInputData", "Can not load the s-digits tree.");
return kFALSE;
};
};
{
// Overridden to release and unload s-digits from memory.
- AliDebug(3,"Releasing loaded s-digits.");
+ if (GetDebug() > 2) Info("CleanupInputData", "Releasing loaded s-digits.");
fMUONData->ResetSDigits();
muonloader->UnloadSDigits();
};