1 #ifndef DQM_TRACKERREMAPPER_PHASE1PIXELROCMAPS_H
2 #define DQM_TRACKERREMAPPER_PHASE1PIXELROCMAPS_H
12 #include <fmt/printf.h>
14 #include <boost/tokenizer.hpp>
15 #include <boost/range/adaptor/indexed.hpp>
23 #ifndef PHASE1PIXELMAP_STANDALONE
24 #define LOGDEBUG(x) LogDebug(x)
26 #define LOGDEBUG(x) std::cout << x << ": "
32 namespace PixelROCMapHelper {
33 void draw_line(
double x1,
double x2,
double y1,
double y2,
int width,
int style,
int color);
35 TPad*& canv, TH2*
h,
int lay,
int ring,
int phase,
bool half_shift,
bool mark_zero,
bool standard_palette);
69 <<
" disk: " <<
m_s_disk << std::endl;
90 for (
unsigned int lay = 1; lay <=
n_layers; lay++) {
101 name.c_str(), title.c_str(), 72, -
n_layers - 0.5,
n_layers + 0.5, (nlad * 4 + 2), -nlad - 0.5, nlad + 0.5);
117 std::make_shared<TH2D>(name.c_str(), title.c_str(), 56, -
n_rings - 1.5,
n_rings + 1.5,
n, -
y,
y);
211 }
else if (phase_ == 1) {
252 bool isOuter =
false;
257 isOuter = !odd_ladder;
259 isOuter = odd_ladder;
262 isOuter = odd_ladder;
264 isOuter = !odd_ladder;
static constexpr const char * kVerbose
void drawMaps(TCanvas &canvas, const std::string &text="")
int signed_blade(const DetId &detid, bool phase_)
int moduleName() const
module id (index in z)
unsigned int pxfDisk(const DetId &id) const
unsigned int pxbLadder(const DetId &id) const
constexpr uint32_t rawId() const
get the raw id
DetCoordinates findDetCoordinates(const uint32_t &t_detid)
int signed_module(const DetId &detid, bool phase_)
std::vector< std::pair< int, int > > maskedForwardRocsToBins(DetCoordinates coord)
static constexpr int n_layers
int signed_blade_panel(const DetId &detid, bool phase_)
std::array< std::shared_ptr< TH2D >, n_layers > h_bpix_maps
void drawBarrelMaps(TCanvas &canvas, const std::string &text="")
void fillWholeModule(const uint32_t &detid, double value)
void draw_line(double x1, double x2, double y1, double y2, int width, int style, int color)
constexpr std::array< uint8_t, layerIndexSize > layer
const int nlad_list[n_layers]
int bladeName() const
blade id
void drawForwardMaps(TCanvas &canvas, const std::string &text="")
bool isBPixOuterLadder(const DetId &detid, bool isPhase0)
int quadrant(const DetId &detid, bool phase_)
static constexpr int n_rings
std::vector< std::pair< int, int > > maskedBarrelRocsToBins(DetCoordinates coord)
const int nxbins_list[n_rings]
std::array< std::shared_ptr< TH2D >, 4 > getLayerMaps()
Phase1PixelROCMaps(const char *option, const std::string &zAxisTitle="")
const int nybins_list[n_rings]
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
int signed_disk(const DetId &detid, bool phase_)
Log< level::Warning, true > LogPrint
int ring(const DetId &detid, bool phase_)
unsigned int pxfModule(const DetId &id) const
unsigned int pxbLayer(const DetId &id) const
int ladderName() const
ladder id (index in phi)
static constexpr int numColumns
void fillSelectedRocs(const uint32_t &detid, const std::bitset< 16 > &theROCs, double value)
TrackerTopology m_trackerTopo
std::array< std::shared_ptr< TH2D >, n_rings > h_fpix_maps
TrackerTopology fromTrackerParametersXMLFile(const std::string &xmlFileName)
int signed_ladder(const DetId &detid, bool phase_)
static constexpr int numRows
void dress_plot(TPad *&canv, TH2 *h, int lay, int ring, int phase, bool half_shift, bool mark_zero, bool standard_palette)
std::array< std::shared_ptr< TH2D >, 2 > getRingMaps()
int ringName() const
ring Id
HalfCylinder halfCylinder() const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
unsigned int pxfPanel(const DetId &id) const