#include "TArrayF.h"
#include "TArrayI.h"
+#include "AliLog.h"
#include "AliRun.h"
#include "AliTOF.h"
#include "AliTOFGeometry.h"
}
// write warning about many tracks going to this pad
if (iTrack == kMAXDIGITS) {
- cerr<<"WARNING: AliTOFSDigit::Update Many hits in the padhit"<<endl;
- cerr<<" ";
- // PrintPad();
+ AliWarning("Many hits in the padhit");
+ // ToAliWarning(PrintPad());
}
}
} else {
Int_t nlocations=sdig->GetNDigits();
for (Int_t j = 0; j < nlocations; j++) {
- Float_t tdcbin=50.; // [ps] hardwired for the time being
+ Float_t tdcbin = AliTOFGeometry::TdcBinWidth();// [ps] hardwired for the time being
Int_t tdc=(Int_t)sdig->GetTdc(j);
Int_t adc=(Int_t)sdig->GetAdc(j);
// getting here only the first track number
}
// write warning about many tracks going to this pad
if (iTrack == kMAXDIGITS) {
- cerr<<"WARNING: AliTOFSDigit::Update Many hits in the padhit"<<endl;
- cerr<<" ";
- // PrintPad();
+ AliWarning("Many hits in the padhit");
+ // ToAliWarning(PrintPad());
}
}
} else {
////////////////////////////////////////////////////////////////////////
-Int_t AliTOFSDigit::GetTotPad() const
+Int_t AliTOFSDigit::GetTotPad(AliTOFGeometry *tofGeom) const
{
//
// Get the "total" index of the pad inside a Sector
//before = 0;
break;
case 1:
- before = AliTOFGeometry::NStripC();
+ before = tofGeom->NStripC();
break;
case 2:
- before = AliTOFGeometry::NStripB() + AliTOFGeometry::NStripC();
+ before = AliTOFGeometry::NStripB() + tofGeom->NStripC();
break;
case 3:
- before = AliTOFGeometry::NStripA() + AliTOFGeometry::NStripB() + AliTOFGeometry::NStripC();
+ before = AliTOFGeometry::NStripA() + AliTOFGeometry::NStripB() + tofGeom->NStripC();
break;
case 4:
- before = AliTOFGeometry::NStripA() + 2*AliTOFGeometry::NStripB() + AliTOFGeometry::NStripC();
+ before = AliTOFGeometry::NStripA() + 2*AliTOFGeometry::NStripB() + tofGeom->NStripC();
break;
}
Int_t padTot = AliTOFGeometry::NpadXStrip()*strip + pad;
return padTot;
}
-