9 #ifndef ICARUSCODE_PMT_TRIGGER_UTILITIES_ROOTUTILS_H 
   10 #define ICARUSCODE_PMT_TRIGGER_UTILITIES_ROOTUTILS_H 
   17 #include "TDirectory.h" 
   57     TDirectory* 
pNew = 
nullptr;
 
   64       { 
save(); 
cd(dir, title); }
 
   85     void cd(std::string 
const& 
name, std::string 
const& title = 
"")
 
  153     void cd(TStyle* newStyle) { 
pNew = newStyle; 
cd(); }
 
  175     (TAxis* pAxis, std::vector<std::string> 
const& 
labels, 
int first = 1)
 
  178         pAxis->SetBinLabel(
first + iLabel, label.c_str());
 
  217   template <
typename Coll>
 
  218   std::pair<std::vector<double>, std::vector<std::string>>
 
  230 #include "icarusalg/Utilities/ROOTutils.tcc" 
  235 #endif // ICARUSCODE_PMT_TRIGGER_UTILITIES_ROOTUTILS_H 
void cd(TStyle *newStyle)
Make the specified style as current. 
void forget()
Do not restore the old style on destruction. 
std::pair< std::vector< double >, std::vector< std::string > > makeVariableBinningAndLabels(Coll const ¢ralPoints)
Returns a variable size binning for the points. 
Definition of util::enumerate(). 
void cd() const 
Make the stored new directory as current again. 
void cd(std::string const &name, std::string const &title="")
Make the specified directory as current, possibly creating it. 
static TDirectory * currentDir()
TStyleChanger(TStyle *newStyle)
void applyAxisLabels(TAxis *pAxis, std::vector< std::string > const &labels, int first=1)
Sets all the labels starting with the bin first (1 by default). 
void save()
Stores the current style as the one to be saved. 
auto enumerate(Iterables &&...iterables)
Range-for loop helper tracking the number of iteration. 
TDirectoryChanger(std::string const &dir, std::string const &title="")
bool hasSaved() const 
Returns whether there is a directory to be restored on destruction. 
void cd() const 
Make the stored new style as current again. 
TDirectory * saved() const 
Returns a pointer to the directory that will be restored on destruction. 
TStyle * saved() const 
Returns a pointer to the style that will be restored on destruction. 
void cd(TDirectory *dir)
Make the specified directory as current. 
A class restoring the previous TDirectory on destruction. 
A class restoring the previous TStyle on destruction. 
TDirectoryChanger(TDirectory *dir)
void save()
Stores the current directory as the one to be saved. 
void forget()
Do not restore the old directory on destruction. 
bool hasSaved() const 
Returns whether there is a style to be restored on destruction.