ATLAS Offline Software
Classes | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Static Protected Member Functions | Private Slots | Private Attributes | Static Private Attributes | List of all members
VP1RawDataSysController Class Reference

#include <VP1RawDataSysController.h>

Inheritance diagram for VP1RawDataSysController:
Collaboration diagram for VP1RawDataSysController:

Classes

class  Imp
 

Public Slots

void toggleDialogState (QObject *widget=0)
 
void enabledButtonStateChanged ()
 
void collWidgetContentChanged ()
 

Signals

void cutAllowedEtaChanged (const VP1Interval &)
 
void cutAllowedPhiChanged (const QList< VP1Interval > &)
 
void showVolumeOutLinesChanged (bool)
 
void useSpecialTRTHTMaterialChanged (bool)
 
void useSpecialBCMHighAttMaterialChanged (bool)
 
void enabledInDetPartsChanged (VP1RawDataFlags::InDetPartsFlags)
 
void trtRequireHTChanged (bool)
 
void trtAllowedToTChanged (const VP1Interval &)
 
void lucidMinQDCChanged (unsigned)
 
void dummyUpdateTrigger ()
 

Public Member Functions

 VP1RawDataSysController (IVP1System *sys)
 
virtual ~VP1RawDataSysController ()
 
void actualRestoreSettings (VP1Deserialise &)
 
int currentSettingsVersion () const
 
void actualSaveSettings (VP1Serialise &) const
 
VP1CollectionWidgetcollWidget () const
 
SoGroup * drawOptions () const
 
SoMaterial * trtHTMaterial () const
 
SoMaterial * bcmHighAttMaterial () const
 
bool printInfoOnClick () const
 
bool printVerboseInfoOnClick () const
 
bool zoomOnClick () const
 
VP1Interval cutAllowedEta () const
 
QList< VP1IntervalcutAllowedPhi () const
 
VP1RawDataFlags::InDetPartsFlags enabledInDetParts () const
 
bool trtRequireHT () const
 
VP1Interval trtAllowedToT () const
 
unsigned lucidMinQDC () const
 
bool showVolumeOutLines () const
 
bool useSpecialTRTHTMaterial () const
 
bool useSpecialBCMHighAttMaterial () const
 
void initLastVars ()
 
QByteArray saveSettings () const
 
void restoreSettings (const QByteArray &)
 
void setSystemBasePointer (IVP1System *sys)
 
void message (const QString &) const
 
void message (const QStringList &, const QString &addtoend="") const
 
void message (const QString &addtostart, const QStringList &, const QString &addtoend="") const
 
void messageDebug (const QString &) const
 
void messageDebug (const QStringList &, const QString &addtoend="") const
 
void messageDebug (const QString &addtostart, const QStringList &, const QString &addtoend="") const
 
void messageVerbose (const QString &) const
 
void messageVerbose (const QStringList &, const QString &addtoend="") const
 
void messageVerbose (const QString &addtostart, const QStringList &, const QString &addtoend="") const
 
IVP1SystemsystemBase () const
 
const QString & helperClassName () const
 

Static Public Member Functions

static void setCustomTourEditor (VP1CustomTourEditor *editor)
 
static VP1CustomTourEditorcustomTourEditor ()
 
static bool verbose ()
 
static void warnUndeletedInstances ()
 
static QString str (const QString &s)
 
static QString str (const char *c)
 
static QString str (const bool b)
 
static QString str (const QColor &)
 
static QString str (const SbColor &)
 
static QString str (const VP1Interval &)
 
static QString str (const SbVec2d &)
 
static QString str (const SbVec2f &)
 
static QString str (const SbVec2s &)
 
static QString str (const SbVec3d &)
 
static QString str (const SbVec3f &)
 
static QString str (const SbVec3s &)
 
static QString str (const SbVec4d &)
 
static QString str (const SbVec4f &)
 
static QString str (short int n)
 
static QString str (unsigned short int n)
 
static QString str (long n)
 
static QString str (ulong n)
 
static QString str (int n)
 
static QString str (uint n)
 
static QString str (qlonglong n)
 
static QString str (qulonglong n)
 
static QString str (const double &d)
 
static QString str (const float &f)
 
static QString str (const void *)
 
template<class T >
static QString str (const T *t)
 
template<class T >
static QString str (const QFlags< T > &f)
 
template<class T >
static QString str (const HepGeom::BasicVector3D< T > &t)
 
static QString str (const Amg::Vector3D &t)
 
template<class T >
static QString str (const QList< T > &t)
 

Protected Slots

void testForChanges ()
 

Protected Member Functions

template<class T >
bool changed (T &lastval, const T &newval)
 
template<class T >
void initDialog (T &theUI, QPushButton *launchbutton, QAbstractButton *enabledButton=0)
 
void initDialog (QWidget *dialog, QPushButton *launchbutton, QPushButton *closebutton, QAbstractButton *enabledButton=0)
 
void setupCollWidgetInScrollArea (QScrollArea *scrollarea, VP1CollectionWidget *collWidget)
 
const char * addUpdateSlot (const char *slot)
 
void connectToLastUpdateSlot (QObject *sender, const char *signal)
 
void connectToLastUpdateSlot (QCheckBox *)
 
void connectToLastUpdateSlot (QComboBox *)
 
void connectToLastUpdateSlot (QGroupBox *)
 
void connectToLastUpdateSlot (QSpinBox *)
 
void connectToLastUpdateSlot (QDoubleSpinBox *)
 
void connectToLastUpdateSlot (QRadioButton *)
 
void connectToLastUpdateSlot (QButtonGroup *)
 
void connectToLastUpdateSlot (QSlider *)
 
void connectToLastUpdateSlot (VP1ColorSelectButton *)
 
bool initVarsMode () const
 
QButtonGroup * defineRadioButtonGroup (QRadioButton *rb0, QRadioButton *rb1, QRadioButton *rb2=0, QRadioButton *rb3=0, QRadioButton *rb4=0, QRadioButton *rb5=0, QRadioButton *rb6=0, QRadioButton *rb7=0, QRadioButton *rb8=0, QRadioButton *rb9=0)
 
QButtonGroup * defineRadioButtonGroup (const QList< QRadioButton * > &)
 
SoMaterial * getMaterial (VP1MaterialButton *) const
 
SoMaterial * fallBackMaterial () const
 
void setHelperClassName (const QString &n)
 

Static Protected Member Functions

template<class T >
static QString toString (const T &par)
 
static QString toString (const bool &par)
 
static QString toString (const QList< VP1Interval > &l)
 
static QString toString (SbColor4f)
 

Private Slots

void possibleChange_cutAllowedEta ()
 
void possibleChange_cutAllowedPhi ()
 
void possibleChange_showVolumeOutLines ()
 
void possibleChange_useSpecialTRTHTMaterial ()
 
void possibleChange_useSpecialBCMHighAttMaterial ()
 
void possibleChange_enabledInDetParts ()
 
void possibleChange_trtRequireHT ()
 
void possibleChange_trtAllowedToT ()
 
void possibleChange_lucidMinQDC ()
 

Private Attributes

Impm_d
 
bool m_initVarsMode
 
QString m_helpername
 
IVP1Systemm_system
 

Static Private Attributes

static VP1CustomTourEditorm_customTourEditor =0
 
static const bool s_vp1verbose = VP1QtUtils::environmentVariableIsOn("VP1_VERBOSE_OUTPUT")
 

Detailed Description

Definition at line 24 of file VP1RawDataSysController.h.

Constructor & Destructor Documentation

◆ VP1RawDataSysController()

VP1RawDataSysController::VP1RawDataSysController ( IVP1System sys)

Definition at line 52 of file VP1RawDataSysController.cxx.

