Deleting a TNtuple

Hi,

I would like to know how I can delete a TNtuple object, because when I try with the delete command I got the usual segmentation violation.

Hi,

[quote]because when I try with the delete command I got the usual segmentation violation.[/quote]Calling the usual delete operator is the correct way to remove a TNtuple from memory if this object has been created via a call to the new operator). If this fails, you probably have a different problem (memory overwrite, double delete). For example note that a TNtuple (and any TTree) are owned by the TFile that are written do and thus they are deleted a soon as the file is closed (myfile->Close()) or deleted. (i.e. usually there is no need to explicitly delete a TTree or TNtuple).

Cheers,
Philippe.