38 std::string& fileType,
39 int* dataVersion =
nullptr);
44 int* dataVersion =
nullptr);
48 int* dataVersion =
nullptr);
69 const std::string& fileName);
77 TDirectory* outputDir;
100 bool debugIn =
false);
107 const std::string& parentDir);
Class to accumulate and merge histograms in different ways.
Class to map a rebdsim file structure and create duplicate in output.
HistogramMap()=delete
No need for default constructor.
std::vector< RBDS::HistogramPath > histograms
Storage of all objects.
const std::vector< RBDS::HistogramPath > & Histograms() const
Access full vector of histograms.
void MapDirectory(TDirectory *dir, TFile *output, const std::string &parentDir)
Utility functions for data files.
bool IsBDSIMOutputFile(TFile *file, int *dataVersion=nullptr)
bool IsREBDSIMOutputFile(TFile *file)
bool GetFileType(TFile *file, std::string &fileType, int *dataVersion=nullptr)
MergeType DetermineMergeType(const std::string &parentDir)
Determine merge type from parent directory name.
bool IsREBDSIMOrCombineOutputFile(TFile *file)
int DetermineDimensionality(TH1 *h)
Determine the number of dimensions of a histogram by dynamically casting.
MergeType
Types of merging.
void WarningMissingHistogram(const std::string &histName, const std::string &fileName)
Common print out method.
Basic structure for accumulating histogram from rebdsim output files.
std::string path
Without histogram name.
std::string name
Name of histogram.