53  : VP1Controller(sys,"VP1RawDataSysController"), m_d(new Imp)
54 {
55  m_d->ui.setupUi(this);
56 
58  setupCollWidgetInScrollArea(m_d->ui.collWidgetScrollArea,m_d->collWidget);
59 
60  initDialog(m_d->ui_display, m_d->ui.pushButton_settings_display);
61  initDialog(m_d->ui_int, m_d->ui.pushButton_settings_interactions);
62  initDialog(m_d->ui_cuts, m_d->ui.pushButton_settings_cuts);
63 
64  m_d->ui_display.widget_drawOptions->setLineWidths(1.5);
65  m_d->ui_display.widget_drawOptions->setPointSizes(2.5);
66  m_d->ui_display.widget_drawOptions->setComplexityDisabled();
67 
68  m_d->ui_cuts.etaPhiCutWidget->setEtaCutEnabled(false);
69 
70  m_d->ui_display.matButton_trtht->setMaterial(VP1MaterialButton::createMaterial(1.0,0.0,0.0));
71  m_d->ui_display.matButton_bcmhighatt->setMaterial(VP1MaterialButton::createMaterial(1.0,0.0,0.0));
72 
73 
75  // Setup connections which monitor changes in the controller so that we may emit signals as appropriate: //
77 
78  // -> cutAllowedEta:
80  connectToLastUpdateSlot(m_d->ui_cuts.etaPhiCutWidget,SIGNAL(allowedEtaChanged(const VP1Interval&)));
81 
82  // -> cutAllowedPhi:
84  connectToLastUpdateSlot(m_d->ui_cuts.etaPhiCutWidget,SIGNAL(allowedPhiChanged(const QList<VP1Interval>&)));
85 
86  // -> showVolumeOutLines
88  connectToLastUpdateSlot(m_d->ui_display.checkBox_showVolumeOutLines);
89 
90  // -> useSpecialTRTHTMaterial
92  connectToLastUpdateSlot(m_d->ui_display.checkBox_trtHTUseSpecialMat);
93 
94  // -> useSpecialBCMHighAttMaterial
96  connectToLastUpdateSlot(m_d->ui_display.checkBox_bcmHighAttUseSpecialMat);
97 
98  // -> enabledInDetParts
100  connectToLastUpdateSlot(m_d->ui_cuts.checkBox_cut_indet_barrelA);
101  connectToLastUpdateSlot(m_d->ui_cuts.checkBox_cut_indet_barrelC);
102  connectToLastUpdateSlot(m_d->ui_cuts.checkBox_cut_indet_endcapA);
103  connectToLastUpdateSlot(m_d->ui_cuts.checkBox_cut_indet_endcapC);
104 
105  // -> trtRequireHT
107  connectToLastUpdateSlot(m_d->ui_cuts.checkbox_cut_trt_needHT);
108 
109  // -> trtAllowedToT
111  connectToLastUpdateSlot(m_d->ui_cuts.checkbox_cut_trt_TotMin);
112  connectToLastUpdateSlot(m_d->ui_cuts.spinBox_cut_trt_ToTMin);
113  connectToLastUpdateSlot(m_d->ui_cuts.checkbox_cut_trt_TotMax);
114  connectToLastUpdateSlot(m_d->ui_cuts.spinBox_cut_trt_ToTMax);
115 
116  // -> lucidMinQDC
118  connectToLastUpdateSlot(m_d->ui_cuts.spinBox_lucid_qdc_min);
119 
120  initLastVars();
121 }

◆ ~VP1RawDataSysController()

VP1RawDataSysController::~VP1RawDataSysController ( )
virtual

Definition at line 124 of file VP1RawDataSysController.cxx.

125 {
126  delete m_d;
127 }

Member Function Documentation

◆ actualRestoreSettings()

void VP1RawDataSysController::actualRestoreSettings ( VP1Deserialise s)
virtual

Implements VP1Controller.

Definition at line 162 of file VP1RawDataSysController.cxx.

163 {
164  if (s.version()<0||s.version()>1) {
165  message("Warning: State data in .vp1 file has unsupported version ("+str(s.version())+")");
166  return;
167  }
168  s.restore(m_d->ui_cuts.etaPhiCutWidget);
169  s.restore(m_d->ui_cuts.checkBox_cut_indet_barrelA);
170  s.restore(m_d->ui_cuts.checkBox_cut_indet_barrelC);
171  s.restore(m_d->ui_cuts.checkBox_cut_indet_endcapA);
172  s.restore(m_d->ui_cuts.checkBox_cut_indet_endcapC);
173  s.restore(m_d->ui_cuts.checkbox_cut_trt_needHT);
174  s.restore(m_d->ui_cuts.checkbox_cut_trt_TotMin);
175  s.restore(m_d->ui_cuts.spinBox_cut_trt_ToTMin);
176  s.restore(m_d->ui_cuts.checkbox_cut_trt_TotMax);
177  s.restore(m_d->ui_cuts.spinBox_cut_trt_ToTMax);
178  s.restore(m_d->ui_display.checkBox_showVolumeOutLines);
179  s.restore(m_d->ui_display.widget_drawOptions);
180  s.restore(m_d->ui_display.checkBox_trtHTUseSpecialMat);
181  s.restore(m_d->ui_display.checkBox_bcmHighAttUseSpecialMat);
182  s.restore(m_d->ui_display.matButton_trtht);
183  s.restore(m_d->ui_display.matButton_bcmhighatt);
184  s.restore(m_d->ui_int.checkBox_printinfo);
185  s.restore(m_d->ui_int.checkBox_printinfo_verbose);
186  s.restore(m_d->ui_int.checkBox_zoom);
187  if (s.version()>=1)
188  s.restore(m_d->ui_cuts.spinBox_lucid_qdc_min);
189 }

◆ actualSaveSettings()

void VP1RawDataSysController::actualSaveSettings ( VP1Serialise s) const
virtual

Implements VP1Controller.

Definition at line 137 of file VP1RawDataSysController.cxx.

138 {
139  s.save(m_d->ui_cuts.etaPhiCutWidget);
140  s.save(m_d->ui_cuts.checkBox_cut_indet_barrelA);
141  s.save(m_d->ui_cuts.checkBox_cut_indet_barrelC);
142  s.save(m_d->ui_cuts.checkBox_cut_indet_endcapA);
143  s.save(m_d->ui_cuts.checkBox_cut_indet_endcapC);
144  s.save(m_d->ui_cuts.checkbox_cut_trt_needHT);
145  s.save(m_d->ui_cuts.checkbox_cut_trt_TotMin);
146  s.save(m_d->ui_cuts.spinBox_cut_trt_ToTMin);
147  s.save(m_d->ui_cuts.checkbox_cut_trt_TotMax);
148  s.save(m_d->ui_cuts.spinBox_cut_trt_ToTMax);
149  s.save(m_d->ui_display.checkBox_showVolumeOutLines);
150  s.save(m_d->ui_display.widget_drawOptions);
151  s.save(m_d->ui_display.checkBox_trtHTUseSpecialMat);
152  s.save(m_d->ui_display.checkBox_bcmHighAttUseSpecialMat);
153  s.save(m_d->ui_display.matButton_trtht);
154  s.save(m_d->ui_display.matButton_bcmhighatt);
155  s.save(m_d->ui_int.checkBox_printinfo);
156  s.save(m_d->ui_int.checkBox_printinfo_verbose);
157  s.save(m_d->ui_int.checkBox_zoom);
158  s.save(m_d->ui_cuts.spinBox_lucid_qdc_min);//Version 1+
159 }

◆ addUpdateSlot()

const char * VP1Controller::addUpdateSlot ( const char *  slot)
protectedinherited

Definition at line 318 of file VP1Controller.cxx.

319 {
320  messageVerbose("Adding update slot: "+QString(slot));
321  connect(this,SIGNAL(dummyUpdateTrigger()),this,slot);
322  m_d->lastUpdateSlot = slot;
323  return slot;
324 }

◆ bcmHighAttMaterial()

SoMaterial * VP1RawDataSysController::bcmHighAttMaterial ( ) const

Definition at line 280 of file VP1RawDataSysController.cxx.

281 {
282  return getMaterial(m_d->ui_display.matButton_bcmhighatt);
283 }

◆ changed()

template<class T >
bool VP1Controller::changed ( T &  lastval,
const T &  newval 
)
protectedinherited

Definition at line 151 of file VP1Controller.h.

152 {
153  if (initVarsMode()) {
154  lastval=newval;
155  return false;
156  }
157  if (lastval==newval)
158  return false;
159  lastval = newval;
160  return true;
161 }

◆ collWidget()

VP1CollectionWidget * VP1RawDataSysController::collWidget ( ) const

Definition at line 192 of file VP1RawDataSysController.cxx.

193 {
194  return m_d->collWidget;
195 }

◆ collWidgetContentChanged

