#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),
// 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;
}
class AliESDEvent;
class AliTRDgtuTMU;
+class AliTRDfeeParam;
class TTree;
class TList;
protected:
AliRunLoader *fRunLoader; //!
+ AliTRDfeeParam *fFeeParam; //!
AliTRDgtuTMU *fTMU; // pointer to TMU simulation class
TClonesArray *fTrackletArray; // array of tracklets
TTree *fTrackTree; // tree to hold the tracks of one event, used for writing in WriteTracksToFile()