Project
Loading...
Searching...
No Matches
o2::HistoManager Class Reference

#include <HistoManager.h>

Inherits TObjArray.

Public Member Functions

 HistoManager (const std::string &dirname="", const std::string &fname="histoman.root", bool load=kFALSE, const std::string &prefix="")
 
 ~HistoManager () override
 
HistoManagercreateClone (const std::string &prefix) const
 
void addPrefix (const std::string &pref="")
 
int getNHistos () const
 
TGraph * getGraph (int id) const
 
TH1 * getHisto (int id) const
 
TH1 * getHisto (const std::string &name) const
 
TH1F * getHisto1F (int id) const
 
TH2F * getHisto2F (int id) const
 
TProfile * getHistoP (int id) const
 
int addHisto (TH1 *histo, int at=-1)
 
int addGraph (TGraph *gr, int at=-1)
 
void delHisto (int at)
 
void setFile (TFile *file)
 
void setFileName (const std::string &fname)
 
const std::string & getFileName () const
 
void setDirName (const std::string &name)
 
const std::string & getDirName () const
 
void reset ()
 
void write (TFile *file=nullptr)
 
int write (const std::string &flname)
 
void addHistos (const HistoManager *hm, Double_t c1=1.)
 
void divideHistos (const HistoManager *hm)
 
void multiplyHistos (const HistoManager *hm)
 
void scaleHistos (Double_t c1=1.)
 
void setColor (int tcolor=1)
 
void setMarkerStyle (Style_t mstyle=1, Size_t msize=1)
 
void setMarkerSize (Size_t msize=1)
 
void sumw2 ()
 
int load (const std::string &fname, const std::string &dirname="")
 
void purify (bool emptyToo=kFALSE)
 
void Print (Option_t *option="") const override
 
void Clear (Option_t *option="") override
 
void Delete (Option_t *option="") override
 
void Compress () override
 

Detailed Description

Definition at line 30 of file HistoManager.h.

Constructor & Destructor Documentation

◆ HistoManager()

o2::HistoManager::HistoManager ( const std::string &  dirname = "",
const std::string &  fname = "histoman.root",
bool  load = kFALSE,
const std::string &  prefix = "" 
)

Definition at line 31 of file HistoManager.cxx.

◆ ~HistoManager()

o2::HistoManager::~HistoManager ( )
inlineoverride

Definition at line 34 of file HistoManager.h.

Member Function Documentation

◆ addGraph()

int o2::HistoManager::addGraph ( TGraph *  gr,
int  at = -1 
)

Definition at line 106 of file HistoManager.cxx.

◆ addHisto()

int o2::HistoManager::addHisto ( TH1 *  histo,
int  at = -1 
)

Definition at line 62 of file HistoManager.cxx.

◆ addHistos()

void o2::HistoManager::addHistos ( const HistoManager hm,
Double_t  c1 = 1. 
)

Definition at line 265 of file HistoManager.cxx.

◆ addPrefix()

void o2::HistoManager::addPrefix ( const std::string &  pref = "")

Definition at line 247 of file HistoManager.cxx.

◆ Clear()

void o2::HistoManager::Clear ( Option_t *  option = "")
override

Definition at line 204 of file HistoManager.cxx.

◆ Compress()

void o2::HistoManager::Compress ( )
override

Definition at line 119 of file HistoManager.cxx.

◆ createClone()

HistoManager * o2::HistoManager::createClone ( const std::string &  prefix) const

Definition at line 43 of file HistoManager.cxx.

◆ Delete()

void o2::HistoManager::Delete ( Option_t *  option = "")
override

Definition at line 218 of file HistoManager.cxx.

◆ delHisto()

void o2::HistoManager::delHisto ( int  at)

Definition at line 358 of file HistoManager.cxx.

◆ divideHistos()

void o2::HistoManager::divideHistos ( const HistoManager hm)

Definition at line 286 of file HistoManager.cxx.

◆ getDirName()

const std::string & o2::HistoManager::getDirName ( ) const
inline

Definition at line 55 of file HistoManager.h.

◆ getFileName()

const std::string & o2::HistoManager::getFileName ( ) const
inline

Definition at line 53 of file HistoManager.h.

◆ getGraph()

TGraph * o2::HistoManager::getGraph ( int  id) const

Definition at line 76 of file HistoManager.cxx.

◆ getHisto() [1/2]

TH1 * o2::HistoManager::getHisto ( const std::string &  name) const

Definition at line 86 of file HistoManager.cxx.

◆ getHisto() [2/2]

TH1 * o2::HistoManager::getHisto ( int  id) const

Definition at line 81 of file HistoManager.cxx.

◆ getHisto1F()

TH1F * o2::HistoManager::getHisto1F ( int  id) const

Definition at line 91 of file HistoManager.cxx.

◆ getHisto2F()

TH2F * o2::HistoManager::getHisto2F ( int  id) const

Definition at line 96 of file HistoManager.cxx.

◆ getHistoP()

TProfile * o2::HistoManager::getHistoP ( int  id) const

Definition at line 101 of file HistoManager.cxx.

◆ getNHistos()

int o2::HistoManager::getNHistos ( ) const
inline

Definition at line 39 of file HistoManager.h.

◆ load()

int o2::HistoManager::load ( const std::string &  fname,
const std::string &  dirname = "" 
)

Definition at line 402 of file HistoManager.cxx.

◆ multiplyHistos()

void o2::HistoManager::multiplyHistos ( const HistoManager hm)

Definition at line 308 of file HistoManager.cxx.

◆ Print()

void o2::HistoManager::Print ( Option_t *  option = "") const
override

Definition at line 232 of file HistoManager.cxx.

◆ purify()

void o2::HistoManager::purify ( bool  emptyToo = kFALSE)

Definition at line 368 of file HistoManager.cxx.

◆ reset()

void o2::HistoManager::reset ( )

Definition at line 390 of file HistoManager.cxx.

◆ scaleHistos()

void o2::HistoManager::scaleHistos ( Double_t  c1 = 1.)

Definition at line 329 of file HistoManager.cxx.

◆ setColor()

void o2::HistoManager::setColor ( int  tcolor = 1)

Definition at line 453 of file HistoManager.cxx.

◆ setDirName()

void o2::HistoManager::setDirName ( const std::string &  name)
inline

Definition at line 54 of file HistoManager.h.

◆ setFile()

void o2::HistoManager::setFile ( TFile *  file)

Definition at line 351 of file HistoManager.cxx.

◆ setFileName()

void o2::HistoManager::setFileName ( const std::string &  fname)

Definition at line 385 of file HistoManager.cxx.

◆ setMarkerSize()

void o2::HistoManager::setMarkerSize ( Size_t  msize = 1)

Definition at line 493 of file HistoManager.cxx.

◆ setMarkerStyle()

void o2::HistoManager::setMarkerStyle ( Style_t  mstyle = 1,
Size_t  msize = 1 
)

Definition at line 480 of file HistoManager.cxx.

◆ sumw2()

void o2::HistoManager::sumw2 ( )

Definition at line 340 of file HistoManager.cxx.

◆ write() [1/2]

int o2::HistoManager::write ( const std::string &  flname)
inline

Definition at line 59 of file HistoManager.h.

◆ write() [2/2]

void o2::HistoManager::write ( TFile *  file = nullptr)

Definition at line 129 of file HistoManager.cxx.


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