void VP1Controller::collWidgetContentChanged ( )
slotinherited

Definition at line 232 of file VP1Controller.cxx.

233 {
234  if (sender()!=m_d->collWidget||!m_d->collWidget) {
235  message("ERROR: Unexpected signal in collWidgetContentChanged slot!!");
236  return;
237  }
238  QScrollArea* scrollarea = dynamic_cast<QScrollArea*>(m_d->collWidget->parent());
239  if (!scrollarea&&m_d->collWidget->parent())
240  scrollarea = dynamic_cast<QScrollArea*>(m_d->collWidget->parent()->parent());
241  if (!scrollarea) {
242  message("ERROR: m_d->collWidget not child or grandchild of a scroll area!!");
243  return;
244  }
246  m_d->collWidget->setMinimumWidth(width);
247  m_d->collWidget->setMaximumWidth(width);
248  QScrollBar * sb = scrollarea->verticalScrollBar();
249  if (sb)
250  width+=sb->sizeHint().width();
251  scrollarea->setMinimumWidth(width+2);//2 is just some margin
252 }

◆ connectToLastUpdateSlot() [1/10]

void VP1Controller::connectToLastUpdateSlot ( QButtonGroup *  bg)
protectedinherited

Definition at line 369 of file VP1Controller.cxx.

370 {
371  connectToLastUpdateSlot(bg,SIGNAL(buttonClicked(int)));
372 }

◆ connectToLastUpdateSlot() [2/10]

void VP1Controller::connectToLastUpdateSlot ( QCheckBox *  cb)
protectedinherited

Definition at line 333 of file VP1Controller.cxx.

334 {
335  connectToLastUpdateSlot(cb,SIGNAL(toggled(bool)));
336 }

◆ connectToLastUpdateSlot() [3/10]

void VP1Controller::connectToLastUpdateSlot ( QComboBox *  cb)
protectedinherited

Definition at line 339 of file VP1Controller.cxx.

340 {
341  connectToLastUpdateSlot(cb,SIGNAL(currentIndexChanged(int)));
342 }

◆ connectToLastUpdateSlot() [4/10]

void VP1Controller::connectToLastUpdateSlot ( QDoubleSpinBox *  dsb)
protectedinherited

Definition at line 357 of file VP1Controller.cxx.

358 {
359  connectToLastUpdateSlot(dsb,SIGNAL(valueChanged(double)));
360 }

◆ connectToLastUpdateSlot() [5/10]

void VP1Controller::connectToLastUpdateSlot ( QGroupBox *  gb)
protectedinherited

Definition at line 345 of file VP1Controller.cxx.

346 {
347  connectToLastUpdateSlot(gb,SIGNAL(toggled(bool)));
348 }

◆ connectToLastUpdateSlot() [6/10]

void VP1Controller::connectToLastUpdateSlot ( QObject *  sender,
const char *  signal 
)
protectedinherited

Definition at line 327 of file VP1Controller.cxx.

328 {
329  connect(sender,signal,this,m_d->lastUpdateSlot);
330 }

◆ connectToLastUpdateSlot() [7/10]

void VP1Controller::connectToLastUpdateSlot ( QRadioButton *  rb)
protectedinherited

Definition at line 363 of file VP1Controller.cxx.

364 {
365  connectToLastUpdateSlot(rb,SIGNAL(toggled(bool)));
366 }

◆ connectToLastUpdateSlot() [8/10]

void VP1Controller::connectToLastUpdateSlot ( QSlider *  s)
protectedinherited

Definition at line 375 of file VP1Controller.cxx.

376 {
377  connectToLastUpdateSlot(s,SIGNAL(valueChanged(int)));
378 }

◆ connectToLastUpdateSlot() [9/10]

void VP1Controller::connectToLastUpdateSlot ( QSpinBox *  sb)
protectedinherited

Definition at line 351 of file VP1Controller.cxx.

352 {
353  connectToLastUpdateSlot(sb,SIGNAL(valueChanged(int)));
354 }

◆ connectToLastUpdateSlot() [10/10]

void VP1Controller::connectToLastUpdateSlot ( VP1ColorSelectButton csb)
protectedinherited

Definition at line 381 of file VP1Controller.cxx.

382 {
383  connectToLastUpdateSlot(csb,SIGNAL(colorChanged(const QColor&)));
384 }

◆ currentSettingsVersion()

int VP1RawDataSysController::currentSettingsVersion ( ) const
virtual

Implements VP1Controller.

Definition at line 131 of file VP1RawDataSysController.cxx.

132 {
133  return 1;
134 }

◆ customTourEditor()

static VP1CustomTourEditor* VP1Controller::customTourEditor ( )
inlinestaticinherited

Definition at line 61 of file VP1Controller.h.

61 {return m_customTourEditor;}

◆ cutAllowedEta()

VP1Interval VP1RawDataSysController::cutAllowedEta ( ) const

Definition at line 209 of file VP1RawDataSysController.cxx.

210 {
211  return m_d->ui_cuts.etaPhiCutWidget->allowedEta();
212 }

◆ cutAllowedEtaChanged

void VP1RawDataSysController::cutAllowedEtaChanged ( const VP1Interval )
signal

◆ cutAllowedPhi()

QList< VP1Interval > VP1RawDataSysController::cutAllowedPhi ( ) const

Definition at line 215 of file VP1RawDataSysController.cxx.

216 {
217  return m_d->ui_cuts.etaPhiCutWidget->allowedPhi();
218 }

◆ cutAllowedPhiChanged

void VP1RawDataSysController::cutAllowedPhiChanged ( const QList< VP1Interval > &  )
signal

◆ defineRadioButtonGroup() [1/2]

QButtonGroup * VP1Controller::defineRadioButtonGroup ( const QList< QRadioButton * > &  l)
protectedinherited

Definition at line 300 of file VP1Controller.cxx.

301 {
302  QRadioButton * rb_checked(0);
303  for (QRadioButton *rb : l) {
304  if (rb->isChecked()) {
305  rb_checked = rb;
306  break;
307  }
308  }
309  QButtonGroup * radiogroup = new QButtonGroup(this);
310  for (QRadioButton *rb : l)
311  radiogroup->addButton(rb);
312  if (rb_checked)
313  rb_checked->setChecked(true);
314  return radiogroup;
315 }

◆ defineRadioButtonGroup() [2/2]

QButtonGroup * VP1Controller::defineRadioButtonGroup ( QRadioButton *  rb0,
QRadioButton *  rb1,
QRadioButton *  rb2 = 0,
QRadioButton *  rb3 = 0,
QRadioButton *  rb4 = 0,
QRadioButton *  rb5 = 0,
QRadioButton *  rb6 = 0,
QRadioButton *  rb7 = 0,
QRadioButton *  rb8 = 0,
QRadioButton *  rb9 = 0 
)
protectedinherited

Definition at line 288 of file VP1Controller.cxx.

292 {
293  QList<QRadioButton *> l;
294  l << rb0 << rb1 << rb2 << rb3 << rb4 << rb5 << rb6 << rb7 << rb8 << rb9;
295  l.removeAll(0);
296  return defineRadioButtonGroup(l);
297 }

◆ drawOptions()

SoGroup * VP1RawDataSysController::drawOptions ( ) const

Definition at line 198 of file VP1RawDataSysController.cxx.

199 {
200  return m_d->ui_display.widget_drawOptions->drawOptionsGroup();
201 }

◆ dummyUpdateTrigger

void VP1Controller::dummyUpdateTrigger ( )
signalinherited

◆ enabledButtonStateChanged

void VP1Controller::enabledButtonStateChanged ( )
slotinherited

Definition at line 167 of file VP1Controller.cxx.

168 {
169  Imp::DialogInfo * di(0);
170  for (Imp::DialogInfo* di2 : m_d->dialogs) {
171  if (di2->enabledButton==sender()) {
172  di = di2;
173  break;
174  }
175  }
176  if (!di) {
177  message("ERROR: enabledButtonStateChanged() triggered with unrecognised sender() ="
178  +QString(sender()?sender()->objectName():"NULL"));
179  return;
180  }
181 
182  bool on(di->enabledButton->isChecked());
183  if (di->launchButton->isEnabled()!=on)
184  di->launchButton->setEnabled(on);
185  if (!on) {
186  if (di->dialogWidget->isVisible())
187  di->dialogWidget->setVisible(false);
188  if (di->dialogWidget->windowState()==Qt::WindowMinimized)
189  di->dialogWidget->setWindowState(Qt::WindowNoState);
190  }
191 }

