CbmRoot
Loading...
Searching...
No Matches
cbm::explore::HistogramCollection Class Referenceabstract

#include <HistogramCollection.h>

Inheritance diagram for cbm::explore::HistogramCollection:
[legend]

Public Member Functions

 HistogramCollection ()=default
 
virtual ~HistogramCollection ()
 
void Reset ()
 Clear all histograms.
 
TH1 * GetHisto (const std::string &name) const
 
std::string GetHistoPath (const std::string &name) const
 
std::vector< HistoGetHistos () const
 
std::vector< FolderGetFolders () const
 
void Div (const HistogramCollection &other)
 
virtual void FillHistos (HistoData fill)=0
 

Protected Member Functions

template<typename Histo_t >
void CreateHisto (Histo_t *&histo, const char *folder, const char *name, const char *title, int nbins, double xlow, double xmax)
 
void CreateFolder (const char *path, const char *name)
 

Private Attributes

std::vector< FolderfFolders
 
std::vector< HistofHistos
 

Detailed Description

Definition at line 42 of file HistogramCollection.h.

Constructor & Destructor Documentation

◆ HistogramCollection()

cbm::explore::HistogramCollection::HistogramCollection ( )
default

◆ ~HistogramCollection()

HistogramCollection::~HistogramCollection ( )
virtual

Definition at line 12 of file HistogramCollection.cxx.

Member Function Documentation

◆ CreateFolder()

void HistogramCollection::CreateFolder ( const char * path,
const char * name )
protected

Definition at line 51 of file HistogramCollection.cxx.

References fFolders.

Referenced by cbm::explore::Histograms::Histograms().

◆ CreateHisto()

template<typename Histo_t >
void cbm::explore::HistogramCollection::CreateHisto ( Histo_t *& histo,
const char * folder,
const char * name,
const char * title,
int nbins,
double xlow,
double xmax )
inlineprotected

Definition at line 63 of file HistogramCollection.h.

References fHistos.

Referenced by cbm::explore::Histograms::Histograms().

◆ Div()

void HistogramCollection::Div ( const HistogramCollection & other)

Definition at line 37 of file HistogramCollection.cxx.

References fHistos, and GetHisto().

◆ FillHistos()

virtual void cbm::explore::HistogramCollection::FillHistos ( HistoData fill)
pure virtual

Implemented in cbm::explore::Histograms.

◆ GetFolders()

std::vector< Folder > cbm::explore::HistogramCollection::GetFolders ( ) const
inline

Definition at line 55 of file HistogramCollection.h.

References fFolders.

◆ GetHisto()

TH1 * HistogramCollection::GetHisto ( const std::string & name) const

Definition at line 21 of file HistogramCollection.cxx.

References fHistos.

Referenced by Div().

◆ GetHistoPath()

std::string HistogramCollection::GetHistoPath ( const std::string & name) const

Definition at line 29 of file HistogramCollection.cxx.

References fHistos.

◆ GetHistos()

std::vector< Histo > cbm::explore::HistogramCollection::GetHistos ( ) const
inline

Definition at line 53 of file HistogramCollection.h.

References fHistos.

◆ Reset()

void HistogramCollection::Reset ( )

Clear all histograms.

Definition at line 14 of file HistogramCollection.cxx.

References fHistos.

Member Data Documentation

◆ fFolders

std::vector<Folder> cbm::explore::HistogramCollection::fFolders
private

Definition at line 74 of file HistogramCollection.h.

Referenced by CreateFolder(), and GetFolders().

◆ fHistos

std::vector<Histo> cbm::explore::HistogramCollection::fHistos
private

Definition at line 75 of file HistogramCollection.h.

Referenced by CreateHisto(), Div(), GetHisto(), GetHistoPath(), GetHistos(), and Reset().


The documentation for this class was generated from the following files: