#include <PixelRegionContainers.h>
|
void | beautify (const int linecolor=kBlack, const int fillcolor=kRed) |
|
void | bookAll (std::string title_label, std::string x_label, std::string y_label, const int nbins, const float xmin, const float xmax) |
|
void | draw (TCanvas &canv, bool isBarrel, const char *option="bar2", bool isPhase1Comparison=false) |
|
void | fill (const unsigned int detid, const float value) |
|
std::shared_ptr< TH1F > & | getHistoFromMap (const PixelRegions::PixelId &theId) |
|
const TrackerTopology * | getTheTopo () |
|
| PixelRegionContainers (const TrackerTopology *t_topo, const SiPixelPI::phase &ph) |
|
void | rescaleMax (PixelRegionContainers &the2ndContainer) |
|
void | setLogScale () |
|
void | setTheTopo (const TrackerTopology *t_topo) |
|
void | stats (int index=0) |
|
| ~PixelRegionContainers () |
|
Definition at line 238 of file PixelRegionContainers.h.
◆ PixelRegionContainers()
◆ ~PixelRegionContainers()
PixelRegions::PixelRegionContainers::~PixelRegionContainers |
( |
| ) |
|
|
inline |
◆ beautify()
void PixelRegions::PixelRegionContainers::beautify |
( |
const int |
linecolor = kBlack , |
|
|
const int |
fillcolor = kRed |
|
) |
| |
|
inline |
◆ bookAll()
void PixelRegions::PixelRegionContainers::bookAll |
( |
std::string |
title_label, |
|
|
std::string |
x_label, |
|
|
std::string |
y_label, |
|
|
const int |
nbins, |
|
|
const float |
xmin, |
|
|
const float |
xmax |
|
) |
| |
|
inline |
Definition at line 263 of file PixelRegionContainers.h.
References PixelRegions::IDlabels, PixelRegions::itoa(), PixelRegions::L4, m_Phase, m_theMap, LaserClient_cfi::nbins, PixelRegions::Ph2EmR1, PixelRegions::PixelIDs, SiPixelPI::two, TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.
Referenced by gainCalibHelper::SiPixelGainCalibrationValuesPerRegion< isBarrel, myType, PayloadType >::fill(), and gainCalibHelper::SiPixelGainCalibrationValuesComparisonPerRegion< isBarrel, myType, nIOVs, ntags, PayloadType >::fill().
270 for (
const auto& pixelId :
PixelIDs | boost::adaptors::indexed(0)) {
278 m_theMap[pixelId.value()] = std::make_shared<TH1F>((title_label +
itoa(pixelId.value())).c_str(),
280 (
IDlabels.at(pixelId.index())).c_str(),
std::map< PixelId, std::shared_ptr< TH1F > > m_theMap
const std::vector< std::string > IDlabels
const std::vector< PixelId > PixelIDs
◆ draw()
void PixelRegions::PixelRegionContainers::draw |
( |
TCanvas & |
canv, |
|
|
bool |
isBarrel, |
|
|
const char * |
option = "bar2" , |
|
|
bool |
isPhase1Comparison = false |
|
) |
| |
|
inline |
Definition at line 307 of file PixelRegionContainers.h.
References PixelPluginsPhase0_cfi::isBarrel, dqmiolumiharvest::j, m_isLog, m_Phase, m_theMap, fileinputsource_cfi::option, PixelRegions::PixelIDs, RandomServiceHelper::t2, and SiPixelPI::two.
310 if (canv.GetListOfPrimitives()->GetSize() == 0) {
314 for (
int j = 1;
j <= 4;
j++) {
318 canv.cd(
j)->SetLogy();
320 if ((
j == 4) && (
m_Phase < 1) && !isPhase1Comparison) {
327 t2.SetTextColor(kBlack);
328 t2.DrawLatexNDC(0.5, 0.5,
"Not in Phase-0!");
336 const std::array<int, 18> phase2Pattern = {{1, 2, 3, 4,
339 16, 17, 18, 19, 20}};
342 if (canv.GetListOfPrimitives()->GetSize() == 0) {
346 for (
int j = 1;
j <= maxPads;
j++) {
347 unsigned int mapIndex =
m_Phase == 2 ?
j + 15 :
j + 3;
352 canv.cd(
j)->SetLogy();
354 if ((
j % 6 == 5 ||
j % 6 == 0) && (
m_Phase < 1) && !isPhase1Comparison) {
361 t2.SetTextColor(kBlack);
362 t2.DrawLatexNDC(0.5, 0.5,
"Not in Phase-0!");
std::map< PixelId, std::shared_ptr< TH1F > > m_theMap
const std::vector< PixelId > PixelIDs
◆ fill()
void PixelRegions::PixelRegionContainers::fill |
( |
const unsigned int |
detid, |
|
|
const float |
value |
|
) |
| |
|
inline |
◆ getHistoFromMap()
std::shared_ptr<TH1F>& PixelRegions::PixelRegionContainers::getHistoFromMap |
( |
const PixelRegions::PixelId & |
theId | ) |
|
|
inline |
Definition at line 411 of file PixelRegionContainers.h.
References Exception, and m_theMap.
Referenced by rescaleMax().
417 <<
"PixelRegionContainer::getHistoFromMap(): No histogram is available for PixelId: " << theId <<
"\n";
std::map< PixelId, std::shared_ptr< TH1F > > m_theMap
◆ getTheTopo()
◆ rescaleMax()
◆ setLogScale()
void PixelRegions::PixelRegionContainers::setLogScale |
( |
| ) |
|
|
inline |
◆ setTheTopo()
void PixelRegions::PixelRegionContainers::setTheTopo |
( |
const TrackerTopology * |
t_topo | ) |
|
|
inline |
◆ stats()
void PixelRegions::PixelRegionContainers::stats |
( |
int |
index = 0 | ) |
|
|
inline |
Definition at line 394 of file PixelRegionContainers.h.
References SiPixelPI::adjustStats(), m_theMap, and plotFactory::plot.
396 TPaveStats* st = (TPaveStats*)
plot.second->FindObject(
"stats");
398 st->SetTextSize(0.03);
399 st->SetLineColor(10);
400 if (
plot.second->GetFillColor() != 0) {
401 st->SetTextColor(
plot.second->GetFillColor());
403 st->SetTextColor(
plot.second->GetLineColor());
std::map< PixelId, std::shared_ptr< TH1F > > m_theMap
void adjustStats(TPaveStats *stats, float X1, float Y1, float X2, float Y2)
◆ m_isLog
bool PixelRegions::PixelRegionContainers::m_isLog |
|
private |
◆ m_isTrackerTopologySet
bool PixelRegions::PixelRegionContainers::m_isTrackerTopologySet |
|
private |
◆ m_nbins
int PixelRegions::PixelRegionContainers::m_nbins |
|
private |
◆ m_Phase
◆ m_theMap
std::map<PixelId, std::shared_ptr<TH1F> > PixelRegions::PixelRegionContainers::m_theMap |
|
private |
◆ m_trackerTopo
◆ m_xim
float PixelRegions::PixelRegionContainers::m_xim |
|
private |
◆ m_xmax
float PixelRegions::PixelRegionContainers::m_xmax |
|
private |