CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HistoParams< TProfile2D > Class Template Reference

#include <RunHistogramManager.h>

Inheritance diagram for HistoParams< TProfile2D >:
BaseHistoParams

Public Member Functions

void beginRun (const unsigned int irun, TFileDirectory &subrun, const char *fillrun) override
 
 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 () override
 
- Public Member Functions inherited from BaseHistoParams
 BaseHistoParams ()
 
virtual ~BaseHistoParams ()
 

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
 

Detailed Description

template<>
class HistoParams< TProfile2D >

Definition at line 150 of file RunHistogramManager.h.

Constructor & Destructor Documentation

◆ HistoParams()

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

Definition at line 152 of file RunHistogramManager.h.

162  : BaseHistoParams(),
163  _pointer(pointer),
164  _type(type),
165  _name(name),
166  _title(title),
167  _nbinx(nbinx),
168  _xmin(xmin),
169  _xmax(xmax),
170  _nbiny(nbiny),
171  _ymin(ymin),
172  _ymax(ymax),
173  _runpointers() {}

◆ ~HistoParams()

HistoParams< TProfile2D >::~HistoParams ( )
inlineoverride

Definition at line 175 of file RunHistogramManager.h.

175  {
176  delete _pointer;
177  LogDebug("TProfile2DDestructor") << "Destroy " << _name;
178  }

References HistoParams< T >::_name, HistoParams< T >::_pointer, and LogDebug.

Member Function Documentation

◆ beginRun()

void HistoParams< TProfile2D >::beginRun ( const unsigned int  irun,
TFileDirectory subrun,
const char *  fillrun 
)
inlineoverridevirtual

Implements BaseHistoParams.

Definition at line 180 of file RunHistogramManager.h.

180  {
181  if (_runpointers.find(irun) != _runpointers.end()) {
182  *_pointer = _runpointers[irun];
183  LogDebug("TProfile2Dbooked") << "Histogram " << _name.c_str() << " already exists " << _runpointers[irun];
184 
185  } else {
186  char title[400];
187  sprintf(title, "%s %s %d", _title.c_str(), fillrun, irun);
188 
189  _runpointers[irun] = subrun.make<TProfile2D>(_name.c_str(), title, _nbinx, _xmin, _xmax, _nbiny, _ymin, _ymax);
190 
191  *_pointer = _runpointers[irun];
192  LogDebug("TProfile2Dbooked") << "Histogram " << _name.c_str() << " booked " << _runpointers[irun];
193  }
194  }

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 runGCPTkAlMap::title.

Member Data Documentation

◆ _name

std::string HistoParams< TProfile2D >::_name
private

Definition at line 199 of file RunHistogramManager.h.

Referenced by plotting.Subtract::__str__(), plotting.Transform::__str__(), plotting.FakeDuplicate::__str__(), plotting.CutEfficiency::__str__(), plotting.AggregateBins::__str__(), plotting.AggregateHistos::__str__(), plotting.ROC::__str__(), trackingPlots.TimePerEventPlot::__str__(), trackingPlots.TimePerTrackPlot::__str__(), SequenceTypes.SequencePlaceholder::_clonesequence(), trackingPlots.TimePerEventPlot::_create(), plotting.PlotGroup::_drawSeparate(), plotting.PlotGroup::_save(), SequenceTypes.SequencePlaceholder::copy(), SequenceTypes.TaskPlaceholder::copy(), plotting.Subtract::create(), plotting.Transform::create(), plotting.FakeDuplicate::create(), plotting.CutEfficiency::create(), plotting.AggregateBins::create(), plotting.AggregateHistos::create(), trackingPlots.TimePerTrackPlot::create(), plotting.Plot::create(), plotting.PlotGroup::draw(), SequenceTypes.SequencePlaceholder::dumpPython(), SequenceTypes.TaskPlaceholder::dumpPython(), SequenceTypes.SequencePlaceholder::dumpSequenceConfig(), SequenceTypes.SequencePlaceholder::dumpSequencePython(), SequenceTypes.TaskPlaceholder::dumpSequencePython(), plotting.Plot::getName(), plotting.PlotGroup::getName(), plotting.PlotterFolder::getName(), plotting.PlotterItem::getName(), plotting.PlotterFolder::getSelectionNameIterator(), SequenceTypes.SequencePlaceholder::insertInto(), SequenceTypes.TaskPlaceholder::insertInto(), validation.SimpleSample::name(), trackingPlots.Iteration::name(), plotting.PlotterItem::readDirs(), plotting.PlotGroup::remove(), SequenceTypes.SequencePlaceholder::resolve(), SequenceTypes.TaskPlaceholder::resolve(), and plotting.Plot::setName().

