15 #define VP1IMPVARNAME m_d
18 #include "ui_vp1vertexcontrollerform.h"
19 #include "ui_vertex_settings_display_form.h"
20 #include "ui_vertex_settings_interactions_form.h"
21 #include "ui_vertex_settings_cuts_form.h"
27 #include "GaudiKernel/SystemOfUnits.h"
32 Ui::VP1VertexControllerForm
ui{};
34 Ui::VertexSysSettingsInteractionsForm
ui_int{};
51 m_d->
ui.setupUi(
this);
60 m_d->
ui_cuts.etaPhiCutWidget->setEtaCutEnabled(
false);
61 m_d->
ui_display.widget_drawOptions->setBaseLightingDisabled();
65 m_d->
ui_display.radioButton_truthCrossSize_Fixed->setChecked(
true);
68 m_d->
ui_display.radioButton_truthCrossSize_quantityIsAbsMomentum,
69 m_d->
ui_display.radioButton_truthCrossSize_quantityIsAbsTransverseMomentum,
71 m_d->
ui_display.radioButton_truthCrossSize_quantityIsEnergy->setChecked(
true);
149 s.save(
m_d->
ui_display.radioButton_truthCrossSize_quantityIsEnergy,
150 m_d->
ui_display.radioButton_truthCrossSize_quantityIsAbsMomentum,
151 m_d->
ui_display.radioButton_truthCrossSize_quantityIsAbsTransverseMomentum,
154 s.save(
m_d->
ui_display.doubleSpinBox_truthCrossSize_ProptoQuantity);
158 s.save(
m_d->
ui_int.checkBox_printinfo_verbose);
163 s.save(
m_d->
ui_cuts.checkBox_truthcut_primaryonly);
164 s.save(
m_d->
ui_cuts.checkBox_truthcut_incomingParticleRequirement);
165 s.save(
m_d->
ui_cuts.checkBox_truthcut_quantity_min);
166 s.save(
m_d->
ui_cuts.checkBox_truthcut_quantity_max);
167 s.save(
m_d->
ui_cuts.doubleSpinBox_truthcut_quantity_min_gev);
168 s.save(
m_d->
ui_cuts.doubleSpinBox_truthcut_quantity_max_gev);
169 s.save(
m_d->
ui_cuts.radioButton_truthcut_quantityIsEnergy,
170 m_d->
ui_cuts.radioButton_truthcut_quantityIsAbsMomentum,
171 m_d->
ui_cuts.radioButton_truthcut_quantityIsAbsTransverseMomentum,
172 m_d->
ui_cuts.radioButton_truthcut_quantityIsMass);
173 s.save(
m_d->
ui_cuts.checkBox_reconcuts_onlyShowTypes);
174 s.save(
m_d->
ui_cuts.checkBox_reconcut_type_primary);
175 s.save(
m_d->
ui_cuts.checkBox_reconcut_type_secondary);
177 s.save(
m_d->
ui_cuts.checkBox_reconcut_type_conversion);
179 s.save(
m_d->
ui_cuts.checkBox_reconcut_type_pileup);
186 if (
s.version()<0||
s.version()>0) {
187 message(
"Warning: State data in .vp1 file has unsupported version ("+
str(
s.version())+
")");
196 s.restore(
m_d->
ui_display.doubleSpinBox_reconVert_sphereRadius_mm);
197 s.restore(
m_d->
ui_display.doubleSpinBox_reconVert_ellipsoid_nsigma);
198 s.restore(
m_d->
ui_display.radioButton_truthCrossSize_ProptoQuantity,
200 s.restore(
m_d->
ui_display.radioButton_truthCrossSize_quantityIsEnergy,
201 m_d->
ui_display.radioButton_truthCrossSize_quantityIsAbsMomentum,
202 m_d->
ui_display.radioButton_truthCrossSize_quantityIsAbsTransverseMomentum,
205 s.restore(
m_d->
ui_display.doubleSpinBox_truthCrossSize_ProptoQuantity);
209 s.restore(
m_d->
ui_int.checkBox_printinfo_verbose);
214 s.restore(
m_d->
ui_cuts.checkBox_truthcut_primaryonly);
215 s.restore(
m_d->
ui_cuts.checkBox_truthcut_incomingParticleRequirement);
216 s.restore(
m_d->
ui_cuts.checkBox_truthcut_quantity_min);
217 s.restore(
m_d->
ui_cuts.checkBox_truthcut_quantity_max);
218 s.restore(
m_d->
ui_cuts.doubleSpinBox_truthcut_quantity_min_gev);
219 s.restore(
m_d->
ui_cuts.doubleSpinBox_truthcut_quantity_max_gev);
220 s.restore(
m_d->
ui_cuts.radioButton_truthcut_quantityIsEnergy,
221 m_d->
ui_cuts.radioButton_truthcut_quantityIsAbsMomentum,
222 m_d->
ui_cuts.radioButton_truthcut_quantityIsAbsTransverseMomentum,
223 m_d->
ui_cuts.radioButton_truthcut_quantityIsMass);
224 s.restore(
m_d->
ui_cuts.checkBox_reconcuts_onlyShowTypes);
225 s.restore(
m_d->
ui_cuts.checkBox_reconcut_type_primary);
226 s.restore(
m_d->
ui_cuts.checkBox_reconcut_type_secondary);
228 s.restore(
m_d->
ui_cuts.checkBox_reconcut_type_conversion);
229 s.restore(
m_d->
ui_cuts.checkBox_reconcut_type_kink);
230 s.restore(
m_d->
ui_cuts.checkBox_reconcut_type_pileup);
231 s.restore(
m_d->
ui_cuts.checkBox_reconcut_type_other);
249 return m_d->
ui_display.widget_drawOptions->drawOptionsGroup();
266 if (
m_d->
ui_display.radioButton_truthCrossSize_Fixed->isChecked()) {
270 if (
m_d->
ui_display.radioButton_truthCrossSize_quantityIsAbsMomentum->isChecked())
272 else if (
m_d->
ui_display.radioButton_truthCrossSize_quantityIsAbsTransverseMomentum->isChecked())
274 else if (
m_d->
ui_display.radioButton_truthCrossSize_quantityIsMass->isChecked())
277 return QPair<VertexCommonFlags::QUANTITY,double>(quantity,
range);
286 if (!
m_d->
ui_cuts.checkBox_truthcut_incomingParticleRequirement->isChecked())
287 return QPair<VertexCommonFlags::QUANTITY,VP1Interval>(quantity,
range);
289 if (
m_d->
ui_cuts.checkBox_truthcut_quantity_min->isChecked())
291 if (
m_d->
ui_cuts.checkBox_truthcut_quantity_max->isChecked())
295 return QPair<VertexCommonFlags::QUANTITY,VP1Interval>(quantity,
range);
297 if (
m_d->
ui_cuts.radioButton_truthcut_quantityIsAbsMomentum->isChecked())
299 else if (
m_d->
ui_cuts.radioButton_truthcut_quantityIsAbsTransverseMomentum->isChecked())
301 else if (
m_d->
ui_cuts.radioButton_truthcut_quantityIsMass->isChecked())
304 return QPair<VertexCommonFlags::QUANTITY,VP1Interval>(quantity,
range);
310 if (
m_d->
ui_display.radioButton_reconVert_point->isChecked())
312 if (
m_d->
ui_display.radioButton_reconVert_sphere->isChecked())
314 return m_d->
ui_display.doubleSpinBox_reconVert_ellipsoid_nsigma->value();
320 if (!
m_d->
ui_cuts.checkBox_reconcuts_onlyShowTypes->isChecked())
323 VertexCommonFlags::ReconVertexTypeFlags
f;
325 if (
m_d->
ui_cuts.checkBox_reconcut_type_primary->isChecked())
327 if (
m_d->
ui_cuts.checkBox_reconcut_type_secondary->isChecked())
329 if (
m_d->
ui_cuts.checkBox_reconcut_type_v0->isChecked())
331 if (
m_d->
ui_cuts.checkBox_reconcut_type_conversion->isChecked())
333 if (
m_d->
ui_cuts.checkBox_reconcut_type_kink->isChecked())
335 if (
m_d->
ui_cuts.checkBox_reconcut_type_pileup->isChecked())
337 if (
m_d->
ui_cuts.checkBox_reconcut_type_other->isChecked())
352 #define VP1CONTROLLERCLASSNAME VertexSysController