#include <FWECALCaloDataDetailViewBuilder.h>
Public Member Functions | |
TEveCaloLego * | build () |
TEveCaloData * | buildCaloData (bool xyEE) |
FWECALCaloDataDetailViewBuilder (const edm::EventBase *event, const FWGeometry *geom, float eta, float phi, int size=50, Color_t defaultColor=kMagenta+1) | |
double | makeLegend (double x0=0.02, double y0=0.95, Color_t clustered1=kGreen+1, Color_t clustered2=kTeal, Color_t supercluster=kYellow) |
void | setColor (Color_t color, const std::vector< DetId > &detIds) |
void | showSuperCluster (const reco::SuperCluster &cluster, Color_t color=kYellow) |
void | showSuperClusters (Color_t color1=kGreen+2, Color_t color2=kTeal) |
Private Member Functions | |
void | fillData (const EcalRecHitCollection *hits, TEveCaloDataVec *data, bool xyEE) |
Static Private Member Functions | |
static bool | superClusterEtaLess (const reco::CaloCluster &lhs, const reco::CaloCluster &rhs) |
Private Attributes | |
std::vector< Color_t > | m_colors |
Color_t | m_defaultColor |
std::map< DetId, int > | m_detIdsToColor |
float | m_eta |
const edm::EventBase * | m_event |
const FWGeometry * | m_geom |
float | m_phi |
int | m_size |
Definition at line 20 of file FWECALCaloDataDetailViewBuilder.h.
|
inline |
Definition at line 27 of file FWECALCaloDataDetailViewBuilder.h.
TEveCaloLego * FWECALCaloDataDetailViewBuilder::build | ( | ) |
Definition at line 175 of file FWECALCaloDataDetailViewBuilder.cc.
References buildCaloData(), data, ALCARECOTkAlBeamHalo_cff::etaMax, ALCARECOTkAlBeamHalo_cff::etaMin, AlignmentTrackSelector_cfi::phiMax, and AlignmentTrackSelector_cfi::phiMin.
TEveCaloData * FWECALCaloDataDetailViewBuilder::buildCaloData | ( | bool | xyEE | ) |
Definition at line 28 of file FWECALCaloDataDetailViewBuilder.cc.
References data, ALCARECOTkAlBeamHalo_cff::etaMax, ALCARECOTkAlBeamHalo_cff::etaMin, fillData(), fwLog, edm::EventBase::getByLabel(), hfClusterShapes_cfi::hits, mps_fire::i, edm::HandleBase::isValid(), fwlog::kWarning, m_colors, m_defaultColor, m_eta, m_event, m_phi, M_PI, m_size, METSkim_cff::Max, METSkim_cff::Min, phi, AlignmentTrackSelector_cfi::phiMax, AlignmentTrackSelector_cfi::phiMin, alignCSCRings::r, makeGlobalPositionRcd_cfg::tag, theta(), x, and fw3dlego::xbins.
Referenced by build(), and FWConvTrackHitsDetailView::build().
|
private |
Definition at line 254 of file FWECALCaloDataDetailViewBuilder.cc.
References data, dumpMFGeometry_cfg::delta, EcalBarrel, EcalEndcap, HLT_2022v12_cff::eps, PVValHelper::eta, fwLog, FWGeometry::getCorners(), hfClusterShapes_cfi::hits, mps_fire::i, if(), dqmiolumiharvest::j, dqmdumpme::k, fwlog::kInfo, m_detIdsToColor, m_eta, m_geom, m_phi, M_PI, m_size, maxEta, HLT_2022v12_cff::maxPhi, HGVHistoProducerAlgoBlock_cfi::maxX, HGVHistoProducerAlgoBlock_cfi::maxY, EgHLTOffEleSelection_cfi::minEta, HLT_2022v12_cff::minPhi, HGVHistoProducerAlgoBlock_cfi::minX, HGVHistoProducerAlgoBlock_cfi::minY, phi, hiPixelPairStep_cff::points, findQualityFiles::size, mergeAndRegister::slice, findQualityFiles::v, x, and y.
Referenced by buildCaloData().
double FWECALCaloDataDetailViewBuilder::makeLegend | ( | double | x0 = 0.02 , |
double | y0 = 0.95 , |
||
Color_t | clustered1 = kGreen + 1 , |
||
Color_t | clustered2 = kTeal , |
||
Color_t | supercluster = kYellow |
||
) |
Definition at line 379 of file FWECALCaloDataDetailViewBuilder.cc.
References FWDetailViewBase::drawCanvasBox(), m_defaultColor, x, y, and beampixel_dqm_sourceclient-live_cfg::yStep.
void FWECALCaloDataDetailViewBuilder::setColor | ( | Color_t | color, |
const std::vector< DetId > & | detIds | ||
) |
Definition at line 198 of file FWECALCaloDataDetailViewBuilder.cc.
References mps_fire::i, m_colors, m_detIdsToColor, and mergeAndRegister::slice.
Referenced by showSuperCluster().
void FWECALCaloDataDetailViewBuilder::showSuperCluster | ( | const reco::SuperCluster & | cluster, |
Color_t | color = kYellow |
||
) |
Definition at line 209 of file FWECALCaloDataDetailViewBuilder.cc.
References first, reco::CaloCluster::hitsAndFractions(), dqmiolumiharvest::j, and setColor().
Referenced by showSuperClusters().
void FWECALCaloDataDetailViewBuilder::showSuperClusters | ( | Color_t | color1 = kGreen + 2 , |
Color_t | color2 = kTeal |
||
) |
Definition at line 219 of file FWECALCaloDataDetailViewBuilder.cc.
References universalConfigTemplate::collection, PVValHelper::eta, fwLog, edm::EventBase::getByLabel(), mps_fire::i, fwlog::kWarning, m_eta, m_event, m_phi, m_size, phi, showSuperCluster(), jetUpdater_cfi::sort, and superClusterEtaLess().
|
inlinestaticprivate |
Definition at line 75 of file FWECALCaloDataDetailViewBuilder.h.
References reco::CaloCluster::eta().
Referenced by showSuperClusters().
|
private |
Definition at line 72 of file FWECALCaloDataDetailViewBuilder.h.
Referenced by buildCaloData(), and setColor().
|
private |
Definition at line 66 of file FWECALCaloDataDetailViewBuilder.h.
Referenced by buildCaloData(), and makeLegend().
|
private |
Definition at line 69 of file FWECALCaloDataDetailViewBuilder.h.
Referenced by fillData(), and setColor().
|
private |
Definition at line 63 of file FWECALCaloDataDetailViewBuilder.h.
Referenced by buildCaloData(), fillData(), and showSuperClusters().
|
private |
Definition at line 61 of file FWECALCaloDataDetailViewBuilder.h.
Referenced by buildCaloData(), and showSuperClusters().
|
private |
Definition at line 62 of file FWECALCaloDataDetailViewBuilder.h.
Referenced by fillData().
|
private |
Definition at line 64 of file FWECALCaloDataDetailViewBuilder.h.
Referenced by buildCaloData(), fillData(), and showSuperClusters().
|
private |
Definition at line 65 of file FWECALCaloDataDetailViewBuilder.h.
Referenced by buildCaloData(), fillData(), and showSuperClusters().