#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) |
|
L1TOccupancyClientHistogramService::L1TOccupancyClientHistogramService |
( |
| ) |
|
TH2F * L1TOccupancyClientHistogramService::getDifferentialHistogram |
( |
std::string |
test | ) |
|
vector< int > L1TOccupancyClientHistogramService::getLSCertification |
( |
std::string |
iHistName | ) |
|
vector< pair< int, int > > L1TOccupancyClientHistogramService::getMaskedBins |
( |
std::string |
test | ) |
|
unsigned int L1TOccupancyClientHistogramService::getNBinsHistogram |
( |
std::string |
test | ) |
|
Definition at line 46 of file L1TOccupancyClientHistogramService.cc.
48 int nBinsX = pHistogram->GetNbinsX();
49 int nBinsY = pHistogram->GetNbinsY();
51 unsigned int nBinsActive = (nBinsX * nBinsY) - nMasked;
unsigned int getNBinsMasked(std::string test)
TH2F * getDifferentialHistogram(std::string test)
unsigned int L1TOccupancyClientHistogramService::getNBinsMasked |
( |
std::string |
test | ) |
|
TH2F * L1TOccupancyClientHistogramService::getRebinnedHistogram |
( |
DQMStore::IGetter & |
igetter, |
|
|
std::string |
iHistName, |
|
|
std::string |
iHistLocation |
|
) |
| |
bool L1TOccupancyClientHistogramService::isMasked |
( |
std::string |
test, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
Definition at line 233 of file L1TOccupancyClientHistogramService.cc.
References mps_fire::i.
234 vector<pair<int, int> >* thisHistMaskedBins =
mMaskedBins[iHistName];
236 bool binIsMasked =
false;
238 for (
unsigned int i = 0;
i < thisHistMaskedBins->size();
i++) {
239 if ((*thisHistMaskedBins)[
i].first == iBinX && (*thisHistMaskedBins)[
i].second == iBinY) {
std::map< std::string, std::vector< std::pair< int, int > > * > mMaskedBins
bool L1TOccupancyClientHistogramService::isStripMasked |
( |
std::string |
test, |
|
|
int |
binStrip, |
|
|
int |
axis |
|
) |
| |
Definition at line 258 of file L1TOccupancyClientHistogramService.cc.
References KineDebug3::count(), and mps_fire::i.
259 bool stripIsMasked =
true;
260 vector<pair<int, int> >* thisHistMaskedBins =
mMaskedBins[iHistName];
265 for (
unsigned int i = 0;
i < thisHistMaskedBins->size();
i++) {
266 if ((*thisHistMaskedBins)[
i].first == iBinStrip) {
275 for (
unsigned int i = 0;
i < thisHistMaskedBins->size();
i++) {
276 if ((*thisHistMaskedBins)[
i].second == iBinStrip) {
283 return stripIsMasked;
std::map< std::string, std::vector< std::pair< int, int > > * > mMaskedBins
TH2F * getDifferentialHistogram(std::string test)
TH2F * L1TOccupancyClientHistogramService::loadHisto |
( |
DQMStore::IGetter & |
igetter, |
|
|
std::string |
test, |
|
|
std::string |
histo |
|
) |
| |
Definition at line 295 of file L1TOccupancyClientHistogramService.cc.
298 pair<TH2F*, TH2F*> histPair;
304 histPair.first = pHist;
306 TH2F* histDiff =
new TH2F(*histPair.first);
308 histPair.second = histDiff;
TH2F * getRebinnedHistogram(DQMStore::IGetter &igetter, std::string iHistName, std::string iHistLocation)
std::map< std::string, bool > mHistValid
std::map< std::string, std::pair< TH2F *, TH2F * > > mHistograms
std::map< std::string, TH2F * > mHistDiffMinus1
int L1TOccupancyClientHistogramService::maskBins |
( |
std::string |
test, |
|
|
TH2F * |
histo, |
|
|
int |
strip, |
|
|
int |
axis |
|
) |
| |
Definition at line 191 of file L1TOccupancyClientHistogramService.cc.
References KineDebug3::count(), gather_cfg::cout, mps_fire::i, visualization-live-secondInstance_cfg::m, and AlCaHLTBitMon_ParallelJobs::p.
197 for (
unsigned int i = 0;
i < m.size();
i++) {
198 pair<int, int>&
p = m[
i];
199 if (p.first == iStrip) {
200 oHist->SetBinContent(p.first, p.second, 0.0);
206 else if (iAxis == 2) {
207 for (
unsigned int i = 0;
i < m.size();
i++) {
208 pair<int, int>& p = m[
i];
209 if (p.second == iStrip) {
210 oHist->SetBinContent(p.first, p.second, 0.0);
216 cout <<
"invalid axis" << endl;
std::map< std::string, std::vector< std::pair< int, int > > * > mMaskedBins
void L1TOccupancyClientHistogramService::resetHisto |
( |
std::string |
test | ) |
|
Definition at line 416 of file L1TOccupancyClientHistogramService.cc.
References edm::second().
std::map< std::string, bool > mHistValid
U second(std::pair< T, U > const &p)
std::map< std::string, std::vector< int > > mLSListDiff
std::map< std::string, std::pair< TH2F *, TH2F * > > mHistograms
std::map< std::string, std::vector< int > > mLSListDiffMinus1
std::map< std::string, TH2F * > mHistDiffMinus1
void L1TOccupancyClientHistogramService::setMaskedBins |
( |
std::string |
test, |
|
|
const std::vector< edm::ParameterSet > & |
mask |
|
) |
| |
Definition at line 64 of file L1TOccupancyClientHistogramService.cc.
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.
66 vector<pair<int, int> >*
m =
new vector<pair<int, int> >();
69 printf(
"Masked areas for: %s\n", iHistName.c_str());
72 for (
unsigned int i = 0;
i < iMaskedAreas.size();
i++) {
84 if (iTypeUnits == 0) {
85 sTypeUnits =
"Histogram Units";
86 }
else if (iTypeUnits == 1) {
87 sTypeUnits =
"Bin Units";
89 sTypeUnits =
"Unknown Units";
92 "Area %3i: xmin=%6.2f xmax=%6.2f ymin=%6.2f ymax=%6.2f %s\n",
i, xmin, xmax, ymin, ymax, sTypeUnits.c_str());
95 int xfirst, yfirst,
xlast, ylast;
98 if (!(xmin <= xmax)) {
103 if (!(ymin <= ymax)) {
110 if (iTypeUnits == 0) {
112 int globalMaxBin = histo->FindBin(xmax, ymax);
113 int globalMinBin = histo->FindBin(xmax, ymax);
119 histo->GetBinXYZ(globalMinBin, xfirst, yfirst, binZ);
120 histo->GetBinXYZ(globalMaxBin, xlast, ylast, binZ);
124 if (histo->GetXaxis()->GetBinLowEdge(globalMaxBin) ==
xmax) {
127 if (histo->GetYaxis()->GetBinLowEdge(globalMaxBin) ==
ymax) {
142 for (
int x = xfirst;
x <=
xlast;
x++) {
143 for (
int y = yfirst;
y <= ylast;
y++) {
T getParameter(std::string const &) const
std::map< std::string, std::vector< std::pair< int, int > > * > mMaskedBins
std::map< std::string, std::pair< TH2F *, TH2F * > > mHistograms
void L1TOccupancyClientHistogramService::updateHistogramEndLS |
( |
DQMStore::IGetter & |
igetter, |
|
|
std::string |
test, |
|
|
std::string |
histo, |
|
|
int |
iLS |
|
) |
| |
Definition at line 375 of file L1TOccupancyClientHistogramService.cc.
References edm::first().
381 igetter, iHistLocation, iHistLocation);
383 TH2F* histo_old =
new TH2F(*histo_curr);
TH2F * getRebinnedHistogram(DQMStore::IGetter &igetter, std::string iHistName, std::string iHistLocation)
std::map< std::string, bool > mHistValid
std::map< std::string, std::vector< int > > mLSListDiff
std::map< std::string, std::pair< TH2F *, TH2F * > > mHistograms
void L1TOccupancyClientHistogramService::updateHistogramEndRun |
( |
std::string |
iHistName | ) |
|
Definition at line 402 of file L1TOccupancyClientHistogramService.cc.
References begin, and end.
std::map< std::string, bool > mHistValid
std::map< std::string, std::vector< int > > mLSListDiff
std::map< std::string, std::pair< TH2F *, TH2F * > > mHistograms
std::map< std::string, std::vector< int > > mLSListDiffMinus1
std::map< std::string, TH2F * > mHistDiffMinus1
std::map<std::string, TH2F*> L1TOccupancyClientHistogramService::mHistDiffMinus1 |
|
private |
std::map<std::string, std::pair<TH2F*, TH2F*> > L1TOccupancyClientHistogramService::mHistograms |
|
private |
std::map<std::string, bool> L1TOccupancyClientHistogramService::mHistValid |
|
private |
std::map<std::string, std::vector<int> > L1TOccupancyClientHistogramService::mLSListDiff |
|
private |
std::map<std::string, std::vector<int> > L1TOccupancyClientHistogramService::mLSListDiffMinus1 |
|
private |
std::map<std::string, std::vector<std::pair<int, int> >*> L1TOccupancyClientHistogramService::mMaskedBins |
|
private |
bool L1TOccupancyClientHistogramService::mVerbose |
|
private |