CMS 3D CMS Logo

Classes | Typedefs | Functions
dqmoffline::l1t Namespace Reference

Classes

class  L1TDiffHarvesting
 
class  L1TEfficiencyHarvesting
 
class  L1TEfficiencyPlotHandler
 

Typedefs

typedef std::vector< L1TEfficiencyPlotHandlerL1TEfficiencyPlotHandlerCollection
 

Functions

void fill2DWithinLimits (MonitorElement *mon, double valueX, double valueY, double weight=1.)
 
void fillWithinLimits (MonitorElement *mon, double value, double weight=1.)
 
double getFillValueWithinLimits (double value, double min, double max)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< L1TDiffHarvesting > > s_filler__LINE__ ("L1TDiffHarvesting")
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< L1TEfficiencyHarvesting > > s_filler__LINE__ ("L1TEfficiencyHarvesting")
 
static const edm::MakerPluginFactory::PMaker< edm::WorkerMaker< L1TEfficiencyHarvesting > > s_maker__LINE__ ("L1TEfficiencyHarvesting")
 
static const edm::MakerPluginFactory::PMaker< edm::WorkerMaker< L1TDiffHarvesting > > s_maker__LINE__ ("L1TDiffHarvesting")
 

Typedef Documentation

Definition at line 68 of file L1TEfficiencyHarvesting.h.

Function Documentation

void dqmoffline::l1t::fill2DWithinLimits ( MonitorElement mon,
double  valueX,
double  valueY,
double  weight = 1. 
)

Fills a given MonitorElement within the boundaries of the underlying histogram. This means that underflow is filled into the first bin and overflow is filled into the last bin.

Parameters
pointerto the DQM MonitorElement
fillvalue for X
fillvalue for Y
optionalweight X
optionalweight Y

Definition at line 22 of file L1TFillWithinLimits.cc.

References MonitorElement::Fill(), getFillValueWithinLimits(), MonitorElement::getTH2F(), and create_public_lumi_plots::hist.

Referenced by L1TEGammaOffline::fillElectrons(), L1TStage2CaloLayer2Offline::fillEnergySums(), L1TStage2CaloLayer2Offline::fillJets(), and L1TEGammaOffline::fillPhotons().

23 {
24  TH1 * hist = mon->getTH2F();
25  double minX(hist->GetXaxis()->GetXmin());
26  double minY(hist->GetYaxis()->GetXmin());
27 
28  double maxX(hist->GetXaxis()->GetXmax());
29  double maxY(hist->GetYaxis()->GetXmax());
30 
31  double fillValueX = getFillValueWithinLimits(valueX, minX, maxX);
32  double fillValueY = getFillValueWithinLimits(valueY, minY, maxY);
33  mon->Fill(fillValueX, fillValueY, weight);
34 
35 }
double getFillValueWithinLimits(double value, double min, double max)
Definition: weight.py:1
void Fill(long long x)
TH2F * getTH2F(void) const
void dqmoffline::l1t::fillWithinLimits ( MonitorElement mon,
double  value,
double  weight = 1. 
)

Fills a given MonitorElement within the boundaries of the underlying histogram. This means that underflow is filled into the first bin and overflow is filled into the last bin.

Parameters
pointerto the DQM MonitorElement
fillvalue
optionalweight

Fills a given

Parameters

Definition at line 12 of file L1TFillWithinLimits.cc.

References MonitorElement::Fill(), getFillValueWithinLimits(), MonitorElement::getTH1F(), create_public_lumi_plots::hist, hpstanc_transforms::max, and min().

Referenced by L1TEGammaOffline::analyze(), L1TStage2CaloLayer2Offline::analyze(), L1TEGammaOffline::fillElectrons(), L1TStage2CaloLayer2Offline::fillEnergySums(), L1TStage2CaloLayer2Offline::fillJets(), L1TEGammaOffline::fillPhotons(), and L1TEGammaOffline::findTagAndProbePair().

13 {
14  TH1 * hist = mon->getTH1F();
15  double min(hist->GetXaxis()->GetXmin());
16  double max(hist->GetXaxis()->GetXmax());
17 
18  double fillValue = getFillValueWithinLimits(value, min, max);
19  mon->Fill(fillValue, weight);
20 
21 }
double getFillValueWithinLimits(double value, double min, double max)
Definition: weight.py:1
void Fill(long long x)
Definition: value.py:1
T min(T a, T b)
Definition: MathUtil.h:58
TH1F * getTH1F(void) const
double dqmoffline::l1t::getFillValueWithinLimits ( double  value,
double  min,
double  max 
)

Definition at line 37 of file L1TFillWithinLimits.cc.

References hpstanc_transforms::max, min(), and relativeConstraints::value.

Referenced by fill2DWithinLimits(), and fillWithinLimits().

38 {
39  if (value < min)
40  return min;
41 
42  if (value > max)
43  return max;
44 
45  return value;
46 }
Definition: value.py:1
T min(T a, T b)
Definition: MathUtil.h:58
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< L1TDiffHarvesting > > dqmoffline::l1t::s_filler__LINE__ ( "L1TDiffHarvesting"  )
static
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< L1TEfficiencyHarvesting > > dqmoffline::l1t::s_filler__LINE__ ( "L1TEfficiencyHarvesting"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< L1TEfficiencyHarvesting > > dqmoffline::l1t::s_maker__LINE__ ( "L1TEfficiencyHarvesting"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< L1TDiffHarvesting > > dqmoffline::l1t::s_maker__LINE__ ( "L1TDiffHarvesting"  )
static