#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 Member Functions | |
FWViewEnergyScale (std::string name, int version) | |
bool | getPlotEt () const |
float | getScaleFactor3D () const |
float | getScaleFactorLego () const |
const std::string & | name () const |
void | scaleParameterChanged () const |
virtual void | setFrom (const FWConfiguration &) |
void | SetFromCmsShowCommonConfig (long mode, float convert, float maxH, bool et) |
void | updateScaleFactors (float iMaxVal) |
virtual | ~FWViewEnergyScale () |
Public Member Functions inherited from FWConfigurableParameterizable | |
virtual void | addTo (FWConfiguration &) const |
FWConfigurableParameterizable (unsigned int iVersion=1) | |
unsigned int | version () const |
virtual | ~FWConfigurableParameterizable () |
Public Member Functions inherited from FWParameterizable | |
void | add (FWParameterBase *) |
const_iterator | begin () const |
const_iterator | end () const |
FWParameterizable () | |
virtual | ~FWParameterizable () |
Public Member Functions inherited from FWConfigurable | |
FWConfigurable () | |
virtual | ~FWConfigurable () |
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 |
FWViewEnergyScale (const FWViewEnergyScale &) | |
const FWViewEnergyScale & | operator= (const FWViewEnergyScale &) |
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 39 of file FWViewEnergyScale.h.
FWViewEnergyScale::FWViewEnergyScale | ( | std::string | name, |
int | version | ||
) |
Definition at line 25 of file FWViewEnergyScale.cc.
References FWEnumParameter::addEntry(), FWGenericParameter< T >::changed_, kAutoScale, kCombinedScale, kFixedScale, m_fixedValToHeight, m_maxTowerHeight, m_plotEt, m_scaleMode, and scaleParameterChanged().
|
virtual |
Definition at line 45 of file FWViewEnergyScale.cc.
|
private |
|
private |
Definition at line 58 of file FWViewEnergyScale.cc.
References kAutoScale, kCombinedScale, kFixedScale, m_fixedValToHeight, m_maxTowerHeight, m_scaleMode, alignBH_cfg::mode, Pi, and FWGenericParameter< T >::value().
Referenced by updateScaleFactors().
|
inline |
Definition at line 48 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(), FWJetProxyBuilder::buildViewType(), FWLegoCandidate::FWLegoCandidate(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), FWCaloRecHitDigitSetProxyBuilder::scaleProduct(), FWPFCandidateWithHitsProxyBuilder::scaleProduct(), FWPFClusterRPZProxyBuilder::scaleProduct(), FWMETProxyBuilder::scaleProduct(), FWPFEcalRecHitLegoProxyBuilder::scaleProduct(), FWTauProxyBuilderBase::scaleProduct(), FWPFBlockProxyBuilder::scaleProduct(), FWJetProxyBuilder::scaleProduct(), FWMET3DProxyBuilder::Arrow::setScale(), FWJetProxyBuilder::setTextPos(), FWEveView::setupEnergyScale(), FWLegoEvePFCandidate::updateScale(), FWPFRhoPhiRecHit::updateScale(), FWLegoCandidate::updateScale(), and FWPFLegoRecHit::updateScale().
|
inline |
Definition at line 45 of file FWViewEnergyScale.h.
References m_scaleFactor3D.
Referenced by FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), FWTauProxyBuilderBase::buildBaseTau(), FWPFRhoPhiRecHit::buildRecHit(), FWPFClusterRPZUtils::buildRhoPhiClusterLineSet(), FWPFClusterRPZUtils::buildRhoZClusterLineSet(), FWJetProxyBuilder::buildViewType(), FWCaloRecHitDigitSetProxyBuilder::scaleFactor(), FWPFCandidateWithHitsProxyBuilder::scaleProduct(), FWPFClusterRPZProxyBuilder::scaleProduct(), FWMETProxyBuilder::scaleProduct(), FWTauProxyBuilderBase::scaleProduct(), FWPFBlockProxyBuilder::scaleProduct(), FWJetProxyBuilder::scaleProduct(), FWMET3DProxyBuilder::Arrow::setScale(), FWEveView::setupEnergyScale(), and FWPFRhoPhiRecHit::updateScale().
|
inline |
Definition at line 46 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 55 of file FWViewEnergyScale.h.
References m_name.
Referenced by cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), config.CFG::__str__(), VIDSelectorBase.VIDSelectorBase::initialize(), and Vispa.Views.PropertyView.Property::valueChanged().
|
private |
void FWViewEnergyScale::scaleParameterChanged | ( | ) | const |
Definition at line 52 of file FWViewEnergyScale.cc.
References parameterChanged_.
Referenced by FWViewEnergyScale().
|
virtual |
Reimplemented from FWConfigurableParameterizable.
Definition at line 93 of file FWViewEnergyScale.cc.
References FWParameterizable::begin(), and FWParameterizable::end().
void FWViewEnergyScale::SetFromCmsShowCommonConfig | ( | long | mode, |
float | convert, | ||
float | maxH, | ||
bool | et | ||
) |
Definition at line 103 of file FWViewEnergyScale.cc.
References m_fixedValToHeight, m_maxTowerHeight, m_plotEt, m_scaleMode, and FWGenericParameter< T >::set().
void FWViewEnergyScale::updateScaleFactors | ( | float | iMaxVal | ) |
Definition at line 86 of file FWViewEnergyScale.cc.
References calculateScaleFactor(), m_scaleFactor3D, and m_scaleFactorLego.
Referenced by FWEveView::setupEnergyScale().
|
friend |
Definition at line 36 of file FWViewEnergyScale.h.
|
protected |
Definition at line 62 of file FWViewEnergyScale.h.
Referenced by calculateScaleFactor(), FWViewEnergyScale(), FWViewEnergyScaleEditor::FWViewEnergyScaleEditor(), and SetFromCmsShowCommonConfig().
|
protected |
Definition at line 63 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 64 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 61 of file FWViewEnergyScale.h.
Referenced by calculateScaleFactor(), FWViewEnergyScale(), FWViewEnergyScaleEditor::FWViewEnergyScaleEditor(), and SetFromCmsShowCommonConfig().
sigc::signal<void> FWViewEnergyScale::parameterChanged_ |
Definition at line 52 of file FWViewEnergyScale.h.
Referenced by scaleParameterChanged(), and FWEveViewManager::setContext().