#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 29 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 34 of file FWECALDetailViewBuilder.cc.
TEveCaloLego * FWECALDetailViewBuilder::build | ( | ) |
Definition at line 103 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 44 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 314 of file FWECALDetailViewBuilder.cc.
References fillEtaPhi(), fwLog, edm::EventBase::getByLabel(), mps_fire::i, edm::HandleBase::isValid(), fwlog::kWarning, cmsBatch::log, m_boxes, m_event, particleFlowClusterECALTimeSelected_cfi::maxEnergy, Scenarios_cff::scale, and GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by buildCaloData().
|
private |
Definition at line 230 of file FWECALDetailViewBuilder.cc.
References edm::SortedCollection< T, SORT >::begin(), FWPFMaths::calculateEt(), AlCaHLTBitMon_QueryRunRegistry::comp, cuy::cv, edm::SortedCollection< T, SORT >::end(), stringResolutionProvider_cfi::et, FWGeometry::getCorners(), 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 466 of file FWECALDetailViewBuilder.cc.
References FWDetailViewBase::drawCanvasBox(), create_public_lumi_plots::fontsize, m_defaultColor, x, and 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 149 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 156 of file FWECALDetailViewBuilder.cc.
References plotBeamSpotDB::first, reco::CaloCluster::hitsAndFractions(), 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 169 of file FWECALDetailViewBuilder.cc.
References FWPFMaths::calculateEt(), mps_alisetup::collection, MillePedeFileConverter_cfg::e, stringResolutionProvider_cfi::et, stringResolutionProvider_cfi::eta, fwLog, edm::EventBase::getByLabel(), mps_fire::i, edm::HandleBase::isValid(), fwlog::kWarning, m_eta, m_event, m_phi, phi, edm::Handle< T >::product(), showSuperCluster(), sizeRad(), and superClusterEtaLess().
Referenced by FWCaloTowerDetailView::build(), FWMuonDetailView::build(), FWPhotonDetailView::build(), and FWElectronDetailView::build().
|
private |
Definition at line 513 of file FWECALDetailViewBuilder.cc.
References m_size.
Referenced by build(), buildCaloData(), fillEtaPhi(), and showSuperClusters().
|
inlinestaticprivate |
Definition at line 86 of file FWECALDetailViewBuilder.h.
References reco::CaloCluster::eta().
Referenced by showSuperClusters().
|
private |
Definition at line 78 of file FWECALDetailViewBuilder.h.
Referenced by fillData(), and fillEtaPhi().
|
private |
Definition at line 75 of file FWECALDetailViewBuilder.h.
Referenced by buildCaloData(), fillEtaPhi(), and makeLegend().
|
private |
Definition at line 81 of file FWECALDetailViewBuilder.h.
Referenced by fillEtaPhi(), and setColor().
|
private |
Definition at line 72 of file FWECALDetailViewBuilder.h.
Referenced by build(), buildCaloData(), fillEtaPhi(), and showSuperClusters().
|
private |
Definition at line 70 of file FWECALDetailViewBuilder.h.
Referenced by fillData(), and showSuperClusters().
|
private |
Definition at line 71 of file FWECALDetailViewBuilder.h.
Referenced by fillEtaPhi().
|
private |
Definition at line 73 of file FWECALDetailViewBuilder.h.
Referenced by build(), buildCaloData(), fillEtaPhi(), and showSuperClusters().
|
private |
Definition at line 74 of file FWECALDetailViewBuilder.h.
Referenced by sizeRad().
|
private |
Definition at line 83 of file FWECALDetailViewBuilder.h.
Referenced by build(), and fillEtaPhi().