#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 45 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 220 of file L1TOccupancyClientHistogramService.cc.
References mps_fire::i.
222 vector<pair<int,int> > *thisHistMaskedBins =
mMaskedBins[iHistName];
224 bool binIsMasked =
false;
226 for(
unsigned int i=0;
i<thisHistMaskedBins->size();
i++) {
227 if((*thisHistMaskedBins)[
i].first ==iBinX &&
228 (*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 247 of file L1TOccupancyClientHistogramService.cc.
References KineDebug3::count(), and mps_fire::i.
249 bool stripIsMasked =
true;
250 vector<pair<int,int> > *thisHistMaskedBins =
mMaskedBins[iHistName];
255 for(
unsigned int i=0;
i<thisHistMaskedBins->size();
i++) {
256 if((*thisHistMaskedBins)[
i].first==iBinStrip){count++;}
263 for(
unsigned int i=0;
i<thisHistMaskedBins->size();
i++) {
264 if((*thisHistMaskedBins)[
i].second==iBinStrip){count++;}
269 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 282 of file L1TOccupancyClientHistogramService.cc.
284 pair<TH2F*,TH2F*> histPair;
291 histPair.first = pHist;
293 TH2F* histDiff =
new TH2F(*histPair.first);
295 histPair.second=histDiff;
std::map< std::string, bool > mHistValid
std::map< std::string, TH2F * > mHistDiffMinus1
TH2F * getRebinnedHistogram(DQMStore::IGetter &igetter, std::string iHistName, std::string iHistLocation)
std::map< std::string, std::pair< TH2F *, TH2F * > > mHistograms
int L1TOccupancyClientHistogramService::maskBins |
( |
std::string |
test, |
|
|
TH2F * |
histo, |
|
|
int |
strip, |
|
|
int |
axis |
|
) |
| |
Definition at line 178 of file L1TOccupancyClientHistogramService.cc.
References KineDebug3::count(), gather_cfg::cout, mps_fire::i, funct::m, and AlCaHLTBitMon_ParallelJobs::p.
185 for(
unsigned int i=0;
i<m.size();
i++) {
186 pair<int,int> &
p = m[
i];
187 if(p.first==iStrip) {
188 oHist->SetBinContent(p.first,p.second,0.0);
195 for(
unsigned int i=0;
i<m.size();
i++) {
196 pair<int,int> &p = m[
i];
197 if(p.second==iStrip) {
198 oHist->SetBinContent(p.first,p.second,0.0);
std::map< std::string, std::vector< std::pair< int, int > > * > mMaskedBins
void L1TOccupancyClientHistogramService::resetHisto |
( |
std::string |
test | ) |
|
Definition at line 404 of file L1TOccupancyClientHistogramService.cc.
References edm::second().
std::map< std::string, bool > mHistValid
std::map< std::string, TH2F * > mHistDiffMinus1
std::map< std::string, std::pair< TH2F *, TH2F * > > mHistograms
U second(std::pair< T, U > const &p)
std::map< std::string, std::vector< int > > mLSListDiffMinus1
std::map< std::string, std::vector< int > > mLSListDiff
void L1TOccupancyClientHistogramService::setMaskedBins |
( |
std::string |
test, |
|
|
const std::vector< edm::ParameterSet > & |
mask |
|
) |
| |
Definition at line 65 of file L1TOccupancyClientHistogramService.cc.
References edm::ParameterSet::getParameter(), trackerHits::histo, mps_fire::i, createfilelist::int, funct::m, AlCaHLTBitMon_ParallelJobs::p, xlast, TrackerOfflineValidation_Dqm_cff::xmax, TrackerOfflineValidation_Dqm_cff::xmin, Phase2TrackerMonitorDigi_cff::ymax, and Phase2TrackerMonitorDigi_cff::ymin.
68 vector<pair<int,int> >*
m =
new vector<pair<int,int> >();
70 if(
mVerbose){printf(
"Masked areas for: %s\n",iHistName.c_str());}
72 for(
unsigned int i=0;
i<iMaskedAreas.size();
i++) {
85 if (iTypeUnits == 0){sTypeUnits =
"Histogram Units";}
86 else if(iTypeUnits == 1){sTypeUnits =
"Bin Units";}
87 else {sTypeUnits =
"Unknown Units";}
88 printf(
"Area %3i: xmin=%6.2f xmax=%6.2f ymin=%6.2f ymax=%6.2f %s\n",
i,xmin,xmax,ymin,ymax,sTypeUnits.c_str());
91 int xfirst,yfirst,
xlast,ylast;
94 if(!(xmin<=xmax)){
int z=
xmax; xmax=
xmin; xmin=
z;}
95 if(!(ymin<=ymax)){
int z=
ymax; ymax=
ymin; ymin=
z;}
101 int globalMaxBin = histo->FindBin(xmax,ymax);
102 int globalMinBin = histo->FindBin(xmax,ymax);
108 histo->GetBinXYZ(globalMinBin,xfirst,yfirst,binZ);
109 histo->GetBinXYZ(globalMaxBin,xlast ,ylast ,binZ);
113 if(histo->GetXaxis()->GetBinLowEdge(globalMaxBin)==
xmax){xlast--;}
114 if(histo->GetYaxis()->GetBinLowEdge(globalMaxBin)==
ymax){ylast--;}
128 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 362 of file L1TOccupancyClientHistogramService.cc.
References edm::first().
368 TH2F* histo_old =
new TH2F(*histo_curr);
std::map< std::string, bool > mHistValid
TH2F * getRebinnedHistogram(DQMStore::IGetter &igetter, std::string iHistName, std::string iHistLocation)
std::map< std::string, std::pair< TH2F *, TH2F * > > mHistograms
std::map< std::string, std::vector< int > > mLSListDiff
void L1TOccupancyClientHistogramService::updateHistogramEndRun |
( |
std::string |
iHistName | ) |
|
Definition at line 387 of file L1TOccupancyClientHistogramService.cc.
References begin, and end.
std::map< std::string, bool > mHistValid
std::map< std::string, TH2F * > mHistDiffMinus1
std::map< std::string, std::pair< TH2F *, TH2F * > > mHistograms
std::map< std::string, std::vector< int > > mLSListDiffMinus1
std::map< std::string, std::vector< int > > mLSListDiff
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 |