#include <TRandom.h>
+#include "AliLog.h"
#include "AliFMDDigitizer.h"
#include "AliFMD.h"
#include "AliFMDhit.h"
{
// ctor which should be used
// fDebug =0;
-#ifdef DEBUG
- Info("AliFMDDigitizer"," processed");
-#endif
+ AliDebug(1," processed");
}
//------------------------------------------------------------------------
pOutFMD = outRL->GetLoader("FMDLoader");
-#ifdef DEBUG
- Info("Hits2Digits Exec"," start...";
-#endif
+ AliDebug(1," start...");
Int_t volume, sector, ring, charge;
if (inRL == 0x0)
{
- Error("Exec","Can not find Run Loader for input stream 0");
+ AliError("Can not find Run Loader for input stream 0");
return;
}
if (fFMD == 0x0)
{
- Error("Exec","Can not get FMD from gAlice");
+ AliError("Can not get FMD from gAlice");
return;
}
// Loop over files to digitize
for (Int_t inputFile=0; inputFile<nFiles;inputFile++)
{
-#ifdef DEBUG
- Info(" Digitizing event number ",fManager->GetOutputEventNr()) ;
-#endif
+ AliDebug(1,Form(" Digitizing event number %d",fManager->GetOutputEventNr()));
if (fFMD)
{
if (brHits) {
fFMD->SetHitsAddressBranch(brHits);
}else{
- Fatal("Exec","EXEC Branch FMD hit not found");
+ AliFatal("Branch FMD hit not found");
}
TClonesArray *fFMDhits = fFMD->Hits ();
Int_t PutNoise(Int_t charge) {return (Int_t)(gRandom->Gaus(charge,500));}
TClonesArray *Digits() const {return fDigits;}
TClonesArray *Hits() const {return fHits;}
- Bool_t GetDebug() const {return fManager->GetDebug();}
enum {kBgTag = -1};
//Granularity
fSectorsSi1=20;
- // fRingsSi1=256*2;
- fRingsSi1=3; // for drawing only
+ fRingsSi1=256*2;
+ // fRingsSi1=3; // for drawing only
fSectorsSi2=40;
- // fRingsSi2=128*2;
- fRingsSi2=3; //for drawing onl
+ fRingsSi2=128*2;
+ // fRingsSi2=3; //for drawing onl
if(ifmd==1||ifmd==3)
{
gMC->Gsdvn(nameSector, nameSi , fSectorsSi2, 2);