1 #ifndef DQM_TRACKERREMAPPER_PHASE1PIXELSUMMARYMAP_H
2 #define DQM_TRACKERREMAPPER_PHASE1PIXELSUMMARYMAP_H
13 #include <fmt/printf.h>
16 #include <boost/tokenizer.hpp>
17 #include <boost/range/adaptor/indexed.hpp>
23 #ifndef PH1PSUMMARYMAP_STANDALONE
24 #define LOGDEBUG(x) LogDebug(x)
25 #define LOGINFO(x) edm::LogInfo(x)
26 #define LOGPRINT(x) edm::LogPrint(x)
28 #define LOGDEBUG(x) std::cout << x << " Debug : "
29 #define LOGINFO(x) std::cout << x << " Info : "
30 #define LOGPRINT(x) std::cout << x << " : "
33 using indexedCorners = std::map<unsigned int, std::pair<std::vector<float>, std::vector<float>>>;
35 namespace Ph1PMapSummaryHelper {
41 std::vector<std::string> tokens;
42 std::stringstream check1(line);
46 while (getline(check1, intermediate, delimiter)) {
47 tokens.push_back(intermediate);
65 for (
unsigned int i = 1;
i <= 4;
i++) {
70 for (
int j : {-3, -2, -1, 1, 2, 3}) {
92 std::map<uint32_t, std::shared_ptr<TGraph>>
bins;
const std::string m_zAxisTitle
void resetOption(const char *option)
static const unsigned int maxPxBarrel
const std::array< int, maxPxBarrel > barrelLadderShift
std::map< uint32_t, std::shared_ptr< TGraph > > bins
const std::array< int, maxPxForward > forwardDiskXShift
std::map< unsigned int, std::pair< std::vector< float >, std::vector< float >>> indexedCorners
void createTrackerBaseMap()
std::vector< std::string > tokenize(std::string line, char delimiter)
~Phase1PixelSummaryMap()=default
static const unsigned int maxPxForward
void printTrackerMap(TCanvas &canvas, const float topMargin=0.02)
const std::string m_title
std::shared_ptr< TH2Poly > m_BaseTrackerMap
std::vector< edm::FileInPath > m_cornersBPIX
TrackerTopology m_trackerTopo
void addNamedBins(edm::FileInPath geoFile, int tX, int tY, int sX, int sY, bool applyModuleRotation=false)
std::vector< edm::FileInPath > m_cornersFPIX
bool fillTrackerMap(unsigned int id, double value)
TrackerTopology fromTrackerParametersXMLFile(const std::string &xmlFileName)
const int forwardDiskYShift
Phase1PixelSummaryMap(const char *option, std::string title, std::string zAxisTitle)