◆ enabledInDetParts()

VP1RawDataFlags::InDetPartsFlags VP1RawDataSysController::enabledInDetParts ( ) const

Definition at line 239 of file VP1RawDataSysController.cxx.

240 {
241  VP1RawDataFlags::InDetPartsFlags f;
242  if (m_d->ui_cuts.checkBox_cut_indet_barrelA->isChecked())
244  if (m_d->ui_cuts.checkBox_cut_indet_barrelC->isChecked())
246  if (m_d->ui_cuts.checkBox_cut_indet_endcapA->isChecked())
248  if (m_d->ui_cuts.checkBox_cut_indet_endcapC->isChecked())
250  return f;
251 }

◆ enabledInDetPartsChanged

void VP1RawDataSysController::enabledInDetPartsChanged ( VP1RawDataFlags::InDetPartsFlags  )
signal

◆ fallBackMaterial()

SoMaterial * VP1Controller::fallBackMaterial ( ) const
protectedinherited

Definition at line 427 of file VP1Controller.cxx.

428 {
429  if (!m_d->fallBackMaterial) {
430  m_d->fallBackMaterial = new SoMaterial;
431  m_d->fallBackMaterial->ref();
432  }
433  return m_d->fallBackMaterial;
434 }

◆ getMaterial()

SoMaterial * VP1Controller::getMaterial ( VP1MaterialButton mb) const
protectedinherited

Definition at line 437 of file VP1Controller.cxx.

438 {
439  if (!mb) {
440  message("ERROR: Null material button pointer");
441  return fallBackMaterial();
442  }
443  QList<SoMaterial*> mats = mb->handledMaterials();
444  if (mats.count()!=1) {
445  message("ERROR: No material in button "+mb->objectName());
446  return fallBackMaterial();
447  }
448  return mats.at(0);
449 
450 
451 }

◆ helperClassName()

const QString& VP1HelperClassBase::helperClassName ( ) const
inlineinherited

Definition at line 51 of file VP1HelperClassBase.h.

51 { return m_helpername; }

◆ initDialog() [1/2]

void VP1Controller::initDialog ( QWidget *  dialog,
QPushButton *  launchbutton,
QPushButton *  closebutton,
QAbstractButton *  enabledButton = 0 
)
protectedinherited

Definition at line 123 of file VP1Controller.cxx.

124 {
125  QString txt(enabledButton?enabledButton->text():launchButton->text());
126  txt.replace("&&","&");
127  dialog->setWindowTitle(txt+" ["+systemBase()->name()+"]");
128  dialog->setWindowIcon(QIcon(QString(":/vp1/icons/icons/3d_32x32.png")));
129  launchButton->setMaximumHeight(static_cast<int>(0.5+QFontMetricsF(launchButton->font()).height()*1.05+2));
130  launchButton->setMinimumHeight(launchButton->maximumHeight());
131  launchButton->setCheckable(true);
132 
133  QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
134  sizePolicy.setHorizontalStretch(0);
135  sizePolicy.setVerticalStretch(0);
136  sizePolicy.setHeightForWidth(launchButton->sizePolicy().hasHeightForWidth());
137  launchButton->setSizePolicy(sizePolicy);
138  launchButton->setFocusPolicy(Qt::NoFocus);
139 
140  if (enabledButton)
141  launchButton->setEnabled(enabledButton->isChecked());
142 
143  m_d->dialogs << new Imp::DialogInfo(launchButton,dialog,enabledButton);
144 
145  connect(launchButton,SIGNAL(clicked()),this,SLOT(toggleDialogState()));
146  if (enabledButton)
147  connect(enabledButton,SIGNAL(toggled(bool)),this,SLOT(enabledButtonStateChanged()));
148  CloseEventEater* closeEventEater = new CloseEventEater(this);
149  dialog->installEventFilter(closeEventEater);
150 
151  if(closeButton) {
152  closeButton->setText("&Close");
153  closeButton->setToolTip("Close this dialog [Esc]");
154  connect(closeButton,SIGNAL(clicked()),dialog,SLOT(close()));
155  }
156  connect(new QShortcut(QKeySequence(Qt::Key_Escape), dialog),SIGNAL(activated()),dialog,SLOT(close()));
157 
158  //To avoid an extra call in the code we do this a few times more than necessary (fixme: put in initLastVars!!):
159  int maxwidth(0);
160  for (Imp::DialogInfo* di : m_d->dialogs)
161  maxwidth = std::max(maxwidth,di->launchButton->sizeHint().width());
162  for (Imp::DialogInfo* di : m_d->dialogs)
163  di->launchButton->setMinimumWidth(maxwidth);
164 }

◆ initDialog() [2/2]

template<class T >
void VP1Controller::initDialog ( T &  theUI,
QPushButton *  launchbutton,
QAbstractButton *  enabledButton = 0 
)
protectedinherited

Definition at line 144 of file VP1Controller.h.

144  {
145  QWidget * w = new QWidget(0,Qt::WindowStaysOnTopHint);
146  theUI.setupUi(w);
147  initDialog(w, launchbutton, theUI.pushButton_close,enabledButton);
148 }

◆ initLastVars()

void VP1Controller::initLastVars ( )
inherited

Definition at line 68 of file VP1Controller.cxx.

69 {
70  m_initVarsMode = true;
72  m_initVarsMode = false;
73 }

◆ initVarsMode()

bool VP1Controller::initVarsMode ( ) const
inlineprotectedinherited

Definition at line 97 of file VP1Controller.h.

97 { return m_initVarsMode; }

◆ lucidMinQDC()

unsigned VP1RawDataSysController::lucidMinQDC ( ) const

Definition at line 268 of file VP1RawDataSysController.cxx.

269 {
270  return m_d->ui_cuts.spinBox_lucid_qdc_min->value();
271 }

◆ lucidMinQDCChanged

void VP1RawDataSysController::lucidMinQDCChanged ( unsigned  )
signal

◆ message() [1/3]

void VP1HelperClassBase::message ( const QString &  str) const
inherited

Definition at line 49 of file VP1HelperClassBase.cxx.

50 {
51  if (m_helpername.isEmpty()) {
52  if (m_system)
54  else
55  std::cout<<VP1Msg::prefix_msg()<<" [nameless helper class]: "<<str.toStdString()<<std::endl;
56  } else {
57  if (m_system)
58  m_system->message("["+m_helpername+"] " + str);
59  else
60  std::cout<<VP1Msg::prefix_msg()<<" ["<<m_helpername.toStdString()<<"]: "<<str.toStdString()<<std::endl;
61  }
62 }

◆ message() [2/3]

void VP1HelperClassBase::message ( const QString &  addtostart,
const QStringList &  l,
const QString &  addtoend = "" 
) const
inherited

Definition at line 131 of file VP1HelperClassBase.cxx.

132 {
133  if (addtostart.isEmpty()) {
134  message(l,addtoend);
135  return;
136  }
137  if (addtoend.isEmpty()) {
138  for (const QString& s : l)
139  message(addtostart+s);
140  } else {
141  for (const QString& s : l)
142  message(addtostart+s+addtoend);
143  }
144 }

◆ message() [3/3]

void VP1HelperClassBase::message ( const QStringList &  l,
const QString &  addtoend = "" 
) const
inherited

Definition at line 91 of file VP1HelperClassBase.cxx.

92 {
93  if (addtoend.isEmpty()) {
94  for (const QString& s : l)
95  message(s);
96  } else {
97  for (const QString& s : l)
98  message(s+addtoend);
99  }
100 }

◆ messageDebug() [1/3]

void VP1HelperClassBase::messageDebug ( const QString &  str) const
inherited

Definition at line 65 of file VP1HelperClassBase.cxx.

66 {
67  if (!VP1Msg::debug())
68  return;
69  std::string sysstring(m_system ? " in "+m_system->name().toStdString() : std::string(""));
70  if (m_helpername.isEmpty()) {
71  std::cout<<VP1Msg::prefix_debug()<<" [helper"<<sysstring<<"]: "<<str.toStdString()<<std::endl;
72  } else {
73  std::cout<<VP1Msg::prefix_debug()<<" ["<<m_helpername.toStdString()<<sysstring<<"]: "<<str.toStdString()<<std::endl;
74  }
75 }

