15 #define VP1IMPVARNAME m_d
19 #include "ui_vp1caloclustercontrollerform.h"
20 #include "ui_calocluster_settings_display_form.h"
21 #include "ui_calocluster_settings_interactions_form.h"
22 #include "ui_calocluster_settings_cuts_form.h"
27 #include "CLHEP/Units/SystemOfUnits.h"
32 Ui::VP1CaloClusterControllerForm
ui{};
33 Ui::CaloClusterSysSettingsCutsForm
ui_cuts{};
34 Ui::CaloClusterSysSettingsInteractionsForm
ui_int{};
58 m_d->
ui.setupUi(
this);
70 m_d->
ui_display.widget_drawOptions->setBaseLightingDisabled();
73 m_d->
ui_cuts.etaPhiCutWidget->setEtaCutEnabled(
false);
145 s.save(
m_d->
ui_int.checkBox_printinfo_verbose);
149 s.save(
m_d->
ui.radioButton_energyMode_Et,
m_d->
ui.radioButton_energyMode_E);
155 if (
s.version()<0||
s.version()>3) {
156 message(
"Warning: State data in .vp1 file has unsupported version ("+
str(
s.version())+
")");
170 if (
s.version()>=1) {
172 s.restore(
m_d->
ui_int.checkBox_printinfo_verbose);
175 if (
s.version()>=2) {
180 s.restore(
m_d->
ui.radioButton_energyMode_Et,
m_d->
ui.radioButton_energyMode_E);
196 if (sender()==
m_d->
ui_cuts.toolButton_quicketa_barrel)
197 m_d->
ui_cuts.etaPhiCutWidget->setEtaCut(cracketa);
198 else if (sender()==
m_d->
ui_cuts.toolButton_quicketa_endcapA)
199 m_d->
ui_cuts.etaPhiCutWidget->setEtaCut(cracketa,9.0);
200 else if (sender()==
m_d->
ui_cuts.toolButton_quicketa_endcapC)
201 m_d->
ui_cuts.etaPhiCutWidget->setEtaCut(-9.0,-cracketa);
203 message(
"ERROR: Unknown sender() in etaCutPresetButtonTriggered() slot.");
212 return m_d->
ui_display.widget_drawOptions->drawOptionsGroup();
223 const bool relative =
m_d->
ui_display.radioButton_relativeScale->isChecked();
224 const bool logscale =
m_d->
ui_display.checkBox_logscale->isChecked();
229 if (
col && highestvisibleenergy < col->highestVisibleClusterEnergy() )
230 highestvisibleenergy =
col->highestVisibleClusterEnergy();
247 if (scl!=scl||scl>maxscale)
251 return QPair<bool,double>(logscale,scl);
267 return m_d->
ui_cuts.etaPhiCutWidget->allowedEta();
273 return m_d->
ui_cuts.etaPhiCutWidget->allowedPhi();
279 return m_d->
ui_display.checkBox_showVolumeOutLines->isChecked();
284 return m_d->
ui.radioButton_energyMode_Et->isChecked();
290 #define VP1CONTROLLERCLASSNAME CaloClusterSysController