Celeritas  0.5.0-86+4a8eea4
Public Member Functions | List of all members
celeritas::RootTreeAutoSaveDeleter Struct Reference

Call TTree->AutoSave() before deletion in order to update gDirectory accordingly before writing the TTree. More...

#include <RootUniquePtr.hh>

Public Member Functions

void operator() (TTree *ptr)
 Call TTree->AutoSave() before deletion. More...
 

Detailed Description

Call TTree->AutoSave() before deletion in order to update gDirectory accordingly before writing the TTree.

Member Function Documentation

◆ operator()()

void celeritas::RootTreeAutoSaveDeleter::operator() ( TTree *  ptr)
inline

Call TTree->AutoSave() before deletion.

This ensures that gDirectory is updated accordingly when multiple TFiles are open at the same time.


The documentation for this struct was generated from the following files: