#include <FWECALDetailViewBuilder.h>
Public Member Functions | |
TEveCaloLego * | build () |
TEveCaloData * | buildCaloData (bool xyEE) |
FWECALDetailViewBuilder (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 28 of file FWECALDetailViewBuilder.h.
|
inline |
Definition at line 37 of file FWECALDetailViewBuilder.h.
TEveCaloLego * FWECALDetailViewBuilder::build | ( | ) |
Definition at line 187 of file FWECALDetailViewBuilder.cc.
References buildCaloData(), data, jptDQMConfig_cff::etaMax, jptDQMConfig_cff::etaMin, jptDQMConfig_cff::phiMax, and jptDQMConfig_cff::phiMin.
Referenced by FWCaloTowerDetailView::build(), FWMuonDetailView::build(), FWPhotonDetailView::build(), and FWElectronDetailView::build().
TEveCaloData * FWECALDetailViewBuilder::buildCaloData | ( | bool | xyEE | ) |
Definition at line 28 of file FWECALDetailViewBuilder.cc.
References data, jptDQMConfig_cff::etaMax, jptDQMConfig_cff::etaMin, fillData(), fwLog, edm::EventBase::getByLabel(), i, edm::HandleBase::isValid(), fwlog::kWarning, m_colors, m_defaultColor, m_eta, m_event, m_phi, M_PI, m_size, siStripFEDMonitor_P5_cff::Max, siStripFEDMonitor_P5_cff::Min, phi, jptDQMConfig_cff::phiMax, jptDQMConfig_cff::phiMin, alignCSCRings::r, GlobalPosition_Frontier_DevDB_cff::tag, theta(), x, and fw3dlego::xbins.
Referenced by FWConvTrackHitsDetailView::build(), and build().
|
private |
Definition at line 283 of file FWECALDetailViewBuilder.cc.
References edm::SortedCollection< T, SORT >::begin(), delta, EcalBarrel, EcalEndcap, edm::SortedCollection< T, SORT >::end(), eta(), funct::false, fwLog, FWGeometry::getCorners(), i, j, gen::k, fwlog::kInfo, m_detIdsToColor, m_eta, m_geom, m_phi, M_PI, m_size, maxEta, cmsRun_displayProdMFGeom_cfg::maxX, cmsRun_displayProdMFGeom_cfg::maxY, benchmark_cfg::minEta, cmsRun_displayProdMFGeom_cfg::minX, cmsRun_displayProdMFGeom_cfg::minY, phi, findQualityFiles::size, v, x, and detailsBasic3DVector::y.
Referenced by buildCaloData().
double FWECALDetailViewBuilder::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 409 of file FWECALDetailViewBuilder.cc.
References FWDetailViewBase::drawCanvasBox(), m_defaultColor, pos, x, and detailsBasic3DVector::y.
Referenced by FWCaloTowerDetailView::setTextInfo(), FWMuonDetailView::setTextInfo(), FWPhotonDetailView::setTextInfo(), and FWElectronDetailView::setTextInfo().
void FWECALDetailViewBuilder::setColor | ( | Color_t | color, |
const std::vector< DetId > & | detIds | ||
) |
Definition at line 212 of file FWECALDetailViewBuilder.cc.
References i, m_colors, and m_detIdsToColor.
Referenced by FWMuonDetailView::build(), and showSuperCluster().
void FWECALDetailViewBuilder::showSuperCluster | ( | const reco::SuperCluster & | cluster, |
Color_t | color = kYellow |
||
) |
Definition at line 226 of file FWECALDetailViewBuilder.cc.
References first, reco::CaloCluster::hitsAndFractions(), j, and setColor().
Referenced by FWPhotonDetailView::build(), FWElectronDetailView::build(), and showSuperClusters().
void FWECALDetailViewBuilder::showSuperClusters | ( | Color_t | color1 = kGreen+2 , |
Color_t | color2 = kTeal |
||
) |
Definition at line 239 of file FWECALDetailViewBuilder.cc.
References runEdmFileComparison::collection, eta(), fwLog, edm::EventBase::getByLabel(), i, edm::HandleBase::isValid(), fwlog::kWarning, m_eta, m_event, m_phi, m_size, phi, edm::Handle< T >::product(), showSuperCluster(), python.multivaluedict::sort(), and superClusterEtaLess().
Referenced by FWCaloTowerDetailView::build(), FWMuonDetailView::build(), FWPhotonDetailView::build(), and FWElectronDetailView::build().
|
inlinestaticprivate |
Definition at line 85 of file FWECALDetailViewBuilder.h.
References reco::CaloCluster::eta().
Referenced by showSuperClusters().
|
private |
Definition at line 82 of file FWECALDetailViewBuilder.h.
Referenced by buildCaloData(), and setColor().
|
private |
Definition at line 76 of file FWECALDetailViewBuilder.h.
Referenced by buildCaloData(), and makeLegend().
|
private |
Definition at line 79 of file FWECALDetailViewBuilder.h.
Referenced by fillData(), and setColor().
|
private |
Definition at line 73 of file FWECALDetailViewBuilder.h.
Referenced by buildCaloData(), fillData(), and showSuperClusters().
|
private |
Definition at line 71 of file FWECALDetailViewBuilder.h.
Referenced by buildCaloData(), and showSuperClusters().
|
private |
Definition at line 72 of file FWECALDetailViewBuilder.h.
Referenced by fillData().
|
private |
Definition at line 74 of file FWECALDetailViewBuilder.h.
Referenced by buildCaloData(), fillData(), and showSuperClusters().
|
private |
Definition at line 75 of file FWECALDetailViewBuilder.h.
Referenced by buildCaloData(), fillData(), and showSuperClusters().