#include <Context.h>
Static Public Member Functions | |
static double | caloMaxEta () |
static float | caloR1 (bool offset=true) |
static float | caloR2 (bool offset=true) |
static float | caloTransAngle () |
static float | caloTransEta () |
static float | caloZ1 (bool offset=true) |
static float | caloZ2 (bool offset=true) |
static Context * | getInstance () |
Private Member Functions | |
Context (const Context &)=delete | |
const Context & | operator= (const Context &)=delete |
Private Attributes | |
FWBeamSpot * | m_beamSpot |
TEveCaloDataHist * | m_caloData |
TEveCaloDataVec * | m_caloDataHF |
FWModelChangeManager * | m_changeManager |
FWColorManager * | m_colorManager |
CmsShowCommon * | m_commonPrefs |
FWEventItemsManager * | m_eventItemsManager |
const FWGeometry * | m_geom |
bool | m_hidePFBuilders |
FWMagField * | m_magField |
float | m_maxEnergy |
float | m_maxEt |
FWJobMetadataManager * | m_metadataManager |
TEveTrackPropagator * | m_muonPropagator |
TEveTrackPropagator * | m_propagator |
FWSelectionManager * | m_selectionManager |
TEveTrackPropagator * | m_trackerPropagator |
Static Private Attributes | |
static const float | s_caloOffR = 10 |
static const float | s_caloOffZ = s_caloOffR/tan(s_caloTransAngle) |
static const float | s_caloR = s_caloZ*tan(s_caloTransAngle) |
static const float | s_caloTransAngle = 2*atan(exp(-s_caloTransEta)) |
static const float | s_caloTransEta = 1.479 |
static const float | s_caloZ = 290 |
static Context * | s_fwContext = nullptr |
Context::Context | ( | FWModelChangeManager * | iCM, |
FWSelectionManager * | iSM, | ||
FWEventItemsManager * | iEM, | ||
FWColorManager * | iColorM, | ||
FWJobMetadataManager * | iJMDM | ||
) |
Definition at line 57 of file Context.cc.
References m_commonPrefs, and s_fwContext.
Referenced by setHidePFBuilders().
|
virtual |
|
privatedelete |
|
static |
Definition at line 238 of file Context.cc.
References fw3dlego::xbins_hf, and fw3dlego::xbins_hf_n.
Referenced by FWRPZViewGeometry::makeCaloOutlineRhoZ(), fireworks::makeEveJetCone(), FWRPZView::setEtaRng(), and setHidePFBuilders().
|
static |
Definition at line 208 of file Context.cc.
References PFRecoTauDiscriminationByIsolation_cfi::offset, and s_caloR.
Referenced by fireworks::addDashedLine(), FWPFClusterRPZProxyBuilder::build(), FWMET3DProxyBuilder::build(), FWTauProxyBuilderBase::buildBaseTau(), FWMETProxyBuilder::buildViewType(), FWJetProxyBuilder::buildViewType(), FWRPZView::FWRPZView(), initEveElements(), FWRPZViewGeometry::makeCaloOutlineRhoPhi(), FWRPZViewGeometry::makeCaloOutlineRhoZ(), fireworks::makeEveJetCone(), fireworks::makeRhoPhiSuperCluster(), fireworks::makeRhoZSuperCluster(), FWConversionProxyBuilder::requestCommon(), and setHidePFBuilders().
|
static |
Definition at line 213 of file Context.cc.
References PFRecoTauDiscriminationByIsolation_cfi::offset, and s_caloR.
Referenced by FWTauProxyBuilderBase::buildBaseTau(), initEveElements(), FWRPZViewGeometry::makeCaloOutlineRhoZ(), fireworks::makeEveJetCone(), fireworks::makeRhoZSuperCluster(), and setHidePFBuilders().
|
static |
Definition at line 233 of file Context.cc.
References s_caloTransAngle.
Referenced by FWTauProxyBuilderBase::buildBaseTau(), fireworks::makeEveJetCone(), fireworks::makeRhoZSuperCluster(), and setHidePFBuilders().
|
static |
Definition at line 228 of file Context.cc.
References s_caloTransEta.
Referenced by FWMET3DProxyBuilder::build(), FWMETProxyBuilder::buildViewType(), FWConversionProxyBuilder::requestCommon(), FWRPZView::setEtaRng(), and setHidePFBuilders().
|
static |
Definition at line 218 of file Context.cc.
References PFRecoTauDiscriminationByIsolation_cfi::offset, and s_caloZ.
Referenced by FWPFClusterRPZProxyBuilder::build(), FWMET3DProxyBuilder::build(), FWTauProxyBuilderBase::buildBaseTau(), FWMETProxyBuilder::buildViewType(), FWJetProxyBuilder::buildViewType(), initEveElements(), FWRPZViewGeometry::makeCaloOutlineRhoZ(), fireworks::makeEveJetCone(), fireworks::makeRhoZSuperCluster(), FWConversionProxyBuilder::requestCommon(), and setHidePFBuilders().
|
static |
Definition at line 223 of file Context.cc.
References PFRecoTauDiscriminationByIsolation_cfi::offset, and s_caloZ.
Referenced by fireworks::addDashedLine(), FWTauProxyBuilderBase::buildBaseTau(), FWJetProxyBuilder::buildViewType(), initEveElements(), FWRPZViewGeometry::makeCaloOutlineRhoZ(), fireworks::makeEveJetCone(), fireworks::makeRhoZSuperCluster(), and setHidePFBuilders().
|
inline |
Definition at line 65 of file Context.h.
References m_colorManager.
Referenced by FWEventItemsManager::add(), FWEventItemsManager::addTo(), CmsShowCommon::CmsShowCommon(), CmsShowCommon::colorManager(), FWDetailViewManager::colorsChanged(), FWGUIManager::createEDIFrame(), FWGUIManager::createList(), FWGUIManager::createModelPopup(), FWEveViewManager::finishViewCreate(), FWDetailViewManager::FWDetailViewManager(), FWGUIManager::FWGUIManager(), FWViewGeometryList::FWViewGeometryList(), FWRPZViewGeometry::makeCaloOutlineRhoPhi(), FWDetailViewManager::openDetailViewFor(), FWEveLegoView::setContext(), FWEventItemsManager::setFrom(), FW3DViewBase::setFrom(), CmsShowCommon::setFrom(), CmsShowCommon::setGamma(), CmsShowCommon::setGeomColor(), CmsShowCommon::setGeomTransparency(), CmsShowCommon::setPalette(), CmsShowCommonPopup::setPaletteGUI(), FWGUIManager::setViewPopup(), CmsShowCommon::switchBackground(), FWViewGeometryList::updateColors(), and FWViewGeometryList::updateTransparency().
CmsShowCommon * Context::commonPrefs | ( | ) | const |
Definition at line 177 of file Context.cc.
References m_commonPrefs.
Referenced by FWVertexProxyBuilder::build(), FWRPZView::eventBegin(), FWRPZView::eventEnd(), getGeom(), FWJetProxyBuilder::scaleProduct(), FWEveViewManager::setContext(), FWEveView::setFrom(), CmsShowMainBase::setup(), FWRPZView::setupEventCenter(), FWGUIManager::showCommonPopup(), and FWEveView::useGlobalEnergyScaleChanged().
void Context::deleteEveElements | ( | ) |
|
inline |
Definition at line 61 of file Context.h.
References m_eventItemsManager.
Referenced by FWGUIManager::addData(), FWGUIManager::createList(), FWGUIManager::FWGUIManager(), FWEventItem::isInBack(), FWEventItem::isInFront(), FWEventItem::moveToBack(), FWEventItem::moveToFront(), FWEventItem::moveToLayer(), FWFileEntry::openFile(), CmsShowCommon::permuteColors(), FWEventItem::proxyConfigChanged(), CmsShowCommon::randomizeColors(), CmsShowCommon::setPalette(), and CmsShowNavigator::updateFileFilters().
|
inline |
Definition at line 78 of file Context.h.
References m_beamSpot.
Referenced by FWConvTrackHitsDetailView::build(), FWTauProxyBuilderBase::buildBaseTau(), CmsShowMainBase::draw(), CmsShowCommon::getEventCenter(), CmsShowCommon::resetEventCenter(), and FWRPZView::resetOrigin().
|
inline |
Definition at line 80 of file Context.h.
References m_caloData.
Referenced by FWEveViewManager::highlightAdded(), FWCaloDataHistProxyBuilder::setCaloData(), FW3DView::setContext(), FWLegoViewBase::setContext(), and FWRPZView::setContext().
|
inline |
Definition at line 81 of file Context.h.
References m_caloDataHF.
Referenced by FWHFTowerProxyBuilderBase::setCaloData(), FWHGTowerProxyBuilderBase::setCaloData(), and FWLegoViewBase::setContext().
|
inline |
Definition at line 77 of file Context.h.
References m_magField.
Referenced by FWTrackProxyBuilder::build(), FWMuonBuilder::buildMuon(), CmsShowMainBase::draw(), and CmsShowMain::fileChangedSlot().
|
inline |
Definition at line 83 of file Context.h.
References commonPrefs(), randomXiThetaGunProducer_cfi::energy, getMaxEnergyInEvent(), m_geom, resetMaxEtAndEnergy(), and voteMaxEtAndEnergy().
Referenced by FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), FWCaloRecHitDigitSetProxyBuilder::build(), FWMuonBuilder::buildMuon(), FWViewGeometryList::FWViewGeometryList(), FWEventItem::getGeom(), fireworks::info(), fireworks::makeRhoPhiSuperCluster(), fireworks::makeRhoZSuperCluster(), FWRPZView::populateController(), and FW3DViewBase::showEcalBarrel().
|
inline |
Definition at line 91 of file Context.h.
References m_hidePFBuilders.
Referenced by FWDetailViewManager::findViewersFor(), FWGUIManager::FWGUIManager(), and FWEveViewManager::supportedTypesAndRepresentations().
|
static |
Definition at line 243 of file Context.cc.
References s_fwContext.
Referenced by FWVertexProxyBuilder::build(), CmsShowCommon::getEventCenter(), fireworks::info(), fireworks::pixelLocalX(), fireworks::pixelLocalY(), CmsShowCommon::resetEventCenter(), FWJetProxyBuilder::scaleProduct(), and setHidePFBuilders().
float Context::getMaxEnergyInEvent | ( | bool | isEt | ) | const |
Definition at line 199 of file Context.cc.
References m_maxEnergy, and m_maxEt.
Referenced by FWPFCandidateDetailView::addHits(), getGeom(), FWJetProxyBuilder::setTextPos(), and FWEveView::setupEnergyScale().
|
inline |
Definition at line 75 of file Context.h.
References m_muonPropagator.
Referenced by FWMuonBuilder::buildMuon(), CmsShowCommon::setDrawBreakMarkers(), and CmsShowCommon::setTrackBreakMode().
|
inline |
Definition at line 74 of file Context.h.
References m_trackerPropagator.
Referenced by FWTrackProxyBuilder::build(), CmsShowCommon::setDrawBreakMarkers(), and CmsShowCommon::setTrackBreakMode().
|
inline |
Definition at line 73 of file Context.h.
References m_propagator.
Referenced by FWElectronLegoProxyBuilder::build(), FWSimTrackProxyBuilder::build(), FWTrackProxyBuilder::build(), FWElectronProxyBuilder::requestCommon(), CmsShowCommon::setDrawBreakMarkers(), and CmsShowCommon::setTrackBreakMode().
void Context::initEveElements | ( | ) |
Definition at line 94 of file Context.cc.
References caloR1(), caloR2(), caloZ1(), caloZ2(), f, CmsShowCommon::getProjTrackBreaking(), CmsShowCommon::getRnrPTBMarkers(), m_beamSpot, m_caloData, m_caloDataHF, m_commonPrefs, m_magField, m_muonPropagator, m_propagator, m_trackerPropagator, Pi, mps_update::status, fw3dlego::xbins, fw3dlego::xbins_hf, fw3dlego::xbins_hf_n, and fw3dlego::xbins_n.
Referenced by setHidePFBuilders(), and CmsShowMainBase::setup().
|
inline |
Definition at line 69 of file Context.h.
References m_metadataManager.
Referenced by FWGUIManager::addData(), FWDetailViewManager::findViewersFor(), and CmsShowNavigator::getProcessList().
|
inline |
Definition at line 54 of file Context.h.
References m_changeManager.
Referenced by FWGUIManager::createList().
Referenced by setHidePFBuilders().
void Context::resetMaxEtAndEnergy | ( | ) | const |
Definition at line 190 of file Context.cc.
References m_maxEnergy, and m_maxEt.
Referenced by FWEveViewManager::eventBegin(), and getGeom().
|
inline |
Definition at line 57 of file Context.h.
References m_selectionManager.
Referenced by FWGUIManager::createEDIFrame(), FWGUIManager::createList(), FWGUIManager::createModelPopup(), FWGUIManager::FWGUIManager(), FWGUIManager::open3DRegion(), FWViewContextMenuHandlerGL::select(), FWEveViewManager::selectionCleared(), FWGUIManager::showInvMassDialog(), and FWGUIManager::showSelectedModelContextMenu().
|
inline |
Definition at line 51 of file Context.h.
References m_geom.
Referenced by CmsShowMainBase::loadGeometry().
|
inline |
Definition at line 92 of file Context.h.
References caloMaxEta(), caloR1(), caloR2(), caloTransAngle(), caloTransEta(), caloZ1(), caloZ2(), Context(), deleteEveElements(), getInstance(), initEveElements(), m_hidePFBuilders, PFRecoTauDiscriminationByIsolation_cfi::offset, and operator=().
void Context::voteMaxEtAndEnergy | ( | float | Et, |
float | energy | ||
) | const |
Definition at line 183 of file Context.cc.
References m_maxEnergy, m_maxEt, and Max().
Referenced by FWCaloRecHitDigitSetProxyBuilder::build(), FWPFClusterRPZProxyBuilder::build(), FWPFEcalRecHitRPProxyBuilder::build(), FWPFPatJetLegoProxyBuilder< T >::build(), FWPFEcalRecHitLegoProxyBuilder::build(), FWCandidateHGCalLegoProxyBuilder::build(), FWPFCandidatesLegoProxyBuilder::build(), FWCandidateLegoProxyBuilder::build(), FWMET3DProxyBuilder::build(), FWTauProxyBuilderBase::buildBaseTau(), FWMETProxyBuilder::buildViewType(), FWJetProxyBuilder::buildViewType(), getGeom(), FWPFBlockProxyBuilder::setupClusterElement(), FWPFClusterRPZProxyBuilder::sharedBuild(), FWPFClusterLegoProxyBuilder::sharedBuild(), FWRPZView::voteCaloMaxVal(), FWEveView::voteCaloMaxVal(), and FWPFCandidateDetailView::voteMaxEtEVal().
|
private |
Definition at line 130 of file Context.h.
Referenced by getBeamSpot(), and initEveElements().
|
private |
Definition at line 139 of file Context.h.
Referenced by getCaloData(), and initEveElements().
|
private |
Definition at line 140 of file Context.h.
Referenced by getCaloDataHF(), and initEveElements().
|
private |
Definition at line 117 of file Context.h.
Referenced by modelChangeManager().
|
private |
Definition at line 120 of file Context.h.
Referenced by colorManager().
|
private |
Definition at line 132 of file Context.h.
Referenced by commonPrefs(), Context(), initEveElements(), and ~Context().
|
private |
Definition at line 119 of file Context.h.
Referenced by eventItemsManager().
|
private |
|
mutableprivate |
Definition at line 137 of file Context.h.
Referenced by getHidePFBuilders(), and setHidePFBuilders().
|
private |
Definition at line 129 of file Context.h.
Referenced by getField(), and initEveElements().
|
mutableprivate |
Definition at line 135 of file Context.h.
Referenced by getMaxEnergyInEvent(), resetMaxEtAndEnergy(), and voteMaxEtAndEnergy().
|
mutableprivate |
Definition at line 134 of file Context.h.
Referenced by getMaxEnergyInEvent(), resetMaxEtAndEnergy(), and voteMaxEtAndEnergy().
|
private |
Definition at line 121 of file Context.h.
Referenced by metadataManager().
|
private |
Definition at line 127 of file Context.h.
Referenced by getMuonTrackPropagator(), and initEveElements().
|
private |
Definition at line 125 of file Context.h.
Referenced by getTrackPropagator(), and initEveElements().
|
private |
Definition at line 118 of file Context.h.
Referenced by selectionManager().
|
private |
Definition at line 126 of file Context.h.
Referenced by getTrackerTrackPropagator(), and initEveElements().
|
staticprivate |
|
staticprivate |
|
staticprivate |
Definition at line 146 of file Context.h.
Referenced by caloTransAngle().
|
staticprivate |
Definition at line 145 of file Context.h.
Referenced by caloTransEta().
|
staticprivate |