Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
browser.cxx
Go to the documentation of this file.
1 /// \file
2 /// \ingroup tutorial_v7
3 ///
4 /// \macro_code
5 ///
6 /// \date 2019-05-29
7 /// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
8 /// \author Bertrand Bellenot <Bertrand.Bellenot@cern.ch>
9 /// \author Sergey Linev <S.Linev@gsi.de>
10 
11 /*************************************************************************
12  * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
13  * All rights reserved. *
14  * *
15  * For the licensing terms see $ROOTSYS/LICENSE. *
16  * For the list of contributors see $ROOTSYS/README/CREDITS. *
17  *************************************************************************/
18 
19 #include <ROOT/RBrowser.hxx>
20 #include <ROOT/RDirectory.hxx>
21 
22 using namespace ROOT::Experimental;
23 
24 void browser()
25 {
26  // create browser
27  auto br = std::make_shared<RBrowser>();
28 
29  // add to global list - avoid auto deletion
30  RDirectory::Heap().Add("browser", br);
31 }
32