CMS 3D CMS Logo

FWViewEnergyScale.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWViewEnergyScale_h
2 #define Fireworks_Core_FWViewEnergyScale_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWViewEnergyScale
7 //
16 //
17 // Original Author: Alja Mrak-Tadel
18 // Created: Fri Jun 18 20:37:55 CEST 2010
19 //
20 
21 // system include files
22 
23 // user include files
24 
30 
31 // forward declarations
32 class FWEveView;
33 
36 
37 public:
40  ~FWViewEnergyScale() override;
41 
42  void updateScaleFactors(float iMaxVal);
43 
44  float getScaleFactor3D() const { return m_scaleFactor3D; }
45  float getScaleFactorLego() const { return m_scaleFactorLego; }
46 
47  bool getPlotEt() const { return m_plotEt.value(); }
48 
49  void scaleParameterChanged() const;
50 
51  sigc::signal<void> parameterChanged_;
52 
53  // added for debug
54  const std::string& name() const { return m_name; }
55 
56  void setFrom(const FWConfiguration&) override;
57  void SetFromCmsShowCommonConfig(long mode, float convert, float maxH, bool et);
58 
59 protected:
64 
65 private:
66  FWViewEnergyScale(const FWViewEnergyScale&) = delete; // stop default
67  const FWViewEnergyScale& operator=(const FWViewEnergyScale&) = delete; // stop default
68 
69  float calculateScaleFactor(float iMaxVal, bool isLego) const;
70 
72 
73  // cached
76 };
77 
78 #endif
FWViewEnergyScale::m_scaleFactor3D
float m_scaleFactor3D
Definition: FWViewEnergyScale.h:74
FWEnumParameter
Definition: FWEnumParameter.h:30
FWViewEnergyScale::calculateScaleFactor
float calculateScaleFactor(float iMaxVal, bool isLego) const
Definition: FWViewEnergyScale.cc:49
FWGenericParameterWithRange
Definition: FWGenericParameterWithRange.h:27
FWBoolParameter.h
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
FWViewEnergyScale::getPlotEt
bool getPlotEt() const
Definition: FWViewEnergyScale.h:47
FWViewEnergyScale::updateScaleFactors
void updateScaleFactors(float iMaxVal)
Definition: FWViewEnergyScale.cc:70
FWViewEnergyScale::m_plotEt
FWBoolParameter m_plotEt
Definition: FWViewEnergyScale.h:63
FWConfigurableParameterizable.h
FWGenericParameter
Definition: FWGenericParameter.h:31
FWViewEnergyScale::scaleParameterChanged
void scaleParameterChanged() const
Definition: FWViewEnergyScale.cc:47
FWViewEnergyScaleEditor
Definition: FWViewEnergyScaleEditor.h:37
FWEveView
Definition: FWEveView.h:53
FWViewEnergyScale::name
const std::string & name() const
Definition: FWViewEnergyScale.h:54
FWLongParameter.h
FWViewEnergyScale::m_name
const std::string m_name
Definition: FWViewEnergyScale.h:71
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FWViewEnergyScale::getScaleFactorLego
float getScaleFactorLego() const
Definition: FWViewEnergyScale.h:45
fileCollector.convert
def convert(infile, ofile)
Definition: fileCollector.py:47
FWViewEnergyScale::setFrom
void setFrom(const FWConfiguration &) override
Definition: FWViewEnergyScale.cc:75
FWConfigurableParameterizable
Definition: FWConfigurableParameterizable.h:29
FWViewEnergyScale::kFixedScale
Definition: FWViewEnergyScale.h:38
FWViewEnergyScale::kCombinedScale
Definition: FWViewEnergyScale.h:38
FWViewEnergyScale::EScaleMode
EScaleMode
Definition: FWViewEnergyScale.h:38
FWEnumParameter.h
FWViewEnergyScale::operator=
const FWViewEnergyScale & operator=(const FWViewEnergyScale &)=delete
FWViewEnergyScale::SetFromCmsShowCommonConfig
void SetFromCmsShowCommonConfig(long mode, float convert, float maxH, bool et)
Definition: FWViewEnergyScale.cc:81
EgHLTOffHistBins_cfi.et
et
Definition: EgHLTOffHistBins_cfi.py:8
FWViewEnergyScale::m_maxTowerHeight
FWDoubleParameter m_maxTowerHeight
Definition: FWViewEnergyScale.h:62
FWDoubleParameter.h
FWGenericParameter::value
T value() const
Definition: FWGenericParameter.h:50
FWViewEnergyScale::getScaleFactor3D
float getScaleFactor3D() const
Definition: FWViewEnergyScale.h:44
FWViewEnergyScale::~FWViewEnergyScale
~FWViewEnergyScale() override
Definition: FWViewEnergyScale.cc:43
FWViewEnergyScale::m_scaleMode
FWEnumParameter m_scaleMode
Definition: FWViewEnergyScale.h:60
FWConfigurableParameterizable::version
unsigned int version() const
Definition: FWConfigurableParameterizable.h:37
FWViewEnergyScale::kNone
Definition: FWViewEnergyScale.h:38
FWViewEnergyScale
Definition: FWViewEnergyScale.h:34
FWViewEnergyScale::parameterChanged_
sigc::signal< void > parameterChanged_
Definition: FWViewEnergyScale.h:51
FWConfiguration
Definition: FWConfiguration.h:31
FWViewEnergyScale::m_fixedValToHeight
FWDoubleParameter m_fixedValToHeight
Definition: FWViewEnergyScale.h:61
FWViewEnergyScale::kAutoScale
Definition: FWViewEnergyScale.h:38
FWViewEnergyScale::m_scaleFactorLego
float m_scaleFactorLego
Definition: FWViewEnergyScale.h:75
FWViewEnergyScale::FWViewEnergyScale
FWViewEnergyScale(std::string name, int version)
Definition: FWViewEnergyScale.cc:24