#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 (TEveCaloDataVec *data) |
void | fillEtaPhi (const EcalRecHitCollection *hits, TEveCaloDataVec *data) |
float | sizeRad () const |
Static Private Member Functions | |
static bool | superClusterEtaLess (const reco::CaloCluster &lhs, const reco::CaloCluster &rhs) |
Private Attributes | |
std::vector< FWBoxRecHit * > | m_boxes |
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 |
TEveElement * | m_towerList |
Definition at line 22 of file FWECALDetailViewBuilder.h.
FWECALDetailViewBuilder::FWECALDetailViewBuilder | ( | const edm::EventBase * | event, |
const FWGeometry * | geom, | ||
float | eta, | ||
float | phi, | ||
int | size = 50 , |
||
Color_t | defaultColor = kMagenta + 1 |
||
) |
Definition at line 32 of file FWECALDetailViewBuilder.cc.
TEveCaloLego * FWECALDetailViewBuilder::build | ( | ) |
Definition at line 99 of file FWECALDetailViewBuilder.cc.
References buildCaloData(), data, ALCARECOTkAlBeamHalo_cff::etaMax, ALCARECOTkAlBeamHalo_cff::etaMin, m_eta, m_phi, m_towerList, AlignmentTrackSelector_cfi::phiMax, AlignmentTrackSelector_cfi::phiMin, and sizeRad().
Referenced by FWCaloTowerDetailView::build(), FWMuonDetailView::build(), FWPhotonDetailView::build(), and FWElectronDetailView::build().
TEveCaloData * FWECALDetailViewBuilder::buildCaloData | ( | bool | xyEE | ) |
Definition at line 43 of file FWECALDetailViewBuilder.cc.
References data, ALCARECOTkAlBeamHalo_cff::etaMax, ALCARECOTkAlBeamHalo_cff::etaMin, fillData(), mps_fire::i, m_defaultColor, m_eta, m_phi, M_PI, phi, AlignmentTrackSelector_cfi::phiMax, AlignmentTrackSelector_cfi::phiMin, sizeRad(), and fw3dlego::xbins.
Referenced by build().
|
private |
Definition at line 279 of file FWECALDetailViewBuilder.cc.
References data, fillEtaPhi(), fwLog, edm::EventBase::getByLabel(), mps_fire::i, edm::HandleBase::isValid(), fwlog::kWarning, dqm-mbProfile::log, m_boxes, m_event, particleFlowClusterECALTimeSelected_cfi::maxEnergy, HLT_FULL_cff::scale, and GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by buildCaloData().
|
private |
Definition at line 205 of file FWECALDetailViewBuilder.cc.
References custom_jme_cff::area, FWPFMaths::calculateEt(), AlCaHLTBitMon_QueryRunRegistry::comp, cuy::cv, HCALHighEnergyHPDFilter_cfi::energy, EgHLTOffHistBins_cfi::et, HLT_FULL_cff::eta1, HLT_FULL_cff::eta2, FWGeometry::getCorners(), hfClusterShapes_cfi::hits, mps_fire::i, m_boxes, m_defaultColor, m_detIdsToColor, m_eta, m_geom, m_phi, m_towerList, Pi, and sizeRad().
Referenced by fillData().
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 410 of file FWECALDetailViewBuilder.cc.
References FWDetailViewBase::drawCanvasBox(), m_defaultColor, x, y, and beampixel_dqm_sourceclient-live_cfg::yStep.
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 141 of file FWECALDetailViewBuilder.cc.
References mps_fire::i, and m_detIdsToColor.
Referenced by FWMuonDetailView::build(), and showSuperCluster().
void FWECALDetailViewBuilder::showSuperCluster | ( | const reco::SuperCluster & | cluster, |
Color_t | color = kYellow |
||
) |
Definition at line 146 of file FWECALDetailViewBuilder.cc.
References dqmdumpme::first, reco::CaloCluster::hitsAndFractions(), dqmiolumiharvest::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 156 of file FWECALDetailViewBuilder.cc.
References universalConfigTemplate::collection, PVValHelper::eta, fwLog, edm::EventBase::getByLabel(), mps_fire::i, fwlog::kWarning, m_eta, m_event, m_phi, phi, showSuperCluster(), sizeRad(), and superClusterEtaLess().
Referenced by FWCaloTowerDetailView::build(), FWMuonDetailView::build(), FWPhotonDetailView::build(), and FWElectronDetailView::build().
|
private |
Definition at line 461 of file FWECALDetailViewBuilder.cc.
References m_size.
Referenced by build(), buildCaloData(), fillEtaPhi(), and showSuperClusters().
|
inlinestaticprivate |
Definition at line 80 of file FWECALDetailViewBuilder.h.
References reco::CaloCluster::eta().
Referenced by showSuperClusters().
|
private |
Definition at line 72 of file FWECALDetailViewBuilder.h.
Referenced by fillData(), and fillEtaPhi().
|
private |
Definition at line 70 of file FWECALDetailViewBuilder.h.
Referenced by buildCaloData(), fillEtaPhi(), and makeLegend().
|
private |
Definition at line 75 of file FWECALDetailViewBuilder.h.
Referenced by fillEtaPhi(), and setColor().
|
private |
Definition at line 67 of file FWECALDetailViewBuilder.h.
Referenced by build(), buildCaloData(), fillEtaPhi(), and showSuperClusters().
|
private |
Definition at line 65 of file FWECALDetailViewBuilder.h.
Referenced by fillData(), and showSuperClusters().
|
private |
Definition at line 66 of file FWECALDetailViewBuilder.h.
Referenced by fillEtaPhi().
|
private |
Definition at line 68 of file FWECALDetailViewBuilder.h.
Referenced by build(), buildCaloData(), fillEtaPhi(), and showSuperClusters().
|
private |
Definition at line 69 of file FWECALDetailViewBuilder.h.
Referenced by sizeRad().
|
private |
Definition at line 77 of file FWECALDetailViewBuilder.h.
Referenced by build(), and fillEtaPhi().