CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Attributes
CommissioningTask::HistoSet Class Reference

#include <CommissioningTask.h>

Public Member Functions

uint32_t bin (float value)
 
void histo (MonitorElement *)
 
MonitorElementhisto ()
 
 HistoSet ()
 

Public Attributes

bool explicitFill_
 
bool isProfile_
 
std::vector< float > vNumOfEntries_
 
std::vector< float > vSumOfContents_
 
std::vector< double > vSumOfSquares_
 

Private Attributes

TAxis * axis_
 
MonitorElementhisto_
 

Detailed Description

Simple container class holding pointer to root histogram, and vectors in which data are cached and used to update histo.

Definition at line 38 of file CommissioningTask.h.

Constructor & Destructor Documentation

◆ HistoSet()

CommissioningTask::HistoSet::HistoSet ( )

Definition at line 64 of file CommissioningTask.cc.

65  : vNumOfEntries_(),
68  isProfile_(true),
69  explicitFill_(false),
70  histo_(nullptr),
71  axis_(nullptr) {
72  ;
73 }
std::vector< float > vNumOfEntries_
std::vector< float > vSumOfContents_
std::vector< double > vSumOfSquares_

Member Function Documentation

◆ bin()

uint32_t CommissioningTask::HistoSet::bin ( float  value)

Definition at line 105 of file CommissioningTask.cc.

References newFWLiteAna::bin, and isotrackApplyRegressor::range.

Referenced by CommissioningTask::updateHistoSet().

105  {
106  if (!axis_) {
107  return 0;
108  }
109  float range = axis_->GetXmax() - axis_->GetXmin();
110  if (range > 0.) {
111  int32_t bin = static_cast<int32_t>((value - axis_->GetXmin()) * (axis_->GetNbins() / range)) + 1;
112  if (bin < 0) {
113  return 0;
114  } else if (bin > axis_->GetNbins()) {
115  return static_cast<uint32_t>(axis_->GetNbins() + 1);
116  } else {
117  return bin;
118  }
119  } else {
120  return 0;
121  }
122 }
Definition: value.py:1

◆ histo() [1/2]

void CommissioningTask::HistoSet::histo ( MonitorElement me)

Definition at line 89 of file CommissioningTask.cc.

References extract(), timingPdfMaker::histo, and hlt_dqm_clientPB-live_cfg::me.

Referenced by FastFedCablingTask::book(), ApvTimingTask::book(), FedTimingTask::book(), FineDelayTask::book(), LatencyTask::book(), DaqScopeModeTask::book(), PedsOnlyTask::book(), PedsFullNoiseTask::book(), NoiseTask::book(), PedsFullNoiseTask::update(), and CommissioningTask::updateHistoSet().

89  {
90  histo_ = me;
92  if (histo_) {
93  axis_ = histo->GetXaxis();
94  }
95  //TProfile* prof = ExtractTObject<TProfile>().extract( histo_ );
96  //if ( prof ) { prof->SetErrorOption("s"); }
97 }
int extract(std::vector< int > *output, const std::string &dati)

◆ histo() [2/2]

CommissioningTask::MonitorElement * CommissioningTask::HistoSet::histo ( )

Definition at line 81 of file CommissioningTask.cc.

81 { return histo_; }

Member Data Documentation

◆ axis_

TAxis* CommissioningTask::HistoSet::axis_
private

Definition at line 52 of file CommissioningTask.h.

◆ explicitFill_

bool CommissioningTask::HistoSet::explicitFill_

◆ histo_

MonitorElement* CommissioningTask::HistoSet::histo_
private

Definition at line 51 of file CommissioningTask.h.

◆ isProfile_

bool CommissioningTask::HistoSet::isProfile_

◆ vNumOfEntries_

std::vector<float> CommissioningTask::HistoSet::vNumOfEntries_

◆ vSumOfContents_

std::vector<float> CommissioningTask::HistoSet::vSumOfContents_

◆ vSumOfSquares_

std::vector<double> CommissioningTask::HistoSet::vSumOfSquares_