#include <Phase1PixelROCMaps.h>
Public Member Functions | |
void | drawBarrelMaps (TCanvas &canvas, const std::string &text="") |
void | drawForwardMaps (TCanvas &canvas, const std::string &text="") |
void | drawMaps (TCanvas &canvas, const std::string &text="") |
void | fillSelectedRocs (const uint32_t &detid, const std::bitset< 16 > &theROCs, double value) |
void | fillWholeModule (const uint32_t &detid, double value) |
DetCoordinates | findDetCoordinates (const uint32_t &t_detid) |
std::array< std::shared_ptr< TH2D >, 4 > | getLayerMaps () |
std::array< std::shared_ptr< TH2D >, 2 > | getRingMaps () |
Phase1PixelROCMaps (const char *option, const std::string &zAxisTitle="") | |
~Phase1PixelROCMaps () | |
Protected Member Functions | |
bool | isBPixOuterLadder (const DetId &detid, bool isPhase0) |
int | quadrant (const DetId &detid, bool phase_) |
int | ring (const DetId &detid, bool phase_) |
int | signed_blade (const DetId &detid, bool phase_) |
int | signed_blade_panel (const DetId &detid, bool phase_) |
int | signed_disk (const DetId &detid, bool phase_) |
int | signed_ladder (const DetId &detid, bool phase_) |
int | signed_module (const DetId &detid, bool phase_) |
Private Member Functions | |
std::vector< std::pair< int, int > > | maskedBarrelRocsToBins (DetCoordinates coord) |
std::vector< std::tuple< int, int, int > > | maskedBarrelRocsToBins (DetCoordinates coord, std::bitset< 16 > myRocs) |
std::vector< std::pair< int, int > > | maskedForwardRocsToBins (DetCoordinates coord) |
std::vector< std::tuple< int, int, int > > | maskedForwardRocsToBins (DetCoordinates coord, std::bitset< 16 > myRocs) |
Private Attributes | |
std::array< std::shared_ptr< TH2D >, n_layers > | h_bpix_maps |
std::array< std::shared_ptr< TH2D >, n_rings > | h_fpix_maps |
Option_t * | m_option |
TrackerTopology | m_trackerTopo |
std::string | m_zAxisTitle |
const int | nlad_list [n_layers] = {6, 14, 22, 32} |
const int | nxbins_list [n_rings] = {11, 17} |
const int | nybins_list [n_rings] = {92, 140} |
Static Private Attributes | |
static constexpr const char * | kVerbose = "verbose" |
static constexpr int | n_layers = 4 |
static constexpr int | n_rings = 2 |
static constexpr int | numColumns = 416 |
static constexpr int | numRows = 160 |
Definition at line 81 of file Phase1PixelROCMaps.h.
|
inline |
Definition at line 83 of file Phase1PixelROCMaps.h.
References fileinputsource_cfi::option.
|
inline |
Definition at line 121 of file Phase1PixelROCMaps.h.
void Phase1PixelROCMaps::drawBarrelMaps | ( | TCanvas & | canvas, |
const std::string & | text = "" |
||
) |
Definition at line 622 of file Phase1PixelROCMaps.cc.
References svgfig::canvas(), PixelROCMapHelper::dress_plot(), newFWLiteAna::found, get, h_bpix_maps, n_layers, and runonSM::text.
void Phase1PixelROCMaps::drawForwardMaps | ( | TCanvas & | canvas, |
const std::string & | text = "" |
||
) |
Definition at line 653 of file Phase1PixelROCMaps.cc.
References svgfig::canvas(), PixelROCMapHelper::dress_plot(), newFWLiteAna::found, get, h_fpix_maps, n_rings, ring(), and runonSM::text.
void Phase1PixelROCMaps::drawMaps | ( | TCanvas & | canvas, |
const std::string & | text = "" |
||
) |
Definition at line 684 of file Phase1PixelROCMaps.cc.
References svgfig::canvas(), PixelROCMapHelper::dress_plot(), newFWLiteAna::found, get, h_bpix_maps, h_fpix_maps, n_layers, n_rings, ring(), and runonSM::text.
void Phase1PixelROCMaps::fillSelectedRocs | ( | const uint32_t & | detid, |
const std::bitset< 16 > & | theROCs, | ||
double | value | ||
) |
Definition at line 255 of file Phase1PixelROCMaps.cc.
References newFWLiteAna::bin, findDetCoordinates(), h_bpix_maps, h_fpix_maps, maskedBarrelRocsToBins(), maskedForwardRocsToBins(), x, and y.
void Phase1PixelROCMaps::fillWholeModule | ( | const uint32_t & | detid, |
double | value | ||
) |
Definition at line 232 of file Phase1PixelROCMaps.cc.
References newFWLiteAna::bin, findDetCoordinates(), h_bpix_maps, h_fpix_maps, maskedBarrelRocsToBins(), maskedForwardRocsToBins(), x, and y.
DetCoordinates Phase1PixelROCMaps::findDetCoordinates | ( | const uint32_t & | t_detid | ) |
Definition at line 8 of file Phase1PixelROCMaps.cc.
References Exception, isBPixOuterLadder(), kVerbose, DetCoordinates::m_isFlipped, DetCoordinates::m_layer, m_option, DetCoordinates::m_panel, DetCoordinates::m_ring, DetCoordinates::m_s_blade, DetCoordinates::m_s_disk, DetCoordinates::m_s_ladder, DetCoordinates::m_s_module, m_trackerTopo, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, DetCoordinates::printCoordinates(), TrackerTopology::pxbLayer(), TrackerTopology::pxfPanel(), ring(), signed_blade(), signed_disk(), signed_ladder(), signed_module(), and DetId::subdetId().
Referenced by fillSelectedRocs(), and fillWholeModule().
|
inline |
|
inline |
|
inlineprotected |
Definition at line 251 of file Phase1PixelROCMaps.h.
References phase1PixelTopology::layer, m_trackerTopo, TrackerTopology::pxbLadder(), TrackerTopology::pxbLayer(), and DetId::rawId().
Referenced by findDetCoordinates().
|
private |
Definition at line 48 of file Phase1PixelROCMaps.cc.
References funct::abs(), DetCoordinates::m_layer, DetCoordinates::m_s_ladder, DetCoordinates::m_s_module, and nlad_list.
Referenced by fillSelectedRocs(), and fillWholeModule().
|
private |
Definition at line 73 of file Phase1PixelROCMaps.cc.
References funct::abs(), heavyIonCSV_trainingSettings::idx, DetCoordinates::m_isFlipped, DetCoordinates::m_layer, DetCoordinates::m_s_ladder, DetCoordinates::m_s_module, and nlad_list.
|
private |
Definition at line 140 of file Phase1PixelROCMaps.cc.
References funct::abs(), DetCoordinates::m_panel, DetCoordinates::m_ring, DetCoordinates::m_s_blade, DetCoordinates::m_s_disk, and nybins_list.
Referenced by fillSelectedRocs(), and fillWholeModule().
|
private |
Definition at line 165 of file Phase1PixelROCMaps.cc.
References funct::abs(), heavyIonCSV_trainingSettings::idx, DetCoordinates::m_isFlipped, DetCoordinates::m_panel, DetCoordinates::m_ring, DetCoordinates::m_s_blade, DetCoordinates::m_s_disk, and nybins_list.
|
inlineprotected |
Definition at line 166 of file Phase1PixelROCMaps.h.
References PixelEndcapName::halfCylinder(), m_trackerTopo, PixelSubdetector::PixelBarrel, PixelBarrelName::shell(), and DetId::subdetId().
Referenced by signed_blade(), signed_disk(), signed_ladder(), and signed_module().
|
inlineprotected |
Definition at line 205 of file Phase1PixelROCMaps.h.
References m_trackerTopo, PixelSubdetector::PixelEndcap, TrackerTopology::pxfModule(), TrackerTopology::pxfPanel(), PixelEndcapName::ringName(), and DetId::subdetId().
Referenced by drawForwardMaps(), drawMaps(), findDetCoordinates(), and geometryXMLparser.CSCAlignable::index().
|
inlineprotected |
Definition at line 220 of file Phase1PixelROCMaps.h.
References PixelEndcapName::bladeName(), m_trackerTopo, PixelSubdetector::PixelEndcap, quadrant(), and DetId::subdetId().
Referenced by findDetCoordinates(), and signed_blade_panel().
|
inlineprotected |
Definition at line 230 of file Phase1PixelROCMaps.h.
References m_trackerTopo, PixelSubdetector::PixelEndcap, TrackerTopology::pxfPanel(), signed_blade(), and DetId::subdetId().
|
inlineprotected |
Definition at line 240 of file Phase1PixelROCMaps.h.
References m_trackerTopo, PixelSubdetector::PixelEndcap, TrackerTopology::pxfDisk(), quadrant(), and DetId::subdetId().
Referenced by findDetCoordinates().
|
inlineprotected |
Definition at line 177 of file Phase1PixelROCMaps.h.
References PixelBarrelName::ladderName(), m_trackerTopo, PixelSubdetector::PixelBarrel, quadrant(), and DetId::subdetId().
Referenced by findDetCoordinates().
|
inlineprotected |
Definition at line 189 of file Phase1PixelROCMaps.h.
References m_trackerTopo, PixelBarrelName::moduleName(), PixelSubdetector::PixelBarrel, quadrant(), and DetId::subdetId().
Referenced by findDetCoordinates().
|
private |
Definition at line 150 of file Phase1PixelROCMaps.h.
Referenced by drawBarrelMaps(), drawMaps(), fillSelectedRocs(), fillWholeModule(), and getLayerMaps().
|
private |
Definition at line 151 of file Phase1PixelROCMaps.h.
Referenced by drawForwardMaps(), drawMaps(), fillSelectedRocs(), fillWholeModule(), and getRingMaps().
|
staticconstexprprivate |
Definition at line 154 of file Phase1PixelROCMaps.h.
Referenced by findDetCoordinates().
|
private |
Definition at line 135 of file Phase1PixelROCMaps.h.
Referenced by findDetCoordinates().
|
private |
Definition at line 137 of file Phase1PixelROCMaps.h.
Referenced by findDetCoordinates(), isBPixOuterLadder(), quadrant(), ring(), signed_blade(), signed_blade_panel(), signed_disk(), signed_ladder(), and signed_module().
|
private |
Definition at line 136 of file Phase1PixelROCMaps.h.
|
staticconstexprprivate |
Definition at line 143 of file Phase1PixelROCMaps.h.
Referenced by drawBarrelMaps(), and drawMaps().
|
staticconstexprprivate |
Definition at line 142 of file Phase1PixelROCMaps.h.
Referenced by drawForwardMaps(), and drawMaps().
|
private |
Definition at line 145 of file Phase1PixelROCMaps.h.
Referenced by maskedBarrelRocsToBins().
|
staticconstexprprivate |
Definition at line 140 of file Phase1PixelROCMaps.h.
|
staticconstexprprivate |
Definition at line 141 of file Phase1PixelROCMaps.h.
|
private |
Definition at line 147 of file Phase1PixelROCMaps.h.
|
private |
Definition at line 146 of file Phase1PixelROCMaps.h.
Referenced by maskedForwardRocsToBins().