◆ _nbinx

unsigned int HistoParams< TProfile2D >::_nbinx
private

Definition at line 201 of file RunHistogramManager.h.

◆ _nbiny

unsigned int HistoParams< TProfile2D >::_nbiny
private

Definition at line 204 of file RunHistogramManager.h.

◆ _pointer

TProfile2D** HistoParams< TProfile2D >::_pointer
private

Definition at line 197 of file RunHistogramManager.h.

◆ _runpointers

std::map<unsigned int, TProfile2D*> HistoParams< TProfile2D >::_runpointers
private

Definition at line 207 of file RunHistogramManager.h.

◆ _title

std::string HistoParams< TProfile2D >::_title
private

◆ _type

std::string HistoParams< TProfile2D >::_type
private

Definition at line 198 of file RunHistogramManager.h.

Referenced by SequenceTypes.ExpandVisitor::result().

◆ _xmax

double HistoParams< TProfile2D >::_xmax
private

◆ _xmin

double HistoParams< TProfile2D >::_xmin
private

◆ _ymax

double HistoParams< TProfile2D >::_ymax
private

Definition at line 206 of file RunHistogramManager.h.

Referenced by plotting.PlotTextBox::move().

◆ _ymin

double HistoParams< TProfile2D >::_ymin
private

Definition at line 205 of file RunHistogramManager.h.

Referenced by plotting.PlotTextBox::move().

HistoParams< TProfile2D >::_runpointers
std::map< unsigned int, TProfile2D * > _runpointers
Definition: RunHistogramManager.h:207
BaseHistoParams::BaseHistoParams
BaseHistoParams()
Definition: RunHistogramManager.cc:11
HistoParams< TProfile2D >::_xmin
double _xmin
Definition: RunHistogramManager.h:202
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
HistoParams< TProfile2D >::_nbiny
unsigned int _nbiny
Definition: RunHistogramManager.h:204
HistoParams< TProfile2D >::_title
std::string _title
Definition: RunHistogramManager.h:200
HistoParams< TProfile2D >::_ymax
double _ymax
Definition: RunHistogramManager.h:206
L1TOccupancyClient_cfi.ymax
ymax
Definition: L1TOccupancyClient_cfi.py:43
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
HistoParams< TProfile2D >::_xmax
double _xmax
Definition: RunHistogramManager.h:203
HistoParams< TProfile2D >::_name
std::string _name
Definition: RunHistogramManager.h:199
L1TOccupancyClient_cfi.ymin
ymin
Definition: L1TOccupancyClient_cfi.py:43
TrackerOfflineValidation_Dqm_cff.xmax
xmax
Definition: TrackerOfflineValidation_Dqm_cff.py:11
HistoParams< TProfile2D >::_ymin
double _ymin
Definition: RunHistogramManager.h:205
TFileDirectory::make
T * make(const Args &...args) const
make new ROOT object
Definition: TFileDirectory.h:53
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
HistoParams< TProfile2D >::_nbinx
unsigned int _nbinx
Definition: RunHistogramManager.h:201
HistoParams< TProfile2D >::_type
std::string _type
Definition: RunHistogramManager.h:198
TrackerOfflineValidation_Dqm_cff.xmin
xmin
Definition: TrackerOfflineValidation_Dqm_cff.py:10
HistoParams< TProfile2D >::_pointer
TProfile2D ** _pointer
Definition: RunHistogramManager.h:197