15 class StorableRecoResults;
35 bool Skip(uint32_t address)
const
37 if (not
sensor)
return false;
51 TH1*
GetHisto(
const std::string& name)
const;
62 template<
typename Histo_t>
63 void CreateHisto(Histo_t*& histo,
const char* folder,
const char* name,
const char* title,
int nbins,
double xlow,
66 histo =
new Histo_t(name, title, nbins, xlow, xmax);
67 histo->SetDirectory(
nullptr);
68 fHistos.push_back({.path = folder, .histo = histo});
virtual ~HistogramCollection()
std::vector< Histo > fHistos
std::vector< Folder > GetFolders() const
void CreateHisto(Histo_t *&histo, const char *folder, const char *name, const char *title, int nbins, double xlow, double xmax)
std::vector< Histo > GetHistos() const
std::vector< Folder > fFolders
void CreateFolder(const char *path, const char *name)
TH1 * GetHisto(const std::string &name) const
HistogramCollection()=default
std::string GetHistoPath(const std::string &name) const
void Reset()
Clear all histograms.
void Div(const HistogramCollection &other)
virtual void FillHistos(HistoData fill)=0
bool Skip(uint32_t address) const
std::optional< uint32_t > sensor
algo::StorableRecoResults * data