1 #ifndef DQM_TRACKERREMAPPER_PHASE1PIXELSUMMARYMAP_H 2 #define DQM_TRACKERREMAPPER_PHASE1PIXELSUMMARYMAP_H 14 #include <fmt/printf.h> 17 #include <boost/tokenizer.hpp> 18 #include <boost/range/adaptor/indexed.hpp> 24 #ifndef PH1PSUMMARYMAP_STANDALONE 25 #define LOGDEBUG(x) LogDebug(x) 26 #define LOGINFO(x) edm::LogInfo(x) 27 #define LOGPRINT(x) edm::LogPrint(x) 29 #define LOGDEBUG(x) std::cout << x << " Debug : " 30 #define LOGINFO(x) std::cout << x << " Info : " 31 #define LOGPRINT(x) std::cout << x << " : " 34 using indexedCorners = std::map<unsigned int, std::pair<std::vector<float>, std::vector<float>>>;
42 std::vector<std::string> tokens;
43 std::stringstream check1(
line);
47 while (getline(check1, intermediate,
delimiter)) {
48 tokens.push_back(intermediate);
66 for (
unsigned int i = 1;
i <= 4;
i++) {
71 for (
int j : {-3, -2, -1, 1, 2, 3}) {
95 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
void createTrackerBaseMap()
std::vector< std::string > tokenize(std::string line, char delimiter)
const std::pair< float, float > getZAxisRange() const
~Phase1PixelSummaryMap()=default
static const unsigned int maxPxForward
const std::string m_title
std::shared_ptr< TH2Poly > m_BaseTrackerMap
std::vector< edm::FileInPath > m_cornersBPIX
std::map< unsigned int, std::pair< std::vector< float >, std::vector< float > >> indexedCorners
void setZAxisRange(const double min, const double max)
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
void printTrackerMap(TCanvas &canvas, const float topMargin=0.02, int index=0)
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)