◆ messageDebug() [2/3]

void VP1HelperClassBase::messageDebug ( const QString &  addtostart,
const QStringList &  l,
const QString &  addtoend = "" 
) const
inherited

Definition at line 147 of file VP1HelperClassBase.cxx.

148 {
149  if (!VP1Msg::debug())
150  return;
151  if (addtostart.isEmpty()) {
152  messageDebug(l,addtoend);
153  return;
154  }
155  if (addtoend.isEmpty()) {
156  for (const QString& s : l)
157  messageDebug(addtostart+s);
158  } else {
159  for (const QString& s : l)
160  messageDebug(addtostart+s+addtoend);
161  }
162 }

◆ messageDebug() [3/3]

void VP1HelperClassBase::messageDebug ( const QStringList &  l,
const QString &  addtoend = "" 
) const
inherited

Definition at line 103 of file VP1HelperClassBase.cxx.

104 {
105  if (!VP1Msg::debug())
106  return;
107  if (addtoend.isEmpty()) {
108  for (const QString& s : l)
109  messageDebug(s);
110  } else {
111  for (const QString& s : l)
112  messageDebug(s+addtoend);
113  }
114 }

◆ messageVerbose() [1/3]

void VP1HelperClassBase::messageVerbose ( const QString &  str) const
inherited

Definition at line 78 of file VP1HelperClassBase.cxx.

79 {
80  if (!VP1Msg::verbose())
81  return;
82  std::string sysstring(m_system ? " in "+m_system->name().toStdString() : std::string(""));
83  if (m_helpername.isEmpty()) {
84  std::cout<<VP1Msg::prefix_verbose()<<" [helper"<<sysstring<<"]: "<<str.toStdString()<<std::endl;
85  } else {
86  std::cout<<VP1Msg::prefix_verbose()<<" ["<<m_helpername.toStdString()<<sysstring<<"]: "<<str.toStdString()<<std::endl;
87  }
88 }

◆ messageVerbose() [2/3]

void VP1HelperClassBase::messageVerbose ( const QString &  addtostart,
const QStringList &  l,
const QString &  addtoend = "" 
) const
inherited

Definition at line 165 of file VP1HelperClassBase.cxx.

166 {
167  if (!VP1Msg::verbose())
168  return;
169  if (addtostart.isEmpty()) {
170  messageVerbose(l,addtoend);
171  return;
172  }
173  if (addtoend.isEmpty()) {
174  for (const QString& s : l)
175  messageVerbose(addtostart+s);
176  } else {
177  for (const QString& s : l)
178  messageVerbose(addtostart+s+addtoend);
179  }
180 }

◆ messageVerbose() [3/3]

void VP1HelperClassBase::messageVerbose ( const QStringList &  l,
const QString &  addtoend = "" 
) const
inherited

Definition at line 117 of file VP1HelperClassBase.cxx.

118 {
119  if (!VP1Msg::verbose())
120  return;
121  if (addtoend.isEmpty()) {
122  for (const QString& s : l)
123  messageVerbose(s);
124  } else {
125  for (const QString& s : l)
126  messageVerbose(s+addtoend);
127  }
128 }

◆ possibleChange_cutAllowedEta

void VP1RawDataSysController::possibleChange_cutAllowedEta ( )
privateslot

◆ possibleChange_cutAllowedPhi

void VP1RawDataSysController::possibleChange_cutAllowedPhi ( )
privateslot

◆ possibleChange_enabledInDetParts

void VP1RawDataSysController::possibleChange_enabledInDetParts ( )
privateslot

◆ possibleChange_lucidMinQDC

void VP1RawDataSysController::possibleChange_lucidMinQDC ( )
privateslot

◆ possibleChange_showVolumeOutLines

void VP1RawDataSysController::possibleChange_showVolumeOutLines ( )
privateslot

◆ possibleChange_trtAllowedToT

void VP1RawDataSysController::possibleChange_trtAllowedToT ( )
privateslot

◆ possibleChange_trtRequireHT

void VP1RawDataSysController::possibleChange_trtRequireHT ( )
privateslot

◆ possibleChange_useSpecialBCMHighAttMaterial

void VP1RawDataSysController::possibleChange_useSpecialBCMHighAttMaterial ( )
privateslot

◆ possibleChange_useSpecialTRTHTMaterial

void VP1RawDataSysController::possibleChange_useSpecialTRTHTMaterial ( )
privateslot

◆ printInfoOnClick()

bool VP1RawDataSysController::printInfoOnClick ( ) const

Definition at line 204 of file VP1RawDataSysController.cxx.

204 { return m_d->ui_int.checkBox_printinfo->isChecked(); }

◆ printVerboseInfoOnClick()

bool VP1RawDataSysController::printVerboseInfoOnClick ( ) const

Definition at line 205 of file VP1RawDataSysController.cxx.

205 { return m_d->ui_int.checkBox_printinfo_verbose->isChecked(); }

◆ restoreSettings()

void VP1Controller::restoreSettings ( const QByteArray &  ba)
inherited

Definition at line 387 of file VP1Controller.cxx.

388 {
389  messageDebug("VP1Controller::restoreSettings()");
390 
393 
394  //warn unrestored:
395  if (m_d->collWidget)
396  s.ignoreWidget(m_d->collWidget);
397  s.warnUnrestored((QWidget*)(this));
398  for (Imp::DialogInfo* di : m_d->dialogs)
399  s.warnUnrestored(di->dialogWidget);
400 
401  QTimer::singleShot(0, this, SLOT(testForChanges()));
402 }

◆ saveSettings()

QByteArray VP1Controller::saveSettings ( ) const
inherited

Definition at line 405 of file VP1Controller.cxx.

406 {
407  messageDebug("VP1Controller::saveSettings()");
408 
410 
411  messageDebug("calling actualSaveSettings()...");
413 
414  //Warn unsaved:
415  if (m_d->collWidget)
416  s.ignoreWidget(m_d->collWidget);
417 
418  s.warnUnsaved((QWidget*)(this));
419  for (Imp::DialogInfo* di : m_d->dialogs)
420  s.warnUnsaved(di->dialogWidget);
421 
422  return s.result();
423 
424 }

◆ setCustomTourEditor()

static void VP1Controller::setCustomTourEditor ( VP1CustomTourEditor editor)
inlinestaticinherited

Definition at line 60 of file VP1Controller.h.

60 { m_customTourEditor=editor;}

◆ setHelperClassName()

void VP1HelperClassBase::setHelperClassName ( const QString &  n)
inlineprotectedinherited

Definition at line 59 of file VP1HelperClassBase.h.

59 { m_helpername = n; }

◆ setSystemBasePointer()

void VP1HelperClassBase::setSystemBasePointer ( IVP1System sys)
inherited

Definition at line 197 of file VP1HelperClassBase.cxx.

198 {
199  m_system = sys;
200  if (VP1Msg::verbose()){
201  vp1helperclassbase_instanceMap[this] = (m_system?m_system->name():QString(""));
202  }
203 }

◆ setupCollWidgetInScrollArea()

void VP1Controller::setupCollWidgetInScrollArea ( QScrollArea *  scrollarea,
VP1CollectionWidget collWidget 
)
protectedinherited

Definition at line 255 of file VP1Controller.cxx.

256 {
257  if (!scrollarea || !collWidget) {
258  message("ERROR: NULL scrollarea or collWidget");
259  return;
260  }
261  QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
262  sizePolicy.setHorizontalStretch(0);
263  sizePolicy.setVerticalStretch(scrollarea->sizePolicy().verticalStretch());
264  sizePolicy.setHeightForWidth(scrollarea->sizePolicy().hasHeightForWidth());
265  scrollarea->setSizePolicy(sizePolicy);
266 
267  collWidget->setContentsMargins(0,0,0,0);
268  if (!collWidget->children().isEmpty()&&collWidget->children().at(0)->isWidgetType()) {
269  static_cast<QWidget*>(collWidget->children().at(0))->setContentsMargins(0,0,0,0);
270  }
271  scrollarea->setContentsMargins(0,0,0,0);
272 
273  scrollarea->setWidgetResizable(true);
274  scrollarea->setFrameShape(QFrame::NoFrame);
275  scrollarea->setFrameShadow(QFrame::Plain);
276  collWidget->setParent(scrollarea);
277  scrollarea->setWidget(collWidget);
278  scrollarea->viewport()->setContentsMargins(0,0,0,0);
279  scrollarea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
280  collWidget->setObjectName(objectName()+"_CollWidget");
281  scrollarea->setObjectName(objectName()+"_CollWidgetScrollArea");
282  m_d->collWidget = collWidget;
283  connect(collWidget,SIGNAL(visibleContentsChanged()),this,SLOT(collWidgetContentChanged()));
284 }

