#include "TText.h"
#include "TLatex.h"
#include "TLine.h"
#include "TGaxis.h"
#include "TFile.h"
#include "TDirectory.h"
#include "TH1F.h"
#include "TProfile.h"
#include "TH1D.h"
#include "TList.h"
#include "TBox.h"
#include "TFrame.h"
#include "TStyle.h"
#include "TCanvas.h"
#include "TColor.h"
#include "TROOT.h"
#include <cstring>
#include <iostream>
#include <cmath>
#include <algorithm>
#include "DPGAnalysis/SiStripTools/interface/CommonAnalyzer.h"
#include "OccupancyPlotMacros.h"
Go to the source code of this file.
Functions | |
float | combinedOccupancy (TFile *ff, const char *module, const int lowerbin, const int upperbin) |
TCanvas * | drawMap (const char *cname, const TH1 *hval, const TProfile *averadius, const TProfile *avez, const float mmin, const float mmax, std::pair< float, float >(*size)(int), float(*scale)(float), const int color, const char *ptitle) |
float | linear (float x) |
float | logarithm (float x) |
std::pair< float, float > | phase1bin (int i) |
std::pair< float, float > | phase2bin (int i) |
void | PlotDebugFPIX_XYMap (TFile *ff, const char *module, const unsigned int ioffset, const char *name) |
void | PlotOccupancyMap (TFile *ff, const char *module, const float min, const float max, const float mmin, const float mmax, const int color) |
void | PlotOccupancyMapGeneric (TFile *ff, const char *module, const float min, const float max, const float mmin, const float mmax, const int color, std::pair< float, float >(*size)(int), std::vector< SubDetParams > &vsub) |
void | PlotOccupancyMapPhase1 (TFile *ff, const char *module, const float min, const float max, const float mmin, const float mmax, const int color) |
void | PlotOccupancyMapPhase2 (TFile *ff, const char *module, const float min, const float max, const float mmin, const float mmax, const int color) |
void | PlotOnTrackOccupancy (TFile *ff, const char *module, const char *ontrkmod, const float mmin, const float mmax, const int color) |
void | PlotOnTrackOccupancyGeneric (TFile *ff, const char *module, const char *ontrkmod, const float mmin, const float mmax, const int color, std::pair< float, float >(*size)(int), const std::vector< SubDetParams > &vsub) |
void | PlotOnTrackOccupancyPhase1 (TFile *ff, const char *module, const char *ontrkmod, const float mmin, const float mmax, const int color) |
void | PlotOnTrackOccupancyPhase2 (TFile *ff, const char *module, const char *ontrkmod, const float mmin, const float mmax, const int color) |
void | PlotTrackerXsect (TFile *ff, const char *module) |
std::pair< float, float > | presentbin (int i) |
void | printFrame (TCanvas *c, TH1D *h, const char *label, const int frame, const int min, const int max, const bool same) |
TH1D * | TrendPlotSingleBin (TFile *ff, const char *module, const char *hname, const int bin) |
float combinedOccupancy | ( | TFile * | ff, |
const char * | module, | ||
const int | lowerbin, | ||
const int | upperbin | ||
) |
Definition at line 370 of file OccupancyPlotMacros.cc.
References gather_cfg::cout, alignCSCRings::ff, mps_fire::i, and mathSSE::sqrt().
TCanvas* drawMap | ( | const char * | cname, |
const TH1 * | hval, | ||
const TProfile * | averadius, | ||
const TProfile * | avez, | ||
const float | mmin, | ||
const float | mmax, | ||
std::pair< float, float >(*)(int) | size, | ||
float(*)(float) | scale, | ||
const int | color, | ||
const char * | ptitle | ||
) |
Definition at line 599 of file OccupancyPlotMacros.cc.
References DivergingColor::blue, gather_cfg::cout, l1ctLayer1_cff::dr, PVValHelper::dz, PVValHelper::eta, JetChargeProducer_cfi::exp, dqmdumpme::first, mps_fire::i, createfilelist::int, label, DivergingColor::red, l1tEGammaCrystalsEmulatorProducer_cfi::scale, edm::second(), and LaserClient_cfi::zaxis.
Referenced by PlotOccupancyMapGeneric(), PlotOnTrackOccupancyGeneric(), and PlotTrackerXsect().
float linear | ( | float | x | ) |
Definition at line 26 of file OccupancyPlotMacros.cc.
References x.
Referenced by npstat::LinInterpolatedTableND< Numeric, Axis >::operator()(), CastorCtdcPacker::pack(), CastorPacker::pack(), HcalPacker::pack(), PlotOnTrackOccupancyGeneric(), PlotTrackerXsect(), L1CaloEtScale::rank(), HcaluLUTTPGCoder::setAllLinear(), and HcalUnpacker::unpackVME().
float logarithm | ( | float | x | ) |
Definition at line 27 of file OccupancyPlotMacros.cc.
References dqm-mbProfile::log, and x.
Referenced by PlotOccupancyMapGeneric().
std::pair<float, float> phase1bin | ( | int | i | ) |
Definition at line 176 of file OccupancyPlotMacros.cc.
References l1ctLayer1_cff::dr, PVValHelper::dz, and mps_fire::i.
Referenced by PlotOccupancyMapPhase1(), and PlotOnTrackOccupancyPhase1().
std::pair<float, float> phase2bin | ( | int | i | ) |
Definition at line 103 of file OccupancyPlotMacros.cc.
References l1ctLayer1_cff::dr, PVValHelper::dz, and mps_fire::i.
Referenced by PlotOccupancyMapPhase2(), and PlotOnTrackOccupancyPhase2().
void PlotDebugFPIX_XYMap | ( | TFile * | ff, |
const char * | module, | ||
const unsigned int | ioffset, | ||
const char * | name | ||
) |
Definition at line 790 of file OccupancyPlotMacros.cc.
References gpuPixelDoublets::cc, gather_cfg::cout, alignCSCRings::ff, mod(), Skims_PA_cff::name, x, and detailsBasic3DVector::y.
void PlotOccupancyMap | ( | TFile * | ff, |
const char * | module, | ||
const float | min, | ||
const float | max, | ||
const float | mmin, | ||
const float | mmax, | ||
const int | color | ||
) |
Definition at line 398 of file OccupancyPlotMacros.cc.
References alignCSCRings::ff, createfilelist::int, SiStripPI::max, SiStripPI::min, PlotOccupancyMapGeneric(), presentbin(), and findQualityFiles::size.
void PlotOccupancyMapGeneric | ( | TFile * | ff, |
const char * | module, | ||
const float | min, | ||
const float | max, | ||
const float | mmin, | ||
const float | mmax, | ||
const int | color, | ||
std::pair< float, float >(*)(int) | size, | ||
std::vector< SubDetParams > & | vsub | ||
) |
Definition at line 258 of file OccupancyPlotMacros.cc.
References gather_cfg::cout, drawMap(), alignCSCRings::ff, nano_mu_digi_cff::float, mps_fire::i, label, logarithm(), callgraph::m2, SiStripPI::max, SiStripPI::min, printFrame(), l1tEGammaCrystalsEmulatorProducer_cfi::scale, findQualityFiles::size, and w2.
Referenced by PlotOccupancyMap(), PlotOccupancyMapPhase1(), and PlotOccupancyMapPhase2().
void PlotOccupancyMapPhase1 | ( | TFile * | ff, |
const char * | module, | ||
const float | min, | ||
const float | max, | ||
const float | mmin, | ||
const float | mmax, | ||
const int | color | ||
) |
Definition at line 425 of file OccupancyPlotMacros.cc.
References alignCSCRings::ff, createfilelist::int, SiStripPI::max, SiStripPI::min, phase1bin(), PlotOccupancyMapGeneric(), and findQualityFiles::size.
void PlotOccupancyMapPhase2 | ( | TFile * | ff, |
const char * | module, | ||
const float | min, | ||
const float | max, | ||
const float | mmin, | ||
const float | mmax, | ||
const int | color | ||
) |
Definition at line 452 of file OccupancyPlotMacros.cc.
References alignCSCRings::ff, createfilelist::int, SiStripPI::max, SiStripPI::min, phase2bin(), PlotOccupancyMapGeneric(), and findQualityFiles::size.
void PlotOnTrackOccupancy | ( | TFile * | ff, |
const char * | module, | ||
const char * | ontrkmod, | ||
const float | mmin, | ||
const float | mmax, | ||
const int | color | ||
) |
Definition at line 475 of file OccupancyPlotMacros.cc.
References alignCSCRings::ff, createfilelist::int, PlotOnTrackOccupancyGeneric(), presentbin(), and findQualityFiles::size.
void PlotOnTrackOccupancyGeneric | ( | TFile * | ff, |
const char * | module, | ||
const char * | ontrkmod, | ||
const float | mmin, | ||
const float | mmax, | ||
const int | color, | ||
std::pair< float, float >(*)(int) | size, | ||
const std::vector< SubDetParams > & | vsub | ||
) |
Definition at line 537 of file OccupancyPlotMacros.cc.
References gather_cfg::cout, drawMap(), alignCSCRings::ff, nano_mu_digi_cff::float, label, linear(), printFrame(), l1tEGammaCrystalsEmulatorProducer_cfi::scale, and findQualityFiles::size.
Referenced by PlotOnTrackOccupancy(), PlotOnTrackOccupancyPhase1(), and PlotOnTrackOccupancyPhase2().
void PlotOnTrackOccupancyPhase1 | ( | TFile * | ff, |
const char * | module, | ||
const char * | ontrkmod, | ||
const float | mmin, | ||
const float | mmax, | ||
const int | color | ||
) |
Definition at line 497 of file OccupancyPlotMacros.cc.
References alignCSCRings::ff, createfilelist::int, phase1bin(), PlotOnTrackOccupancyGeneric(), and findQualityFiles::size.
void PlotOnTrackOccupancyPhase2 | ( | TFile * | ff, |
const char * | module, | ||
const char * | ontrkmod, | ||
const float | mmin, | ||
const float | mmax, | ||
const int | color | ||
) |
Definition at line 519 of file OccupancyPlotMacros.cc.
References alignCSCRings::ff, createfilelist::int, phase2bin(), PlotOnTrackOccupancyGeneric(), and findQualityFiles::size.
void PlotTrackerXsect | ( | TFile * | ff, |
const char * | module | ||
) |
Definition at line 842 of file OccupancyPlotMacros.cc.
References gather_cfg::cout, drawMap(), alignCSCRings::ff, nano_mu_digi_cff::float, createfilelist::int, linear(), presentbin(), l1tEGammaCrystalsEmulatorProducer_cfi::scale, and findQualityFiles::size.
std::pair<float, float> presentbin | ( | int | i | ) |
Definition at line 29 of file OccupancyPlotMacros.cc.
References l1ctLayer1_cff::dr, PVValHelper::dz, and mps_fire::i.
Referenced by PlotOccupancyMap(), PlotOnTrackOccupancy(), and PlotTrackerXsect().
void printFrame | ( | TCanvas * | c, |
TH1D * | h, | ||
const char * | label, | ||
const int | frame, | ||
const int | min, | ||
const int | max, | ||
const bool | same | ||
) |
Definition at line 245 of file OccupancyPlotMacros.cc.
References HltBtagPostValidation_cff::c, h, label, SiStripPI::max, SiStripPI::min, and submitPVValidationJobs::t.
Referenced by PlotOccupancyMapGeneric(), and PlotOnTrackOccupancyGeneric().
TH1D* TrendPlotSingleBin | ( | TFile * | ff, |
const char * | module, | ||
const char * | hname, | ||
const int | bin | ||
) |
Definition at line 862 of file OccupancyPlotMacros.cc.
References newFWLiteAna::bin, gather_cfg::cout, alignCSCRings::ff, CommonAnalyzer::getObject(), CommonAnalyzer::getRunList(), mps_fire::i, writedatasetfile::runs, CommonAnalyzer::setPath(), and jetUpdater_cfi::sort.