Go to the documentation of this file. 1 #ifndef DQM_TRACKERREMAPPER_PHASE1PIXELMAPS_H
2 #define DQM_TRACKERREMAPPER_PHASE1PIXELMAPS_H
11 #include <fmt/printf.h>
13 #include <boost/tokenizer.hpp>
14 #include <boost/range/adaptor/indexed.hpp>
20 #ifndef PHASE1PIXELMAP_STANDALONE
21 #define LOGDEBUG(x) LogDebug(x)
23 #define LOGDEBUG(x) std::cout << x << ": "
26 using indexedCorners = std::map<unsigned int, std::pair<std::vector<float>, std::vector<float>>>;
43 for (
unsigned int i = 1;
i <= 4;
i++) {
48 for (
int j : {-3, -2, -1, 1, 2, 3}) {
110 void adjustCanvasMargins(TVirtualPad* pad,
float top,
float bottom,
float left,
float right);
std::vector< std::string > m_knownNames
std::map< unsigned int, std::pair< std::vector< float >, std::vector< float > >> indexedCorners
std::map< uint32_t, std::shared_ptr< TGraph > > bins
std::vector< edm::FileInPath > m_cornersFPIX
void makeNicePlotStyle(TH1 *hist)
void setBarrelScale(const std::string ¤tHistoName, std::pair< float, float > extrema)
void bookBarrelHistograms(const std::string ¤tHistoName, const char *what, const char *zaxis)
std::map< std::string, std::vector< std::shared_ptr< TH2Poly > > > pxfTh2PolyForward
void beautifyAllHistograms()
void bookBarrelBins(const std::string ¤tHistoName)
void rescaleAllBarrel(const std::string ¤tHistoName)
Phase1PixelMaps(const char *option)
std::map< std::string, std::vector< std::shared_ptr< TH2Poly > > > pxbTh2PolyBarrel
void fillForwardBin(const std::string ¤tHistoName, unsigned int id, double value)
void bookForwardBins(const std::string ¤tHistoName)
void fillBarrelBin(const std::string ¤tHistoName, unsigned int id, double value)
std::map< std::string, std::shared_ptr< TH2Poly > > pxbTh2PolyBarrelSummary
void bookForwardHistograms(const std::string ¤tHistoName, const char *what, const char *zaxis)
std::map< uint32_t, std::shared_ptr< TGraph > > binsSummary
std::pair< bool, bool > m_isBooked
void fill(const std::string ¤tHistoName, unsigned int id, double value)
std::map< std::string, std::shared_ptr< TH2Poly > > pxfTh2PolyForwardSummary
void setForwardScale(const std::string ¤tHistoName, std::pair< float, float > extrema)
void rescaleAllForward(const std::string ¤tHistoName)
const indexedCorners retrieveCorners(const std::vector< edm::FileInPath > &cornerFiles, const unsigned int reads)
void book(const std::string ¤tHistoName, const char *what, const char *zaxis)
~Phase1PixelMaps()=default
void adjustCanvasMargins(TVirtualPad *pad, float top, float bottom, float left, float right)
void drawForwardMaps(const std::string ¤tHistoName, TCanvas &canvas, const char *drawOption=nullptr)
std::vector< edm::FileInPath > m_cornersBPIX
TrackerTopology m_trackerTopo
void drawBarrelMaps(const std::string ¤tHistoName, TCanvas &canvas, const char *drawOption=nullptr)
void resetOption(const char *option)
void drawSummaryMaps(const std::string ¤tHistoName, TCanvas &canvas)
TrackerTopology fromTrackerParametersXMLFile(const std::string &xmlFileName)