LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
RootDirectorySentry.h
Go to the documentation of this file.
1 #ifndef art_Framework_Services_Optional_detail_RootDirectorySentry_h
2 #define art_Framework_Services_Optional_detail_RootDirectorySentry_h
3 
4 //=================================================================
5 // RootDirectorySentry
6 //
7 // Description: Manages the status of the ROOT directory
8 //
9 // Usage: Construct an instance of this object in a routine in which you
10 // expect a ROOT histogram to be automatically added to the current
11 // directory in a file. The destructor will be sure to reset ROOT to
12 // its previous setting.
13 //=================================================================
14 
15 namespace art {
16  namespace detail {
17 
19  public:
21  ~RootDirectorySentry() noexcept(false);
22 
23  private:
26  bool status_;
27  };
28 
29  } // detail
30 } // art
31 
32 #endif /* art_Framework_Services_Optional_detail_RootDirectorySentry_h */
33 
RootDirectorySentry & operator=(RootDirectorySentry const &)=delete
HLT enums.