#include "AliESDTrdTrack.h"
#include "AliTRDgtuSim.h"
+#include "AliTRDfeeParam.h"
#include "AliTRDgtuTMU.h"
#include "AliTRDtrackGTU.h"
#include "AliTRDtrackletWord.h"
AliTRDgtuSim::AliTRDgtuSim(AliRunLoader *rl)
: TObject(),
fRunLoader(rl),
+ fFeeParam(AliTRDfeeParam::Instance()),
fTMU(0x0),
fTrackletArray(0x0),
fTrackTree(0x0),
}
for (Int_t i = 5; i < tokens->GetEntriesFast(); i++) {
UInt_t trackletWord = 0;
- sscanf(((TObjString*) tokens->At(i))->GetString().Data(), "%u", &trackletWord);
+ sscanf(((TObjString*) tokens->At(i))->GetString().Data(), "%i", &trackletWord);
if (trackletWord == 0x10001000)
break;
AliDebug(2,Form("%i. tracklet: %s -> 0x%08x", i-4, ((TObjString*) tokens->At(i))->GetString().Data(), trackletWord));
// run the GTU on tracklets taken from the loader
// if specified the GTU tracks are written to the ESD event
+ if (!fFeeParam->GetTracklet())
+ return kFALSE;
+
if (!LoadTracklets(loader)) {
AliError("Could not load the tracklets. Nothing done ...");
return kFALSE;
AliDebug(1,"Loading tracklets ...");
+ if (!fFeeParam->GetTracklet())
+ return kFALSE;
+
if (!loader) {
AliError("No loader given!");
return kFALSE;
// these tracks contain more information than the ones in the ESD
if (!fTrackTree) {
- AliError("No track tree found!");
+ AliDebug(1, "No track tree found!");
return kFALSE;
}