#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 30 of file FWECALCaloDataDetailViewBuilder.h.
|
inline |
Definition at line 39 of file FWECALCaloDataDetailViewBuilder.h.
TEveCaloLego * FWECALCaloDataDetailViewBuilder::build | ( | ) |
Definition at line 187 of file FWECALCaloDataDetailViewBuilder.cc.
References buildCaloData(), data, HLT_25ns10e33_v2_cff::etaMax, and HLT_25ns10e33_v2_cff::etaMin.
TEveCaloData * FWECALCaloDataDetailViewBuilder::buildCaloData | ( | bool | xyEE | ) |
Definition at line 28 of file FWECALCaloDataDetailViewBuilder.cc.
References data, HLT_25ns10e33_v2_cff::etaMax, HLT_25ns10e33_v2_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, Max(), Min(), phi, 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 FWECALCaloDataDetailViewBuilder.cc.
References edm::SortedCollection< T, SORT >::begin(), delta, EcalBarrel, EcalEndcap, edm::SortedCollection< T, SORT >::end(), eta, edm::false, fwLog, FWGeometry::getCorners(), i, j, relval_2017::k, fwlog::kInfo, m_detIdsToColor, m_eta, m_geom, m_phi, M_PI, m_size, maxEta, HLT_FULL_cff::minEta, phi, findQualityFiles::size, 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 409 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 212 of file FWECALCaloDataDetailViewBuilder.cc.
References i, m_colors, and m_detIdsToColor.
Referenced by showSuperCluster().
void FWECALCaloDataDetailViewBuilder::showSuperCluster | ( | const reco::SuperCluster & | cluster, |
Color_t | color = kYellow |
||
) |
Definition at line 226 of file FWECALCaloDataDetailViewBuilder.cc.
References plotBeamSpotDB::first, reco::CaloCluster::hitsAndFractions(), j, and setColor().
Referenced by showSuperClusters().
void FWECALCaloDataDetailViewBuilder::showSuperClusters | ( | Color_t | color1 = kGreen+2 , |
Color_t | color2 = kTeal |
||
) |
Definition at line 239 of file FWECALCaloDataDetailViewBuilder.cc.
References universalConfigTemplate::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(), and superClusterEtaLess().
|
inlinestaticprivate |
Definition at line 87 of file FWECALCaloDataDetailViewBuilder.h.
References reco::CaloCluster::eta().
Referenced by showSuperClusters().
|
private |
Definition at line 84 of file FWECALCaloDataDetailViewBuilder.h.
Referenced by buildCaloData(), and setColor().
|
private |
Definition at line 78 of file FWECALCaloDataDetailViewBuilder.h.
Referenced by buildCaloData(), and makeLegend().
|
private |
Definition at line 81 of file FWECALCaloDataDetailViewBuilder.h.
Referenced by fillData(), and setColor().
|
private |
Definition at line 75 of file FWECALCaloDataDetailViewBuilder.h.
Referenced by buildCaloData(), fillData(), and showSuperClusters().
|
private |
Definition at line 73 of file FWECALCaloDataDetailViewBuilder.h.
Referenced by buildCaloData(), and showSuperClusters().
|
private |
Definition at line 74 of file FWECALCaloDataDetailViewBuilder.h.
Referenced by fillData().
|
private |
Definition at line 76 of file FWECALCaloDataDetailViewBuilder.h.
Referenced by buildCaloData(), fillData(), and showSuperClusters().
|
private |
Definition at line 77 of file FWECALCaloDataDetailViewBuilder.h.
Referenced by buildCaloData(), fillData(), and showSuperClusters().