◆ showVolumeOutLines()

bool VP1RawDataSysController::showVolumeOutLines ( ) const

Definition at line 221 of file VP1RawDataSysController.cxx.

222 {
223  return m_d->ui_display.checkBox_showVolumeOutLines->isChecked();
224 }

◆ showVolumeOutLinesChanged

void VP1RawDataSysController::showVolumeOutLinesChanged ( bool  )
signal

◆ str() [1/30]

static QString VP1String::str ( const Amg::Vector3D t)
inlinestaticinherited

Definition at line 98 of file VP1String.h.

98 { return "("+str(t.x())+", "+str(t.y())+", "+str(t.z())+")"; }

◆ str() [2/30]

static QString VP1String::str ( const bool  b)
inlinestaticinherited

Definition at line 53 of file VP1String.h.

53 { return b?"True":"False"; }

◆ str() [3/30]

static QString VP1String::str ( const char *  c)
inlinestaticinherited

Definition at line 50 of file VP1String.h.

50 { return c; }

◆ str() [4/30]

static QString VP1String::str ( const double &  d)
inlinestaticinherited

Definition at line 81 of file VP1String.h.

81 { return QString::number(d); }

◆ str() [5/30]

static QString VP1String::str ( const float &  f)
inlinestaticinherited

Definition at line 82 of file VP1String.h.

82 { return QString::number(f); }

◆ str() [6/30]

template<class T >
static QString VP1String::str ( const HepGeom::BasicVector3D< T > &  t)
inlinestaticinherited

Definition at line 95 of file VP1String.h.

95 { return "("+str(t.x())+", "+str(t.y())+", "+str(t.z())+")"; }

◆ str() [7/30]

QString VP1String::str ( const QColor &  c)
staticinherited

Definition at line 30 of file VP1String.cxx.

31 {
32  return c.isValid() ? c.name() : "Invalid";
33 }

◆ str() [8/30]

template<class T >
static QString VP1String::str ( const QFlags< T > &  f)
inlinestaticinherited

Definition at line 91 of file VP1String.h.

91 { return "0x"+QString::number(f, 16).toUpper().rightJustified(8,'0'); }

◆ str() [9/30]

template<class T >
static QString VP1String::str ( const QList< T > &  t)
inlinestaticinherited

Definition at line 102 of file VP1String.h.

102 { return "QList of size"+QString::number(t.size()); }

◆ str() [10/30]

static QString VP1String::str ( const QString &  s)
inlinestaticinherited

Definition at line 49 of file VP1String.h.

49 { return s; }

◆ str() [11/30]

QString VP1String::str ( const SbColor &  c)
staticinherited

Definition at line 36 of file VP1String.cxx.

37 {
39 }

◆ str() [12/30]

QString VP1String::str ( const SbVec2d &  v)
staticinherited

Definition at line 61 of file VP1String.cxx.

