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);
void drawForwardMaps(const std::string ¤tHistoName, TCanvas &canvas, const char *drawOption=nullptr)
std::vector< edm::FileInPath > m_cornersFPIX
void setBarrelScale(const std::string ¤tHistoName, std::pair< float, float > extrema)
void adjustCanvasMargins(TVirtualPad *pad, float top, float bottom, float left, float right)
void makeNicePlotStyle(TH1 *hist)
void rescaleAllForward(const std::string ¤tHistoName)
void drawSummaryMaps(const std::string ¤tHistoName, TCanvas &canvas, const char *drawOption=nullptr)
std::map< std::string, std::vector< std::shared_ptr< TH2Poly > > > pxfTh2PolyForward
void fillForwardBin(const std::string ¤tHistoName, unsigned int id, double value)
std::map< uint32_t, std::shared_ptr< TGraph > > binsSummary
std::vector< edm::FileInPath > m_cornersBPIX
void drawBarrelMaps(const std::string ¤tHistoName, TCanvas &canvas, const char *drawOption=nullptr)
std::map< uint32_t, std::shared_ptr< TGraph > > bins
const indexedCorners retrieveCorners(const std::vector< edm::FileInPath > &cornerFiles, const unsigned int reads)
void resetOption(const char *option)
void bookBarrelBins(const std::string ¤tHistoName)
TrackerTopology m_trackerTopo
void rescaleAllBarrel(const std::string ¤tHistoName)
Phase1PixelMaps(const char *option)
std::map< unsigned int, std::pair< std::vector< float >, std::vector< float > >> indexedCorners
std::map< std::string, std::vector< std::shared_ptr< TH2Poly > > > pxbTh2PolyBarrel
std::map< std::string, std::shared_ptr< TH2Poly > > pxbTh2PolyBarrelSummary
void bookForwardBins(const std::string ¤tHistoName)
void beautifyAllHistograms()
std::pair< bool, bool > m_isBooked
std::map< std::string, std::shared_ptr< TH2Poly > > pxfTh2PolyForwardSummary
std::vector< std::string > m_knownNames
void bookBarrelHistograms(const std::string ¤tHistoName, const char *what, const char *zaxis)
void book(const std::string ¤tHistoName, const char *what, const char *zaxis)
~Phase1PixelMaps()=default
void bookForwardHistograms(const std::string ¤tHistoName, const char *what, const char *zaxis)
void fillBarrelBin(const std::string ¤tHistoName, unsigned int id, double value)
TrackerTopology fromTrackerParametersXMLFile(const std::string &xmlFileName)
void setForwardScale(const std::string ¤tHistoName, std::pair< float, float > extrema)
void fill(const std::string ¤tHistoName, unsigned int id, double value)