#include <RunHistogramManager.h>
Public Member Functions | |
virtual void | beginRun (const unsigned int irun, TFileDirectory &subrun, const char *fillrun) |
HistoParams (T **pointer, const std::string type, const std::string name, const std::string title, const unsigned int nbinx=-1, const double xmin=-1., const double xmax=-1., const unsigned int nbiny=-1, const double ymin=-1., const double ymax=-1.) | |
~HistoParams () | |
Private Attributes | |
std::string | _name |
unsigned int | _nbinx |
unsigned int | _nbiny |
T ** | _pointer |
std::map< unsigned int, T * > | _runpointers |
std::string | _title |
std::string | _type |
double | _xmax |
double | _xmin |
double | _ymax |
double | _ymin |
Definition at line 28 of file RunHistogramManager.h.
HistoParams< T >::HistoParams | ( | T ** | pointer, |
const std::string | type, | ||
const std::string | name, | ||
const std::string | title, | ||
const unsigned int | nbinx = -1 , |
||
const double | xmin = -1. , |
||
const double | xmax = -1. , |
||
const unsigned int | nbiny = -1 , |
||
const double | ymin = -1. , |
||
const double | ymax = -1. |
||
) | [inline] |
HistoParams< T >::~HistoParams | ( | ) | [inline] |
Definition at line 40 of file RunHistogramManager.h.
References HistoParams< T >::_name, HistoParams< T >::_pointer, and LogDebug.
virtual void HistoParams< T >::beginRun | ( | const unsigned int | irun, |
TFileDirectory & | subrun, | ||
const char * | fillrun | ||
) | [inline, virtual] |
Implements BaseHistoParams.
Definition at line 47 of file RunHistogramManager.h.
References HistoParams< T >::_name, HistoParams< T >::_nbinx, HistoParams< T >::_pointer, HistoParams< T >::_runpointers, HistoParams< T >::_title, HistoParams< T >::_xmax, HistoParams< T >::_xmin, LogDebug, TFileDirectory::make(), and indexGen::title.
{ if(_runpointers.find(irun)!=_runpointers.end()) { *_pointer = _runpointers[irun]; LogDebug("TH1Fbooked") << "Histogram " << _name.c_str() << " already exists " << _runpointers[irun]; } else { char title[400]; sprintf(title,"%s %s %d",_title.c_str(),fillrun,irun); _runpointers[irun] = subrun.make<T>(_name.c_str(), title, _nbinx, _xmin, _xmax); *_pointer = _runpointers[irun]; LogDebug("TH1Fbooked") << "Histogram " << _name.c_str() << " booked " << _runpointers[irun]; } }
std::string HistoParams< T >::_name [private] |
Definition at line 74 of file RunHistogramManager.h.
Referenced by HistoParams< TProfile2D >::beginRun(), HistoParams< TH2F >::beginRun(), HistoParams< T >::beginRun(), HistoParams< T >::~HistoParams(), HistoParams< TProfile2D >::~HistoParams(), and HistoParams< TH2F >::~HistoParams().
unsigned int HistoParams< T >::_nbinx [private] |
Definition at line 76 of file RunHistogramManager.h.
Referenced by HistoParams< TProfile2D >::beginRun(), HistoParams< TH2F >::beginRun(), and HistoParams< T >::beginRun().
unsigned int HistoParams< T >::_nbiny [private] |
Definition at line 79 of file RunHistogramManager.h.
Referenced by HistoParams< TProfile2D >::beginRun(), and HistoParams< TH2F >::beginRun().
T** HistoParams< T >::_pointer [private] |
Definition at line 72 of file RunHistogramManager.h.
Referenced by HistoParams< TProfile2D >::beginRun(), HistoParams< TH2F >::beginRun(), HistoParams< T >::beginRun(), HistoParams< T >::~HistoParams(), HistoParams< TH2F >::~HistoParams(), and HistoParams< TProfile2D >::~HistoParams().
std::map<unsigned int, T*> HistoParams< T >::_runpointers [private] |
Definition at line 82 of file RunHistogramManager.h.
Referenced by HistoParams< TProfile2D >::beginRun(), HistoParams< TH2F >::beginRun(), and HistoParams< T >::beginRun().
std::string HistoParams< T >::_title [private] |
Definition at line 75 of file RunHistogramManager.h.
Referenced by HistoParams< TProfile2D >::beginRun(), HistoParams< TH2F >::beginRun(), and HistoParams< T >::beginRun().
std::string HistoParams< T >::_type [private] |
Definition at line 73 of file RunHistogramManager.h.
double HistoParams< T >::_xmax [private] |
Definition at line 78 of file RunHistogramManager.h.
Referenced by HistoParams< TProfile2D >::beginRun(), HistoParams< TH2F >::beginRun(), and HistoParams< T >::beginRun().
double HistoParams< T >::_xmin [private] |
Definition at line 77 of file RunHistogramManager.h.
Referenced by HistoParams< TProfile2D >::beginRun(), HistoParams< TH2F >::beginRun(), and HistoParams< T >::beginRun().
double HistoParams< T >::_ymax [private] |
Definition at line 81 of file RunHistogramManager.h.
Referenced by HistoParams< TProfile2D >::beginRun(), and HistoParams< TH2F >::beginRun().
double HistoParams< T >::_ymin [private] |
Definition at line 80 of file RunHistogramManager.h.
Referenced by HistoParams< TProfile2D >::beginRun(), and HistoParams< TH2F >::beginRun().