AliHLTTPCCATrackerComponent::~AliHLTTPCCATrackerComponent()
{
// see header file for class documentation
- delete fTracker;
+ if (fTracker) delete fTracker;
}
//
if ( fTracker ) return EINPROGRESS;
- fTracker = new AliHLTTPCCATrackerFramework();
+ //fTracker = new AliHLTTPCCATrackerFramework();
+ //Do not initialize the TrackerFramework here since the CUDA framework is thread local and DoInit is called from different thread than DoEvent
TString arguments = "";
for ( int i = 0; i < argc; i++ ) {
int AliHLTTPCCATrackerComponent::DoDeinit()
{
// see header file for class documentation
- delete fTracker;
+ if (fTracker) delete fTracker;
fTracker = NULL;
return 0;
}
}
if ( !fTracker ) fTracker = new AliHLTTPCCATrackerFramework;
+
int slicecount = maxslice + 1 - minslice;
if (slicecount > fTracker->MaxSliceCount())
{