#include <L1TOccupancyClientHistogramService.h>
|
TH2F * | getDifferentialHistogram (std::string test) |
|
std::vector< int > | getLSCertification (std::string iHistName) |
|
std::vector< std::pair< int, int > > | getMaskedBins (std::string test) |
|
unsigned int | getNBinsHistogram (std::string test) |
|
unsigned int | getNBinsMasked (std::string test) |
|
TH2F * | getRebinnedHistogram (DQMStore::IGetter &igetter, std::string iHistName, std::string iHistLocation) |
|
bool | isMasked (std::string test, int x, int y) |
|
bool | isStripMasked (std::string test, int binStrip, int axis) |
|
| L1TOccupancyClientHistogramService () |
|
| L1TOccupancyClientHistogramService (const edm::ParameterSet &iParameters, DQMStore::IBooker &ibooker, bool iVerbose) |
|
TH2F * | loadHisto (DQMStore::IGetter &igetter, std::string test, std::string histo) |
|
int | maskBins (std::string test, TH2F *histo, int strip, int axis) |
|
void | resetHisto (std::string test) |
|
void | setMaskedBins (std::string test, const std::vector< edm::ParameterSet > &mask) |
|
void | updateHistogramEndLS (DQMStore::IGetter &igetter, std::string test, std::string histo, int iLS) |
|
void | updateHistogramEndRun (std::string iHistName) |
|
◆ DQMStore
◆ MonitorElement
◆ L1TOccupancyClientHistogramService() [1/2]
L1TOccupancyClientHistogramService::L1TOccupancyClientHistogramService |
( |
| ) |
|
◆ L1TOccupancyClientHistogramService() [2/2]
◆ getDifferentialHistogram()
TH2F * L1TOccupancyClientHistogramService::getDifferentialHistogram |
( |
std::string |
test | ) |
|
◆ getLSCertification()
vector< int > L1TOccupancyClientHistogramService::getLSCertification |
( |
std::string |
iHistName | ) |
|
◆ getMaskedBins()
vector< pair< int, int > > L1TOccupancyClientHistogramService::getMaskedBins |
( |
std::string |
test | ) |
|
◆ getNBinsHistogram()
unsigned int L1TOccupancyClientHistogramService::getNBinsHistogram |
( |
std::string |
test | ) |
|
Definition at line 45 of file L1TOccupancyClientHistogramService.cc.
47 int nBinsX = pHistogram->GetNbinsX();
48 int nBinsY = pHistogram->GetNbinsY();
50 unsigned int nBinsActive = (nBinsX * nBinsY) - nMasked;
◆ getNBinsMasked()
unsigned int L1TOccupancyClientHistogramService::getNBinsMasked |
( |
std::string |
test | ) |
|
◆ getRebinnedHistogram()
TH2F * L1TOccupancyClientHistogramService::getRebinnedHistogram |
( |
DQMStore::IGetter & |
igetter, |
|
|
std::string |
iHistName, |
|
|
std::string |
iHistLocation |
|
) |
| |
◆ isMasked()
bool L1TOccupancyClientHistogramService::isMasked |
( |
std::string |
test, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
Definition at line 232 of file L1TOccupancyClientHistogramService.cc.
233 vector<pair<int, int> >* thisHistMaskedBins =
mMaskedBins[iHistName];
235 bool binIsMasked =
false;
237 for (
unsigned int i = 0;
i < thisHistMaskedBins->size();
i++) {
238 if ((*thisHistMaskedBins)[
i].first == iBinX && (*thisHistMaskedBins)[
i].second == iBinY) {
References mps_fire::i.
◆ isStripMasked()
bool L1TOccupancyClientHistogramService::isStripMasked |
( |
std::string |
test, |
|
|
int |
binStrip, |
|
|
int |
axis |
|
) |
| |
Definition at line 257 of file L1TOccupancyClientHistogramService.cc.
258 bool stripIsMasked =
true;
259 vector<pair<int, int> >* thisHistMaskedBins =
mMaskedBins[iHistName];
264 for (
unsigned int i = 0;
i < thisHistMaskedBins->size();
i++) {
265 if ((*thisHistMaskedBins)[
i].first == iBinStrip) {
274 for (
unsigned int i = 0;
i < thisHistMaskedBins->size();
i++) {
275 if ((*thisHistMaskedBins)[
i].second == iBinStrip) {
282 return stripIsMasked;
References KineDebug3::count(), and mps_fire::i.
◆ loadHisto()
TH2F * L1TOccupancyClientHistogramService::loadHisto |
( |
DQMStore::IGetter & |
igetter, |
|
|
std::string |
test, |
|
|
std::string |
histo |
|
) |
| |
Definition at line 294 of file L1TOccupancyClientHistogramService.cc.
297 pair<TH2F*, TH2F*> histPair;
303 histPair.first = pHist;
305 TH2F* histDiff =
new TH2F(*histPair.first);
307 histPair.second = histDiff;
◆ maskBins()
int L1TOccupancyClientHistogramService::maskBins |
( |
std::string |
test, |
|
|
TH2F * |
histo, |
|
|
int |
strip, |
|
|
int |
axis |
|
) |
| |
Definition at line 190 of file L1TOccupancyClientHistogramService.cc.
196 for (
unsigned int i = 0;
i <
m.size();
i++) {
197 pair<int, int>&
p =
m[
i];
198 if (
p.first == iStrip) {
199 oHist->SetBinContent(
p.first,
p.second, 0.0);
205 else if (iAxis == 2) {
206 for (
unsigned int i = 0;
i <
m.size();
i++) {
207 pair<int, int>&
p =
m[
i];
208 if (
p.second == iStrip) {
209 oHist->SetBinContent(
p.first,
p.second, 0.0);
215 cout <<
"invalid axis" << endl;
References KineDebug3::count(), gather_cfg::cout, mps_fire::i, visualization-live-secondInstance_cfg::m, and AlCaHLTBitMon_ParallelJobs::p.
◆ resetHisto()
void L1TOccupancyClientHistogramService::resetHisto |
( |
std::string |
test | ) |
|
◆ setMaskedBins()
void L1TOccupancyClientHistogramService::setMaskedBins |
( |
std::string |
test, |
|
|
const std::vector< edm::ParameterSet > & |
mask |
|
) |
| |
Definition at line 63 of file L1TOccupancyClientHistogramService.cc.
65 vector<pair<int, int> >*
m =
new vector<pair<int, int> >();
68 printf(
"Masked areas for: %s\n", iHistName.c_str());
71 for (
unsigned int i = 0;
i < iMaskedAreas.size();
i++) {
83 if (iTypeUnits == 0) {
84 sTypeUnits =
"Histogram Units";
85 }
else if (iTypeUnits == 1) {
86 sTypeUnits =
"Bin Units";
88 sTypeUnits =
"Unknown Units";
91 "Area %3i: xmin=%6.2f xmax=%6.2f ymin=%6.2f ymax=%6.2f %s\n",
i,
xmin,
xmax,
ymin,
ymax, sTypeUnits.c_str());
94 int xfirst, yfirst,
xlast, ylast;
109 if (iTypeUnits == 0) {
118 histo->GetBinXYZ(globalMinBin, xfirst, yfirst, binZ);
119 histo->GetBinXYZ(globalMaxBin,
xlast, ylast, binZ);
123 if (
histo->GetXaxis()->GetBinLowEdge(globalMaxBin) ==
xmax) {
126 if (
histo->GetYaxis()->GetBinLowEdge(globalMaxBin) ==
ymax) {
141 for (
int x = xfirst;
x <=
xlast;
x++) {
142 for (
int y = yfirst;
y <= ylast;
y++) {
References edm::ParameterSet::getParameter(), timingPdfMaker::histo, mps_fire::i, createfilelist::int, visualization-live-secondInstance_cfg::m, AlCaHLTBitMon_ParallelJobs::p, xlast, TrackerOfflineValidation_Dqm_cff::xmax, TrackerOfflineValidation_Dqm_cff::xmin, L1TOccupancyClient_cfi::ymax, and L1TOccupancyClient_cfi::ymin.
◆ updateHistogramEndLS()
void L1TOccupancyClientHistogramService::updateHistogramEndLS |
( |
DQMStore::IGetter & |
igetter, |
|
|
std::string |
test, |
|
|
std::string |
histo, |
|
|
int |
iLS |
|
) |
| |
◆ updateHistogramEndRun()
void L1TOccupancyClientHistogramService::updateHistogramEndRun |
( |
std::string |
iHistName | ) |
|
◆ mHistDiffMinus1
std::map<std::string, TH2F*> L1TOccupancyClientHistogramService::mHistDiffMinus1 |
|
private |
◆ mHistograms
std::map<std::string, std::pair<TH2F*, TH2F*> > L1TOccupancyClientHistogramService::mHistograms |
|
private |
◆ mHistValid
std::map<std::string, bool> L1TOccupancyClientHistogramService::mHistValid |
|
private |
◆ mLSListDiff
std::map<std::string, std::vector<int> > L1TOccupancyClientHistogramService::mLSListDiff |
|
private |
◆ mLSListDiffMinus1
std::map<std::string, std::vector<int> > L1TOccupancyClientHistogramService::mLSListDiffMinus1 |
|
private |
◆ mMaskedBins
std::map<std::string, std::vector<std::pair<int, int> >*> L1TOccupancyClientHistogramService::mMaskedBins |
|
private |
◆ mParameters
◆ mVerbose
bool L1TOccupancyClientHistogramService::mVerbose |
|
private |