#include <Fireworks/Core/interface/FWViewEnergyScale.h>
Public Types | |
enum | EScaleMode { kFixedScale, kAutoScale, kCombinedScale, kNone } |
Public Types inherited from FWParameterizable | |
typedef std::vector< FWParameterBase * >::const_iterator | const_iterator |
Public Attributes | |
sigc::signal< void()> | parameterChanged_ |
Protected Attributes | |
FWDoubleParameter | m_fixedValToHeight |
FWDoubleParameter | m_maxTowerHeight |
FWBoolParameter | m_plotEt |
FWEnumParameter | m_scaleMode |
Private Member Functions | |
float | calculateScaleFactor (float iMaxVal, bool isLego) const |
Private Attributes | |
const std::string | m_name |
float | m_scaleFactor3D |
float | m_scaleFactorLego |
Friends | |
class | FWViewEnergyScaleEditor |
Description: [one line class summary]
Usage: <usage>
Definition at line 34 of file FWViewEnergyScale.h.
Enumerator | |
---|---|
kFixedScale | |
kAutoScale | |
kCombinedScale | |
kNone |
Definition at line 38 of file FWViewEnergyScale.h.
FWViewEnergyScale::FWViewEnergyScale | ( | std::string | name, |
int | version | ||
) |
Definition at line 24 of file FWViewEnergyScale.cc.
References FWEnumParameter::addEntry(), FWGenericParameter< T >::changed_, kAutoScale, kCombinedScale, kFixedScale, m_fixedValToHeight, m_maxTowerHeight, m_plotEt, m_scaleMode, and scaleParameterChanged().
|
override |
Definition at line 43 of file FWViewEnergyScale.cc.
|
delete |
|
private |
Definition at line 49 of file FWViewEnergyScale.cc.
References kAutoScale, kCombinedScale, kFixedScale, m_fixedValToHeight, m_maxTowerHeight, m_scaleMode, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, Pi, and FWGenericParameter< T >::value().
Referenced by updateScaleFactors().
|
inline |
Definition at line 47 of file FWViewEnergyScale.h.
References m_plotEt, and FWGenericParameter< T >::value().
Referenced by FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), FWCaloRecHitDigitSetProxyBuilder::build(), FWTauProxyBuilderBase::buildBaseTau(), FWPFRhoPhiRecHit::buildRecHit(), FWPFClusterRPZUtils::buildRhoPhiClusterLineSet(), FWPFClusterRPZUtils::buildRhoZClusterLineSet(), FWPFLegoRecHit::buildTower(), FWMETProxyBuilder::buildViewType(), FWJetProxyBuilder::buildViewType(), FWLegoCandidate::FWLegoCandidate(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), FWCaloRecHitDigitSetProxyBuilder::scaleProduct(), FWPFCandidateWithHitsProxyBuilder::scaleProduct(), FWPFClusterRPZProxyBuilder::scaleProduct(), FWTauProxyBuilderBase::scaleProduct(), FWMETProxyBuilder::scaleProduct(), FWPFEcalRecHitLegoProxyBuilder::scaleProduct(), FWPFBlockProxyBuilder::scaleProduct(), FWJetProxyBuilder::scaleProduct(), FWMET3DProxyBuilder::Arrow::setScale(), FWJetProxyBuilder::setTextPos(), FWEveView::setupEnergyScale(), FWLegoEvePFCandidate::updateScale(), FWLegoCandidate::updateScale(), FWPFRhoPhiRecHit::updateScale(), and FWPFLegoRecHit::updateScale().
|
inline |
Definition at line 44 of file FWViewEnergyScale.h.
References m_scaleFactor3D.
Referenced by FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), FWTauProxyBuilderBase::buildBaseTau(), FWPFRhoPhiRecHit::buildRecHit(), FWPFClusterRPZUtils::buildRhoPhiClusterLineSet(), FWPFClusterRPZUtils::buildRhoZClusterLineSet(), FWMETProxyBuilder::buildViewType(), FWJetProxyBuilder::buildViewType(), FWCaloRecHitDigitSetProxyBuilder::scaleFactor(), FWPFCandidateWithHitsProxyBuilder::scaleProduct(), FWPFClusterRPZProxyBuilder::scaleProduct(), FWTauProxyBuilderBase::scaleProduct(), FWMETProxyBuilder::scaleProduct(), FWPFBlockProxyBuilder::scaleProduct(), FWJetProxyBuilder::scaleProduct(), FWMET3DProxyBuilder::Arrow::setScale(), FWEveView::setupEnergyScale(), and FWPFRhoPhiRecHit::updateScale().
|
inline |
Definition at line 45 of file FWViewEnergyScale.h.
References m_scaleFactorLego.
Referenced by FWPFLegoRecHit::buildTower(), FWLegoCandidate::FWLegoCandidate(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), FWEveView::setupEnergyScale(), FWLegoEvePFCandidate::updateScale(), FWLegoCandidate::updateScale(), and FWPFLegoRecHit::updateScale().
|
inline |
Definition at line 54 of file FWViewEnergyScale.h.
References m_name.
Referenced by config.CFG::__str__(), validation.Sample::digest(), and VIDSelectorBase.VIDSelectorBase::initialize().
|
delete |
void FWViewEnergyScale::scaleParameterChanged | ( | ) | const |
Definition at line 47 of file FWViewEnergyScale.cc.
References parameterChanged_.
Referenced by FWViewEnergyScale().
|
overridevirtual |
Reimplemented from FWConfigurableParameterizable.
Definition at line 75 of file FWViewEnergyScale.cc.
References FWParameterizable::begin(), and FWParameterizable::end().
void FWViewEnergyScale::SetFromCmsShowCommonConfig | ( | long | mode, |
float | convert, | ||
float | maxH, | ||
bool | et | ||
) |
Definition at line 81 of file FWViewEnergyScale.cc.
References EgHLTOffHistBins_cfi::et, m_fixedValToHeight, m_maxTowerHeight, m_plotEt, m_scaleMode, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, and FWGenericParameter< T >::set().
Referenced by CmsShowCommon::setFrom().
void FWViewEnergyScale::updateScaleFactors | ( | float | iMaxVal | ) |
Definition at line 70 of file FWViewEnergyScale.cc.
References calculateScaleFactor(), m_scaleFactor3D, and m_scaleFactorLego.
Referenced by FWEveView::setupEnergyScale().
|
friend |
Definition at line 35 of file FWViewEnergyScale.h.
|
protected |
Definition at line 61 of file FWViewEnergyScale.h.
Referenced by calculateScaleFactor(), FWViewEnergyScale(), FWViewEnergyScaleEditor::FWViewEnergyScaleEditor(), and SetFromCmsShowCommonConfig().
|
protected |
Definition at line 62 of file FWViewEnergyScale.h.
Referenced by calculateScaleFactor(), FWViewEnergyScale(), FWViewEnergyScaleEditor::FWViewEnergyScaleEditor(), and SetFromCmsShowCommonConfig().
|
private |
Definition at line 72 of file FWViewEnergyScale.h.
Referenced by name().
|
protected |
Definition at line 63 of file FWViewEnergyScale.h.
Referenced by FWViewEnergyScale(), FWViewEnergyScaleEditor::FWViewEnergyScaleEditor(), getPlotEt(), and SetFromCmsShowCommonConfig().
|
private |
Definition at line 75 of file FWViewEnergyScale.h.
Referenced by getScaleFactor3D(), and updateScaleFactors().
|
private |
Definition at line 76 of file FWViewEnergyScale.h.
Referenced by getScaleFactorLego(), and updateScaleFactors().
|
protected |
Definition at line 60 of file FWViewEnergyScale.h.
Referenced by calculateScaleFactor(), FWViewEnergyScale(), FWViewEnergyScaleEditor::FWViewEnergyScaleEditor(), and SetFromCmsShowCommonConfig().
sigc::signal<void()> FWViewEnergyScale::parameterChanged_ |
Definition at line 51 of file FWViewEnergyScale.h.
Referenced by scaleParameterChanged().