#include <RunHistogramManager.h>
Public Member Functions | |
virtual void | beginRun (const unsigned int irun, TFileDirectory &subrun, const char *fillrun) |
HistoParams (TProfile2D **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 |
TProfile2D ** | _pointer |
std::map< unsigned int, TProfile2D * > | _runpointers |
std::string | _title |
std::string | _type |
double | _xmax |
double | _xmin |
double | _ymax |
double | _ymin |
Definition at line 151 of file RunHistogramManager.h.
HistoParams< TProfile2D >::HistoParams | ( | TProfile2D ** | 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< TProfile2D >::~HistoParams | ( | ) | [inline] |
Definition at line 164 of file RunHistogramManager.h.
References HistoParams< T >::_name, HistoParams< T >::_pointer, and LogDebug.
virtual void HistoParams< TProfile2D >::beginRun | ( | const unsigned int | irun, |
TFileDirectory & | subrun, | ||
const char * | fillrun | ||
) | [inline, virtual] |
Implements BaseHistoParams.
Definition at line 171 of file RunHistogramManager.h.
References HistoParams< T >::_name, HistoParams< T >::_nbinx, HistoParams< T >::_nbiny, HistoParams< T >::_pointer, HistoParams< T >::_runpointers, HistoParams< T >::_title, HistoParams< T >::_xmax, HistoParams< T >::_xmin, HistoParams< T >::_ymax, HistoParams< T >::_ymin, LogDebug, TFileDirectory::make(), and indexGen::title.
{ if(_runpointers.find(irun)!=_runpointers.end()) { *_pointer = _runpointers[irun]; LogDebug("TProfile2Dbooked") << "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<TProfile2D>(_name.c_str(), title, _nbinx, _xmin, _xmax, _nbiny, _ymin, _ymax); *_pointer = _runpointers[irun]; LogDebug("TProfile2Dbooked") << "Histogram " << _name.c_str() << " booked " << _runpointers[irun]; } }
std::string HistoParams< TProfile2D >::_name [private] |
Definition at line 202 of file RunHistogramManager.h.
unsigned int HistoParams< TProfile2D >::_nbinx [private] |
Definition at line 204 of file RunHistogramManager.h.
unsigned int HistoParams< TProfile2D >::_nbiny [private] |
Definition at line 207 of file RunHistogramManager.h.
TProfile2D** HistoParams< TProfile2D >::_pointer [private] |
Definition at line 200 of file RunHistogramManager.h.
std::map<unsigned int, TProfile2D*> HistoParams< TProfile2D >::_runpointers [private] |
Definition at line 210 of file RunHistogramManager.h.
std::string HistoParams< TProfile2D >::_title [private] |
Definition at line 203 of file RunHistogramManager.h.
std::string HistoParams< TProfile2D >::_type [private] |
Definition at line 201 of file RunHistogramManager.h.
double HistoParams< TProfile2D >::_xmax [private] |
Definition at line 206 of file RunHistogramManager.h.
double HistoParams< TProfile2D >::_xmin [private] |
Definition at line 205 of file RunHistogramManager.h.
double HistoParams< TProfile2D >::_ymax [private] |
Definition at line 209 of file RunHistogramManager.h.
double HistoParams< TProfile2D >::_ymin [private] |
Definition at line 208 of file RunHistogramManager.h.