61 { double x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [13/30]

QString VP1String::str ( const SbVec2f &  v)
staticinherited

Definition at line 62 of file VP1String.cxx.

62 { float x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [14/30]

QString VP1String::str ( const SbVec2s &  v)
staticinherited

Definition at line 63 of file VP1String.cxx.

63 { short x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [15/30]

QString VP1String::str ( const SbVec3d &  v)
staticinherited

Definition at line 64 of file VP1String.cxx.

64 { double x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [16/30]

QString VP1String::str ( const SbVec3f &  v)
staticinherited

Definition at line 65 of file VP1String.cxx.

65 { float x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [17/30]

QString VP1String::str ( const SbVec3s &  v)
staticinherited

Definition at line 66 of file VP1String.cxx.

66 { short x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [18/30]

QString VP1String::str ( const SbVec4d &  v)
staticinherited

Definition at line 67 of file VP1String.cxx.

67 { double x,y,z,t; v.getValue(x,y,z,t); return "("+str(x)+", "+str(y)+", "+str(z)+", "+str(t)+")"; }

◆ str() [19/30]

QString VP1String::str ( const SbVec4f &  v)
staticinherited

Definition at line 68 of file VP1String.cxx.

68 { float x,y,z,t; v.getValue(x,y,z,t); return "("+str(x)+", "+str(y)+", "+str(z)+", "+str(t)+")"; }

◆ str() [20/30]

template<class T >
static QString VP1String::str ( const T *  t)
inlinestaticinherited

Definition at line 87 of file VP1String.h.

87 { return str(static_cast<const void* >(t)); }

◆ str() [21/30]

QString VP1String::str ( const void *  p)
staticinherited

Definition at line 48 of file VP1String.cxx.

49 {
50  if (p) {
51  std::ostringstream s;
52  s << p;
53  // Explicitly naming QString here avoids a cppcheck warning.
54  return QString (s.str().c_str());
55  } else {
56  return "NULL";
57  }
58 }

◆ str() [22/30]

QString VP1String::str ( const VP1Interval i)
staticinherited

Definition at line 42 of file VP1String.cxx.

43 {
44  return i.toString();
45 }

◆ str() [23/30]

static QString VP1String::str ( int  n)
inlinestaticinherited

Definition at line 77 of file VP1String.h.

77 { return QString::number(n); }

◆ str() [24/30]

static QString VP1String::str ( long  n)
inlinestaticinherited

Definition at line 75 of file VP1String.h.

75 { return QString::number(n); }

◆ str() [25/30]

static QString VP1String::str ( qlonglong  n)
inlinestaticinherited

Definition at line 79 of file VP1String.h.

79 { return QString::number(n); }

◆ str() [26/30]

static QString VP1String::str ( qulonglong  n)
inlinestaticinherited

Definition at line 80 of file VP1String.h.

80 { return QString::number(n); }

◆ str() [27/30]

static QString VP1String::str ( short int  n)
inlinestaticinherited

Definition at line 73 of file VP1String.h.

73 { return QString::number(n); }

◆ str() [28/30]

static QString VP1String::str ( uint  n)
inlinestaticinherited

Definition at line 78 of file VP1String.h.

78 { return QString::number(n); }

◆ str() [29/30]

static QString VP1String::str ( ulong  n)
inlinestaticinherited

Definition at line 76 of file VP1String.h.

76 { return QString::number(n); }

◆ str() [30/30]

static QString VP1String::str ( unsigned short int  n)
inlinestaticinherited

Definition at line 74 of file VP1String.h.

74 { return QString::number(n); }

◆ systemBase()

IVP1System* VP1HelperClassBase::systemBase ( ) const
inlineinherited

Definition at line 50 of file VP1HelperClassBase.h.

50 { return m_system; }

◆ testForChanges

void VP1Controller::testForChanges ( )
inlineprotectedslotinherited

Definition at line 112 of file VP1Controller.h.

112 { dummyUpdateTrigger(); }

◆ toggleDialogState

void VP1Controller::toggleDialogState ( QObject *  widget = 0)
slotinherited

Definition at line 194 of file VP1Controller.cxx.

195 {
196  Imp::DialogInfo * di(0);
197  for (Imp::DialogInfo* di2 : m_d->dialogs) {
198  if (di2->launchButton==sender() || (widget && di2->dialogWidget==widget)) {
199  di = di2;
200  break;
201  }
202  }
203 
204  if (!di) {
205  message("ERROR: toggleDialogState() triggered with unrecognised sender() ="
206  +QString(sender()?sender()->objectName():"NULL"));
207  return;
208  }
209 
210  bool oldvis = di->dialogWidget->isVisible();
211 
212  if (oldvis&&di->dialogWidget->windowState()==Qt::WindowMinimized) {
213  di->dialogWidget->setWindowState(Qt::WindowNoState);
214  } else {
215  di->dialogWidget->setVisible(!oldvis);
216  if (!oldvis && di->neverShown) {
217  di->neverShown = false;
218  //do stuff
219  // QSize size(955, 717);
220  // size = size.expandedTo(VP1MainWindow->minimumSizeHint());
221  // di->dialogWidget->resize(di->dialogWidget->minimumSizeHint());
222  }
223  }
224 
225  //synchronise toggle button state (for example if this was called by CloseEventEater)
226  if (di->launchButton->isCheckable() && oldvis){
227  di->launchButton->setChecked(false);
228  }
229 }

◆ toString() [1/4]

QString VP1Controller::toString ( const bool &  par)
staticprotectedinherited

Definition at line 100 of file VP1Controller.cxx.

101 {
102  return par?"On":"Off";
103 }

◆ toString() [2/4]

QString VP1Controller::toString ( const QList< VP1Interval > &  l)
staticprotectedinherited

Definition at line 106 of file VP1Controller.cxx.

107 {
108  QString s;
109  for(int i=0;i<l.count();++i)
110  s+= l.at(i).toString()+(i==l.count()-1?"":", ");
111  return s;
112 }

◆ toString() [3/4]

template<class T >
QString VP1Controller::toString ( const T &  par)
staticprotectedinherited

Definition at line 138 of file VP1Controller.h.

139 {
140  return VP1String::str(par);
141 }

◆ toString() [4/4]

QString VP1Controller::toString ( SbColor4f  p)
staticprotectedinherited

Definition at line 115 of file VP1Controller.cxx.

116 {
117  float r, g, b, a;
118  p.getValue(r, g, b, a);
119  return "("+str(r)+", "+str(g)+", "+str(b)+", "+str(1-a)+")";
120 }

◆ trtAllowedToT()

VP1Interval VP1RawDataSysController::trtAllowedToT ( ) const

Definition at line 260 of file VP1RawDataSysController.cxx.

261 {
262  VP1Interval i( (m_d->ui_cuts.checkbox_cut_trt_TotMin->isChecked() ? (m_d->ui_cuts.spinBox_cut_trt_ToTMin->value()-0.5)*3.125*Gaudi::Units::nanosecond : -VP1Interval::inf() ),
263  (m_d->ui_cuts.checkbox_cut_trt_TotMax->isChecked() ? (m_d->ui_cuts.spinBox_cut_trt_ToTMax->value()+0.5)*3.125*Gaudi::Units::nanosecond : VP1Interval::inf() ) );
264  return i.lower()>i.upper() ? VP1Interval() : i;
265 }

◆ trtAllowedToTChanged

void VP1RawDataSysController::trtAllowedToTChanged ( const VP1Interval )
signal

◆ trtHTMaterial()

SoMaterial * VP1RawDataSysController::trtHTMaterial ( ) const

Definition at line 274 of file VP1RawDataSysController.cxx.

275 {
276  return getMaterial(m_d->ui_display.matButton_trtht);
277 }

◆ trtRequireHT()

bool VP1RawDataSysController::trtRequireHT ( ) const

Definition at line 254 of file VP1RawDataSysController.cxx.

255 {
256  return m_d->ui_cuts.checkbox_cut_trt_needHT->isChecked();
257 }

◆ trtRequireHTChanged

void VP1RawDataSysController::trtRequireHTChanged ( bool  )
signal

◆ useSpecialBCMHighAttMaterial()

bool VP1RawDataSysController::useSpecialBCMHighAttMaterial ( ) const

Definition at line 233 of file VP1RawDataSysController.cxx.

234 {
235  return m_d->ui_display.checkBox_bcmHighAttUseSpecialMat->isChecked();
236 }

◆ useSpecialBCMHighAttMaterialChanged

void VP1RawDataSysController::useSpecialBCMHighAttMaterialChanged ( bool  )
signal

◆ useSpecialTRTHTMaterial()

bool VP1RawDataSysController::useSpecialTRTHTMaterial ( ) const

Definition at line 227 of file VP1RawDataSysController.cxx.

228 {
229  return m_d->ui_display.checkBox_trtHTUseSpecialMat->isChecked();
230 }

◆ useSpecialTRTHTMaterialChanged

void VP1RawDataSysController::useSpecialTRTHTMaterialChanged ( bool  )
signal

◆ verbose()

static bool VP1HelperClassBase::verbose ( )
inlinestaticinherited

Definition at line 32 of file VP1HelperClassBase.h.

32 { return s_vp1verbose; } // Returns true if env var VP1_VERBOSE_OUTPUT=1

◆ warnUndeletedInstances()

void VP1HelperClassBase::warnUndeletedInstances ( )
staticinherited

Definition at line 183 of file VP1HelperClassBase.cxx.

184 {
185  if (vp1helperclassbase_instanceMap.empty())
186  return;
187  std::cout << "WARNING: Detected "<<vp1helperclassbase_instanceMap.size()<<" undeleted helper class instances:"<<std::endl;
188 
189  std::map<VP1HelperClassBase*,QString>::iterator it,itE(vp1helperclassbase_instanceMap.end());
190  for (it = vp1helperclassbase_instanceMap.begin();it!=itE;++it) {
191  std::cout << " ==> "<<it->first<<": "<<it->first->m_helpername.toStdString()
192  << (it->second.isEmpty()?QString(""):" (in system "+it->second+")").toStdString()<<std::endl;
193  }
194 }

◆ zoomOnClick()

bool VP1RawDataSysController::zoomOnClick ( ) const

Definition at line 206 of file VP1RawDataSysController.cxx.

206 { return m_d->ui_int.checkBox_zoom->isChecked(); }

Member Data Documentation

◆ m_customTourEditor

VP1CustomTourEditor * VP1Controller::m_customTourEditor =0
staticprivateinherited

Definition at line 125 of file VP1Controller.h.

◆ m_d

Imp* VP1RawDataSysController::m_d
private

Definition at line 87 of file VP1RawDataSysController.h.

◆ m_helpername

QString VP1HelperClassBase::m_helpername
privateinherited

Definition at line 67 of file VP1HelperClassBase.h.

◆ m_initVarsMode

bool VP1Controller::m_initVarsMode
privateinherited

Definition at line 129 of file VP1Controller.h.

◆ m_system

IVP1System* VP1HelperClassBase::m_system
privateinherited

Definition at line 68 of file VP1HelperClassBase.h.

◆ s_vp1verbose

const bool VP1HelperClassBase::s_vp1verbose = VP1QtUtils::environmentVariableIsOn("VP1_VERBOSE_OUTPUT")
staticprivateinherited

Definition at line 69 of file VP1HelperClassBase.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
VP1Controller::defineRadioButtonGroup
QButtonGroup * defineRadioButtonGroup(QRadioButton *rb0, QRadioButton *rb1, QRadioButton *rb2=0, QRadioButton *rb3=0, QRadioButton *rb4=0, QRadioButton *rb5=0, QRadioButton *rb6=0, QRadioButton *rb7=0, QRadioButton *rb8=0, QRadioButton *rb9=0)
Definition: VP1Controller.cxx:288
VP1RawDataSysController::possibleChange_cutAllowedEta
void possibleChange_cutAllowedEta()
VP1Controller::addUpdateSlot
const char * addUpdateSlot(const char *slot)
Definition: VP1Controller.cxx:318
beamspotman.r
def r
Definition: beamspotman.py:676
python.SystemOfUnits.second
int second
Definition: SystemOfUnits.py:120
VP1Controller::setupCollWidgetInScrollArea
void setupCollWidgetInScrollArea(QScrollArea *scrollarea, VP1CollectionWidget *collWidget)
Definition: VP1Controller.cxx:255
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
VP1RawDataFlags::EndCapPositive
@ EndCapPositive
Definition: VP1RawDataFlags.h:27
VP1Serialise
Definition: VP1Serialise.h:45
StandaloneBunchgroupHandler.bg
bg
Definition: StandaloneBunchgroupHandler.py:243
VP1Controller::Imp::lastUpdateSlot
const char * lastUpdateSlot
Definition: VP1Controller.cxx:49
VP1Controller::dummyUpdateTrigger
void dummyUpdateTrigger()
python.SystemOfUnits.nanosecond
int nanosecond
Definition: SystemOfUnits.py:119
VP1Controller::VP1Controller
VP1Controller(IVP1System *sys, const QString &classname)
Definition: VP1Controller.cxx:76
WriteCellNoiseToCool.rb
rb
Definition: WriteCellNoiseToCool.py:229
hist_file_dump.d
d
Definition: hist_file_dump.py:137
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
VP1HelperClassBase::m_helpername
QString m_helpername
Definition: VP1HelperClassBase.h:67
VP1RawDataSysController::possibleChange_lucidMinQDC
void possibleChange_lucidMinQDC()
VP1HelperClassBase::messageVerbose
void messageVerbose(const QString &) const
Definition: VP1HelperClassBase.cxx:78
VP1Controller::fallBackMaterial
SoMaterial * fallBackMaterial() const
Definition: VP1Controller.cxx:427
VP1HelperClassBase::s_vp1verbose
static const bool s_vp1verbose
Definition: VP1HelperClassBase.h:69
fillPileUpNoiseLumi.connect
string connect
Definition: fillPileUpNoiseLumi.py:70
VP1Controller::initDialog
void initDialog(T &theUI, QPushButton *launchbutton, QAbstractButton *enabledButton=0)
Definition: VP1Controller.h:144
VP1Controller::Imp::collWidget
VP1CollectionWidget * collWidget
Definition: VP1Controller.cxx:50
skel.it
it
Definition: skel.GENtoEVGEN.py:396
VP1Controller::actualSaveSettings
virtual void actualSaveSettings(VP1Serialise &) const =0
VP1Msg::debug
static bool debug()
Definition: VP1Msg.h:32
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
VP1RawDataSysController::possibleChange_trtRequireHT
void possibleChange_trtRequireHT()
VP1HelperClassBase::m_system
IVP1System * m_system
Definition: VP1HelperClassBase.h:68
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
x
#define x
VP1String::str
static QString str(const QString &s)
Definition: VP1String.h:49
VP1HelperClassBase::messageDebug
void messageDebug(const QString &) const
Definition: VP1HelperClassBase.cxx:65
VP1Controller::connectToLastUpdateSlot
void connectToLastUpdateSlot(QObject *sender, const char *signal)
Definition: VP1Controller.cxx:327
VP1RawDataSysController::Imp::ui
Ui::VP1RawDataControllerForm ui
Definition: VP1RawDataSysController.cxx:34
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
TruthTest.itE
itE
Definition: TruthTest.py:25
VP1Controller::initVarsMode
bool initVarsMode() const
Definition: VP1Controller.h:97
Cut::signal
@ signal
Definition: SUSYToolsAlg.cxx:67
VP1RawDataSysController::possibleChange_enabledInDetParts
void possibleChange_enabledInDetParts()
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
VP1Msg::prefix_msg
static const char * prefix_msg()
Definition: VP1Msg.h:56
VP1RawDataSysController::Imp::ui_int
Ui::RawDataSysSettingsInteractionsForm ui_int
Definition: VP1RawDataSysController.cxx:36
lumiFormat.i
int i
Definition: lumiFormat.py:85
VP1RawDataSysController::Imp::ui_display
Ui::RawDataSysSettingsDisplayForm ui_display
Definition: VP1RawDataSysController.cxx:37
z
#define z
VP1Controller::Imp::fallBackMaterial
SoMaterial * fallBackMaterial
Definition: VP1Controller.cxx:64
VP1Interval::inf
static double inf()
Definition: VP1Interval.h:25
python.CaloCondTools.g
g
Definition: CaloCondTools.py:15
beamspotman.n
n
Definition: beamspotman.py:731
VP1RawDataSysController::possibleChange_cutAllowedPhi
void possibleChange_cutAllowedPhi()
VP1Controller::m_d
Imp * m_d
Definition: VP1Controller.h:127
VP1RawDataSysController::possibleChange_useSpecialBCMHighAttMaterial
void possibleChange_useSpecialBCMHighAttMaterial()
VP1Controller::m_initVarsMode
bool m_initVarsMode
Definition: VP1Controller.h:129
IVP1System::name
const QString & name() const
Definition: IVP1System.cxx:50
hist_file_dump.f
f
Definition: hist_file_dump.py:135
VP1CollectionWidget::appropriateFixedWidth
int appropriateFixedWidth() const
Definition: VP1CollectionWidget.cxx:276
VP1Deserialise
Definition: VP1Deserialise.h:44
CloseEventEater
Definition: CloseEventEater.h:12
VP1RawDataSysController::Imp::ui_cuts
Ui::RawDataSysSettingsCutsForm ui_cuts
Definition: VP1RawDataSysController.cxx:35
VP1QtInventorUtils::sbcol2qcol
static QColor sbcol2qcol(const SbColor &)
Definition: VP1QtInventorUtils.cxx:1142
keylayer_zslicemap.sb
sb
Definition: keylayer_zslicemap.py:192
VP1HelperClassBase::systemBase
IVP1System * systemBase() const
Definition: VP1HelperClassBase.h:50
python.selection.number
number
Definition: selection.py:20
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
VP1MaterialButton::createMaterial
static SoMaterial * createMaterial(const QColor &, const double &brightness=0.0, const double &transp=0.0)
Definition: VP1MaterialButton.cxx:786
VP1RawDataSysController::m_d
Imp * m_d
Definition: VP1RawDataSysController.h:86
VP1Controller::getMaterial
SoMaterial * getMaterial(VP1MaterialButton *) const
Definition: VP1Controller.cxx:437
VP1Msg::prefix_debug
static const char * prefix_debug()
Definition: VP1Msg.h:57
VP1Controller::Imp::dialogs
QList< DialogInfo * > dialogs
Definition: VP1Controller.cxx:62
VP1Controller::actualRestoreSettings
virtual void actualRestoreSettings(VP1Deserialise &)=0
python.PyAthena.v
v
Definition: PyAthena.py:154
VP1Msg::prefix_verbose
static const char * prefix_verbose()
Definition: VP1Msg.h:59
VP1Interval
Definition: VP1Interval.h:23
VP1RawDataSysController::Imp::collWidget
VP1CollectionWidget * collWidget
Definition: VP1RawDataSysController.cxx:38
a
TList * a
Definition: liststreamerinfos.cxx:10
y
#define y
VP1RawDataFlags::BarrelNegative
@ BarrelNegative
Definition: VP1RawDataFlags.h:26
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
VP1CollectionWidget
Definition: VP1CollectionWidget.h:32
VP1Controller::testForChanges
void testForChanges()
Definition: VP1Controller.h:112
TRT_PAI_physicsConstants::mb
const double mb
1mb to cm2
Definition: TRT_PAI_physicsConstants.h:15
VP1Controller::collWidgetContentChanged
void collWidgetContentChanged()
Definition: VP1Controller.cxx:232
VP1Controller::enabledButtonStateChanged
void enabledButtonStateChanged()
Definition: VP1Controller.cxx:167
VP1RawDataSysController::possibleChange_showVolumeOutLines
void possibleChange_showVolumeOutLines()
VP1RawDataFlags::BarrelPositive
@ BarrelPositive
Definition: VP1RawDataFlags.h:25
VP1HelperClassBase::message
void message(const QString &) const
Definition: VP1HelperClassBase.cxx:49
VP1RawDataSysController::possibleChange_useSpecialTRTHTMaterial
void possibleChange_useSpecialTRTHTMaterial()
str
Definition: BTagTrackIpAccessor.cxx:11
VP1Msg::verbose
static bool verbose()
Definition: VP1Msg.h:31
VP1RawDataFlags::EndCapNegative
@ EndCapNegative
Definition: VP1RawDataFlags.h:28
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
VP1Controller::toggleDialogState
void toggleDialogState(QObject *widget=0)
Definition: VP1Controller.cxx:194
python.compressB64.c
def c
Definition: compressB64.py:93
VP1Controller::initLastVars
void initLastVars()
Definition: VP1Controller.cxx:68
IVP1System::message
void message(const QString &) const
Definition: IVP1System.cxx:336
VP1Controller::m_customTourEditor
static VP1CustomTourEditor * m_customTourEditor
Definition: VP1Controller.h:125
VP1RawDataSysController::possibleChange_trtAllowedToT
void possibleChange_trtAllowedToT()
VP1Controller::currentSettingsVersion
virtual int currentSettingsVersion() const =0