--- PamCut/CollectionActions/TreeOutputActions/TreeOutputAction/TreeOutputAction.cpp 2009/11/13 16:37:13 1.1 +++ PamCut/CollectionActions/TreeOutputActions/TreeOutputAction/TreeOutputAction.cpp 2009/11/24 09:56:52 1.2 @@ -12,6 +12,7 @@ } TreeOutputAction::~TreeOutputAction() { + _outFile->Close(); delete _outFile; _outFile = NULL; } @@ -34,9 +35,6 @@ void TreeOutputAction::Finalize() { _outFile->cd(); - //cout << _tree->GetEntries() << endl; _tree->Write(); - _outFile->Close(); - }