// #################################################################################
AliHLTVZERORecoComponent::AliHLTVZERORecoComponent() :
AliHLTProcessor(),
- fRunInfo(NULL),
- fDigitsTree(NULL),
+ fRunInfo(NULL),
fVZERORecoParam(NULL),
fVZEROReconstructor(NULL),
fRawReader(NULL) {
break;
}
- fDigitsTree = new TTree("D", "Digits Tree");
- if (!fDigitsTree) {
- iResult=-ENOMEM;
- break;
- }
-
fVZERORecoParam = new AliVZERORecoParam;
if (!fVZERORecoParam) {
iResult=-ENOMEM;
delete fRawReader;
fRawReader = NULL;
- if (!fDigitsTree)
- delete fDigitsTree;
- fDigitsTree = NULL;
-
if (fVZERORecoParam)
delete fVZERORecoParam;
fVZERORecoParam = NULL;
delete fRawReader;
fRawReader = NULL;
- if (!fDigitsTree)
- delete fDigitsTree;
- fDigitsTree = NULL;
-
if (fVZERORecoParam)
delete fVZERORecoParam;
fVZERORecoParam = NULL;
iResult = -1;
}
+ TTree *digitsTree = new TTree("D", "Digits Tree");
+ if (!digitsTree) {
+ iResult=-ENOMEM;
+ }
+
if (iResult >= 0) {
// -- Set VZERO EquipmentID
fRawReader->SetEquipmentID(3584);
// -- 1. step VZERO reconstruction
- fVZEROReconstructor->ConvertDigits(fRawReader, fDigitsTree);
+ fVZEROReconstructor->ConvertDigits(fRawReader, digitsTree);
// -- 2. step VZERO reconstruction -- fill AliESDVZERO object
- fVZEROReconstructor->FillESD(fDigitsTree, NULL, NULL);
+ fVZEROReconstructor->FillESD(digitsTree, NULL, NULL);
// -- Send AliESDVZERO
PushBack(static_cast<TObject*>(fVZEROReconstructor->GetESDVZERO()),
}
// -- Clean up
- fDigitsTree->Reset();
+ delete digitsTree;
fRawReader->ClearBuffers();
return iResult;