#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 35 of file FWViewEnergyScale.h.
Enumerator | |
---|---|
kFixedScale | |
kAutoScale | |
kCombinedScale | |
kNone |
Definition at line 40 of file FWViewEnergyScale.h.
FWViewEnergyScale::FWViewEnergyScale | ( | std::string | name, |
int | version | ||
) |
Definition at line 26 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 46 of file FWViewEnergyScale.cc.
|
private |
|
private |
Definition at line 59 of file FWViewEnergyScale.cc.
References kAutoScale, kCombinedScale, kFixedScale, m_fixedValToHeight, m_maxTowerHeight, m_scaleMode, mode, Pi, and FWGenericParameter< T >::value().
Referenced by updateScaleFactors().
|
inline |
Definition at line 49 of file FWViewEnergyScale.h.
References m_plotEt, and FWGenericParameter< T >::value().
Referenced by FWHBHERecHitProxyBuilder::build(), FWEcalRecHitProxyBuilder::build(), FWTauProxyBuilderBase::buildBaseTau(), FWPFRhoPhiRecHit::buildRecHit(), FWPFClusterRPZUtils::buildRhoPhiClusterLineSet(), FWPFClusterRPZUtils::buildRhoZClusterLineSet(), FWPFLegoRecHit::buildTower(), FWJetProxyBuilder::buildViewType(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), FWPFLegoCandidate::FWPFLegoCandidate(), FWHBHERecHitProxyBuilder::scaleProduct(), FWEcalRecHitProxyBuilder::scaleProduct(), FWPFClusterRPZProxyBuilder::scaleProduct(), FWMETProxyBuilder::scaleProduct(), FWJetProxyBuilder::scaleProduct(), FWPFEcalRecHitLegoProxyBuilder::scaleProduct(), FWTauProxyBuilderBase::scaleProduct(), FWPFBlockProxyBuilder::scaleProduct(), FWMET3DProxyBuilder::Arrow::setScale(), FWEveView::setupEnergyScale(), FWLegoEvePFCandidate::updateScale(), FWPFRhoPhiRecHit::updateScale(), FWPFLegoCandidate::updateScale(), and FWPFLegoRecHit::updateScale().
|
inline |
Definition at line 46 of file FWViewEnergyScale.h.
References m_scaleFactor3D.
Referenced by FWTauProxyBuilderBase::buildBaseTau(), FWPFRhoPhiRecHit::buildRecHit(), FWPFClusterRPZUtils::buildRhoPhiClusterLineSet(), FWPFClusterRPZUtils::buildRhoZClusterLineSet(), FWJetProxyBuilder::buildViewType(), FWPFClusterRPZProxyBuilder::scaleProduct(), FWMETProxyBuilder::scaleProduct(), FWJetProxyBuilder::scaleProduct(), FWTauProxyBuilderBase::scaleProduct(), FWPFBlockProxyBuilder::scaleProduct(), FWMET3DProxyBuilder::Arrow::setScale(), FWEveView::setupEnergyScale(), and FWPFRhoPhiRecHit::updateScale().
|
inline |
Definition at line 47 of file FWViewEnergyScale.h.
References m_scaleFactorLego.
Referenced by FWPFLegoRecHit::buildTower(), FWLegoEvePFCandidate::FWLegoEvePFCandidate(), FWPFLegoCandidate::FWPFLegoCandidate(), FWEveView::setupEnergyScale(), FWLegoEvePFCandidate::updateScale(), FWPFLegoCandidate::updateScale(), and FWPFLegoRecHit::updateScale().
|
inline |
Definition at line 56 of file FWViewEnergyScale.h.
References m_name.
Referenced by python.Vispa.Views.PropertyView.Property::valueChanged().
|
private |
void FWViewEnergyScale::scaleParameterChanged | ( | ) | const |
Definition at line 53 of file FWViewEnergyScale.cc.
References parameterChanged_.
Referenced by FWViewEnergyScale().
|
virtual |
Reimplemented from FWConfigurableParameterizable.
Definition at line 94 of file FWViewEnergyScale.cc.
References FWParameterizable::begin(), and FWParameterizable::end().
void FWViewEnergyScale::SetFromCmsShowCommonConfig | ( | long | mode, |
float | convert, | ||
float | maxH, | ||
bool | et | ||
) |
Definition at line 104 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 87 of file FWViewEnergyScale.cc.
References calculateScaleFactor(), m_scaleFactor3D, and m_scaleFactorLego.
Referenced by FWEveView::setupEnergyScale().
|
friend |
Definition at line 37 of file FWViewEnergyScale.h.
|
protected |
Definition at line 63 of file FWViewEnergyScale.h.
Referenced by calculateScaleFactor(), FWViewEnergyScale(), FWViewEnergyScaleEditor::FWViewEnergyScaleEditor(), and SetFromCmsShowCommonConfig().
|
protected |
Definition at line 64 of file FWViewEnergyScale.h.
Referenced by calculateScaleFactor(), FWViewEnergyScale(), FWViewEnergyScaleEditor::FWViewEnergyScaleEditor(), and SetFromCmsShowCommonConfig().
|
private |
Definition at line 73 of file FWViewEnergyScale.h.
Referenced by name().
|
protected |
Definition at line 65 of file FWViewEnergyScale.h.
Referenced by FWViewEnergyScale(), FWViewEnergyScaleEditor::FWViewEnergyScaleEditor(), getPlotEt(), and SetFromCmsShowCommonConfig().
|
private |
Definition at line 76 of file FWViewEnergyScale.h.
Referenced by getScaleFactor3D(), and updateScaleFactors().
|
private |
Definition at line 77 of file FWViewEnergyScale.h.
Referenced by getScaleFactorLego(), and updateScaleFactors().
|
protected |
Definition at line 62 of file FWViewEnergyScale.h.
Referenced by calculateScaleFactor(), FWViewEnergyScale(), FWViewEnergyScaleEditor::FWViewEnergyScaleEditor(), and SetFromCmsShowCommonConfig().
sigc::signal<void> FWViewEnergyScale::parameterChanged_ |
Definition at line 53 of file FWViewEnergyScale.h.
Referenced by scaleParameterChanged(), and FWEveViewManager::setContext().