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
GuideSysController Class Reference

#include <GuideSysController.h>

Inheritance diagram for GuideSysController:
Collaboration diagram for GuideSysController:

Classes

class  Imp
 

Public Slots

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

Signals

void showFloorChanged (bool)
 
void floorColourAndTranspChanged (const SbColor4f &)
 
void floorExtentChanged (const double &)
 
void floorSpacingChanged (const double &)
 
void floorHeightChanged (const double &)
 
void showLettersChanged (bool)
 
void showPeopleChanged (bool)
 
void peopleColourAndTranspChanged (const SbColor4f &)
 
void lettersZPosChanged (const double &)
 
void lettersVerticalPosChanged (const double &)
 
void peopleVerticalPosChanged (const double &)
 
void showAxesChanged (bool)
 
void axesLengthChanged (const double &)
 
void axesPositionChanged (const SbVec3f &)
 
void relAxesThicknessChanged (const double &)
 
void showCartesianGridChanged (bool)
 
void showCylindricalGridChanged (bool)
 
void gridColourAndTranspChanged (const SbColor4f &)
 
void gridSpacingChanged (const double &)
 
void gridExtentChanged (const double &)
 
void showEtaCone1Changed (bool)
 
void showEtaCone2Changed (bool)
 
void showEtaCone3Changed (bool)
 
void etaConeValue1Changed (const double &)
 
void etaConeValue2Changed (const double &)
 
void etaConeValue3Changed (const double &)
 
void etaExtentChanged (const double &)
 
void applicablePixelProjPartsChanged (InDetProjFlags::InDetProjPartsFlags)
 
void applicableSCTProjPartsChanged (InDetProjFlags::InDetProjPartsFlags)
 
void applicableTRTProjPartsChanged (InDetProjFlags::InDetProjPartsFlags)
 
void shownPixelProjSurfacesChanged (InDetProjFlags::InDetProjPartsFlags)
 
void shownSCTProjSurfacesChanged (InDetProjFlags::InDetProjPartsFlags)
 
void shownTRTProjSurfacesChanged (InDetProjFlags::InDetProjPartsFlags)
 
void showTrackingVolumesChanged (bool)
 
void showInnerDetectorChanged (bool)
 
void showCalorimetersChanged (bool)
 
void showMuonSpectrometerChanged (bool)
 
void showLinesChanged (bool)
 
void lineDirectionChanged (const SbVec3f &)
 
void dummyUpdateTrigger ()
 

Public Member Functions

 GuideSysController (IVP1System *sys)
 
virtual ~GuideSysController ()
 
void actualRestoreSettings (VP1Deserialise &)
 
int currentSettingsVersion () const
 
void actualSaveSettings (VP1Serialise &) const
 
SoMaterial * lettersMaterial () const
 
SoMaterial * peopleMaterial () const
 
SoMaterial * xAxisMaterial () const
 
SoMaterial * yAxisMaterial () const
 
SoMaterial * zAxisMaterial () const
 
SoMaterial * etaCone1Material () const
 
SoMaterial * etaCone2Material () const
 
SoMaterial * etaCone3Material () const
 
SoMaterial * pixelProjSurfMaterial () const
 
SoMaterial * sctProjSurfMaterial () const
 
SoMaterial * trtProjSurfMaterial () const
 
SoMaterial * idTrkVolumesMaterial () const
 
SoMaterial * caloTrkVolumesMaterial () const
 
SoMaterial * msTrkVolumesMaterial () const
 
bool showFloor () const
 
SbColor4f floorColourAndTransp () const
 
double floorExtent () const
 
double floorSpacing () const
 
double floorHeight () const
 
bool showLetters () const
 
double lettersZPos () const
 
double lettersVerticalPos () const
 
bool showPeople () const
 
SbColor4f peopleColourAndTransp () const
 
double peopleZPos () const
 
double peopleVerticalPos () const
 
bool showAxes () const
 
double axesLength () const
 
SbVec3f axesPosition () const
 
double relAxesThickness () const
 
bool showCartesianGrid () const
 
bool showCylindricalGrid () const
 
SbColor4f gridColourAndTransp () const
 
double gridSpacing () const
 
double gridExtent () const
 
bool showEtaCone1 () const
 
bool showEtaCone2 () const
 
bool showEtaCone3 () const
 
double etaConeValue1 () const
 
double etaConeValue2 () const
 
double etaConeValue3 () const
 
double etaExtent () const
 
bool showTrackingVolumes () const
 
bool showInnerDetector () const
 
bool showCalorimeters () const
 
bool showMuonSpectrometer () const
 
bool showLines () const
 
double lineLength () const
 
SbVec3f lineDirection () const
 
InDetProjFlags::InDetProjPartsFlags applicablePixelProjParts () const
 
InDetProjFlags::InDetProjPartsFlags applicableSCTProjParts () const
 
InDetProjFlags::InDetProjPartsFlags applicableTRTProjParts () const
 
InDetProjFlags::InDetProjPartsFlags shownPixelProjSurfaces () const
 
InDetProjFlags::InDetProjPartsFlags shownSCTProjSurfaces () const
 
InDetProjFlags::InDetProjPartsFlags shownTRTProjSurfaces () const
 
void setInDetDetTypesUsingProjections (InDetProjFlags::DetTypeFlags)
 
void initLastVars ()
 
QByteArray saveSettings () const
 
void restoreSettings (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
 
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 (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 updateProjPartsCheckboxStates_Pixel ()
 
void updateProjPartsCheckboxStates_SCT ()
 
void updateProjPartsCheckboxStates_TRT ()
 
void possibleChange_showFloor ()
 
void possibleChange_floorColourAndTransp ()
 
void possibleChange_floorExtent ()
 
void possibleChange_floorSpacing ()
 
void possibleChange_floorHeight ()
 
void possibleChange_showLetters ()
 
void possibleChange_showPeople ()
 
void possibleChange_peopleColourAndTransp ()
 
void possibleChange_lettersZPos ()
 
void possibleChange_lettersVerticalPos ()
 
void possibleChange_peopleVerticalPos ()
 
void possibleChange_showAxes ()
 
void possibleChange_axesLength ()
 
void possibleChange_axesPosition ()
 
void possibleChange_relAxesThickness ()
 
void possibleChange_showCartesianGrid ()
 
void possibleChange_showCylindricalGrid ()
 
void possibleChange_gridColourAndTransp ()
 
void possibleChange_gridSpacing ()
 
void possibleChange_gridExtent ()
 
void possibleChange_showEtaCone1 ()
 
void possibleChange_showEtaCone2 ()
 
void possibleChange_showEtaCone3 ()
 
void possibleChange_etaConeValue1 ()
 
void possibleChange_etaConeValue2 ()
 
void possibleChange_etaConeValue3 ()
 
void possibleChange_etaExtent ()
 
void possibleChange_applicablePixelProjParts ()
 
void possibleChange_applicableSCTProjParts ()
 
void possibleChange_applicableTRTProjParts ()
 
void possibleChange_shownPixelProjSurfaces ()
 
void possibleChange_shownSCTProjSurfaces ()
 
void possibleChange_shownTRTProjSurfaces ()
 
void possibleChange_showTrackingVolumes ()
 
void possibleChange_showInnerDetector ()
 
void possibleChange_showCalorimeters ()
 
void possibleChange_showMuonSpectrometer ()
 
void possibleChange_showLines ()
 
void possibleChange_lineDirection ()
 

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 31 of file GuideSysController.h.

Constructor & Destructor Documentation

◆ GuideSysController()

GuideSysController::GuideSysController ( IVP1System sys)

Definition at line 122 of file GuideSysController.cxx.

123  : VP1Controller(sys,"GuideSysController"), m_d(new Imp)
124 {
125  m_d->theclass = this;
126  m_d->ui.setupUi(this);
127 
128  initDialog(m_d->ui_axes, m_d->ui.pushButton_settings_coordinateAxes,m_d->ui.checkBox_coordinateAxes);
129  initDialog(m_d->ui_etacones, m_d->ui.pushButton_settings_etaCones,m_d->ui.checkBox_etaCones);
130  initDialog(m_d->ui_floorandletters, m_d->ui.pushButton_settings_floorAndLetters,m_d->ui.checkBox_floorAndLetters);
131  initDialog(m_d->ui_people, m_d->ui.pushButton_settings_people,m_d->ui.checkBox_people);
132  initDialog(m_d->ui_grid, m_d->ui.pushButton_settings_grid,m_d->ui.checkBox_grid);
133  initDialog(m_d->ui_idprojsurfs, m_d->ui.pushButton_settings_inDetProjSurfs,m_d->ui.checkBox_inDetProjSurfs);
134  initDialog(m_d->ui_trkvolumes, m_d->ui.pushButton_settings_trkVolumes,m_d->ui.checkBox_trkVolumes);
135  initDialog(m_d->ui_lines, m_d->ui.pushButton_settings_lines,m_d->ui.checkBox_lines);
136 
137  //Hide SCT/Pixel projection surface controls for now:
138  m_d->ui_idprojsurfs.groupBox_pixelproj->setVisible(false);
139  m_d->ui_idprojsurfs.groupBox_sctproj->setVisible(false);
140 
141  //Since we have different logical groups of radio buttons inside
142  //same groupboxes, we make sure they are coordinated correctly:
143 
144  QButtonGroup * pixelproj_barrel_radiogroup = defineRadioButtonGroup(m_d->ui_idprojsurfs.radioButton_pixelprojsurf_barrel_inner,
145  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_barrel_outer,
146  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_barrel_both);
147  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_barrel_inner->setChecked(true);
148  QButtonGroup * pixelproj_endcap_radiogroup = defineRadioButtonGroup(m_d->ui_idprojsurfs.radioButton_pixelprojsurf_endcap_inner,
149  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_endcap_outer,
150  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_endcap_both);
151  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_endcap_inner->setChecked(true);
152 
153 
154  QButtonGroup * sctproj_barrel_radiogroup = defineRadioButtonGroup(m_d->ui_idprojsurfs.radioButton_sctprojsurf_barrel_inner,
155  m_d->ui_idprojsurfs.radioButton_sctprojsurf_barrel_outer,
156  m_d->ui_idprojsurfs.radioButton_sctprojsurf_barrel_both);
157  m_d->ui_idprojsurfs.radioButton_sctprojsurf_barrel_inner->setChecked(true);
158  QButtonGroup * sctproj_endcap_radiogroup = defineRadioButtonGroup(m_d->ui_idprojsurfs.radioButton_sctprojsurf_endcap_inner,
159  m_d->ui_idprojsurfs.radioButton_sctprojsurf_endcap_outer,
160  m_d->ui_idprojsurfs.radioButton_sctprojsurf_endcap_both);
161  m_d->ui_idprojsurfs.radioButton_sctprojsurf_endcap_inner->setChecked(true);
162 
163 
164  QButtonGroup * trtproj_barrel_radiogroup = defineRadioButtonGroup(m_d->ui_idprojsurfs.radioButton_trtprojsurf_barrel_inner,
165  m_d->ui_idprojsurfs.radioButton_trtprojsurf_barrel_outer,
166  m_d->ui_idprojsurfs.radioButton_trtprojsurf_barrel_both);
167  m_d->ui_idprojsurfs.radioButton_trtprojsurf_barrel_inner->setChecked(true);
168  QButtonGroup * trtproj_endcap_radiogroup = defineRadioButtonGroup(m_d->ui_idprojsurfs.radioButton_trtprojsurf_endcap_inner,
169  m_d->ui_idprojsurfs.radioButton_trtprojsurf_endcap_outer,
170  m_d->ui_idprojsurfs.radioButton_trtprojsurf_endcap_both);
171  m_d->ui_idprojsurfs.radioButton_trtprojsurf_endcap_inner->setChecked(true);
172 
173  //Setup material buttons:
174  m_d->ui_floorandletters.colorButton_floor->setColor(QColor::fromRgbF(0.5,0.5,0.5));
175  m_d->ui_people.colorButton_people->setColor(QColor::fromRgbF(0.5,0.5,0.5));
176  m_d->ui_grid.colorButton_grid->setColor(QColor::fromRgbF(1.0,1.0,1.0));
177  m_d->ui_floorandletters.matButton_letters->setMaterial(VP1MaterialButton::createMaterial(0.5,0.5,0.5,0.1));
178  m_d->ui_people.matButton_people->setMaterial(VP1MaterialButton::createMaterial(0.5,0.5,0.5,0.1));
179  m_d->ui_axes.matButton_axes_x->setMaterial(VP1MaterialButton::createMaterial(1,0,0,0.15));
180  m_d->ui_axes.matButton_axes_y->setMaterial(VP1MaterialButton::createMaterial(0,1,0,0.15));
181  m_d->ui_axes.matButton_axes_z->setMaterial(VP1MaterialButton::createMaterial(0,0,2,0.15));
182  m_d->ui_etacones.matButton_etaCone1->setMaterial(VP1MaterialButton::createMaterial(1,1,0,0.2,0.5));
183  m_d->ui_etacones.matButton_etaCone2->setMaterial(VP1MaterialButton::createMaterial(1,0.56471,0.20784,0.2,0.5));
184  m_d->ui_etacones.matButton_etaCone3->setMaterial(VP1MaterialButton::createMaterial(1,0.15686,0.08235,0.2,0.5));
185  m_d->ui_idprojsurfs.pushButton_projsurfmaterial_pixel->setMaterial(VP1MaterialButton::createMaterial(126/255.0, 194/255.0, 204/255.0,0.05,0.35));
186  m_d->ui_idprojsurfs.pushButton_projsurfmaterial_sct->setMaterial(VP1MaterialButton::createMaterial(126/255.0, 194/255.0, 204/255.0,0.05,0.35));
187  m_d->ui_idprojsurfs.pushButton_projsurfmaterial_trt->setMaterial(VP1MaterialButton::createMaterial(126/255.0, 194/255.0, 204/255.0,0.05,0.35));
188  m_d->ui_trkvolumes.matButton_ID->setMaterial(VP1MaterialButton::createMaterial(1,0,0,0.15));
189  m_d->ui_trkvolumes.matButton_Calo->setMaterial(VP1MaterialButton::createMaterial(0,1,0,0.15));
190  m_d->ui_trkvolumes.matButton_MS->setMaterial(VP1MaterialButton::createMaterial(0,0,2,0.15));
191 
193  // Setup connections which monitor changes in the controller so that we may emit signals as appropriate: //
195 
196  // === Floor and Letters ===
198  connectToLastUpdateSlot(m_d->ui.checkBox_floorAndLetters);
199  connectToLastUpdateSlot(m_d->ui_floorandletters.checkBox_floorenabled);
200 
202  connectToLastUpdateSlot(m_d->ui_floorandletters.colorButton_floor);
203  connectToLastUpdateSlot(m_d->ui_floorandletters.spinBox_floortransp);
204 
206  connectToLastUpdateSlot(m_d->ui_floorandletters.doubleSpinBox_floorextent);
207 
209  connectToLastUpdateSlot(m_d->ui_floorandletters.doubleSpinBox_floorspacing);
210 
212  connectToLastUpdateSlot(m_d->ui_floorandletters.doubleSpinBox_floorheight);
213 
215  connectToLastUpdateSlot(m_d->ui.checkBox_floorAndLetters);
216  connectToLastUpdateSlot(m_d->ui_floorandletters.checkBox_acdesignations);
217 
219  connectToLastUpdateSlot(this,SIGNAL(floorExtentChanged(const double&)));
220  connectToLastUpdateSlot(this,SIGNAL(floorSpacingChanged(const double&)));
221 
223  connectToLastUpdateSlot(this,SIGNAL(floorHeightChanged(const double&)));
224 
225  // === People ===
227  connectToLastUpdateSlot(m_d->ui.checkBox_people);
228  connectToLastUpdateSlot(m_d->ui_people.checkBox_peopleenabled);
229 
231  connectToLastUpdateSlot(m_d->ui_people.colorButton_people);
232  connectToLastUpdateSlot(m_d->ui_people.spinBox_peopletransp);
233 
234  // Commenting this out for the moment as it is not implemented and is causing connect warnings
235 
236  // addUpdateSlot(SLOT(possibleChange_peopleExtent()));
237  // connectToLastUpdateSlot(m_d->ui_people.doubleSpinBox_peopleextent);
238 
239  // addUpdateSlot(SLOT(possibleChange_peopleSpacing()));
240  // connectToLastUpdateSlot(m_d->ui_people.doubleSpinBox_peoplespacing);
241 
242  // addUpdateSlot(SLOT(possibleChange_peopleHeight()));
243  // connectToLastUpdateSlot(m_d->ui_people.doubleSpinBox_peopleheight);
244 
245  // addUpdateSlot(SLOT(possibleChange_peopleZPos()));
246  // connectToLastUpdateSlot(this,SIGNAL(peopleExtentChanged(const double&)));
247  // connectToLastUpdateSlot(this,SIGNAL(peopleSpacingChanged(const double&)));
248 
249  // addUpdateSlot(SLOT(possibleChange_peopleVerticalPos()));
250  // connectToLastUpdateSlot(this,SIGNAL(floorHeightChanged(const double&)));
251 
252  // === Axes ===
254  connectToLastUpdateSlot(m_d->ui.checkBox_coordinateAxes);
255 
257  connectToLastUpdateSlot(m_d->ui_axes.checkBox_axes_shownegativeparts);
258  connectToLastUpdateSlot(m_d->ui_axes.doubleSpinBox_axes_lengths_m);
259 
261  connectToLastUpdateSlot(m_d->ui_axes.doubleSpinBox_axes_xpos_m);
262  connectToLastUpdateSlot(m_d->ui_axes.doubleSpinBox_axes_ypos_m);
263  connectToLastUpdateSlot(m_d->ui_axes.doubleSpinBox_axes_zpos_m);
264 
266  connectToLastUpdateSlot(m_d->ui_axes.doubleSpinBox_axes_relthickness);
267 
269  connectToLastUpdateSlot(m_d->ui.checkBox_grid);
270  connectToLastUpdateSlot(m_d->ui_grid.radioButton_grid_cartesian);
271 
273  connectToLastUpdateSlot(m_d->ui.checkBox_grid);
274  connectToLastUpdateSlot(m_d->ui_grid.radioButton_grid_cylindrical);
275 
277  connectToLastUpdateSlot(m_d->ui_grid.colorButton_grid);
278  connectToLastUpdateSlot(m_d->ui_grid.spinBox_gridtransp);
279 
281  connectToLastUpdateSlot(m_d->ui_grid.doubleSpinBox_gridspacing);
282 
284  connectToLastUpdateSlot(m_d->ui_grid.doubleSpinBox_gridextent);
285 
287  connectToLastUpdateSlot(m_d->ui.checkBox_etaCones);
288  connectToLastUpdateSlot(m_d->ui_etacones.checkBox_etacone1);
289 
291  connectToLastUpdateSlot(m_d->ui.checkBox_etaCones);
292  connectToLastUpdateSlot(m_d->ui_etacones.checkBox_etacone2);
293 
295  connectToLastUpdateSlot(m_d->ui.checkBox_etaCones);
296  connectToLastUpdateSlot(m_d->ui_etacones.checkBox_etacone3);
297 
299  connectToLastUpdateSlot(m_d->ui_etacones.doubleSpinBox_etaval1);
300 
302  connectToLastUpdateSlot(m_d->ui_etacones.doubleSpinBox_etaval2);
303 
305  connectToLastUpdateSlot(m_d->ui_etacones.doubleSpinBox_etaval3);
306 
308  connectToLastUpdateSlot(m_d->ui_etacones.doubleSpinBox_etaconeextent);
309  connectToLastUpdateSlot(m_d->ui_etacones.radioButton_etaconeextentisr);
310 
312  connectToLastUpdateSlot(pixelproj_barrel_radiogroup);
313  connectToLastUpdateSlot(pixelproj_endcap_radiogroup);
314 
316  connectToLastUpdateSlot(sctproj_barrel_radiogroup);
317  connectToLastUpdateSlot(sctproj_endcap_radiogroup);
318 
320  connectToLastUpdateSlot(trtproj_barrel_radiogroup);
321  connectToLastUpdateSlot(trtproj_endcap_radiogroup);
322  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_trtprojsurf_z2r);
323 
325  connectToLastUpdateSlot(m_d->ui.checkBox_inDetProjSurfs);
326  connectToLastUpdateSlot(this,SIGNAL(applicablePixelProjPartsChanged(InDetProjFlags::InDetProjPartsFlags)));
327  connectToLastUpdateSlot(m_d->ui_idprojsurfs.groupBox_pixelproj);
328  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_asneeded);
329  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_barrelA);
330  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_barrelC);
331  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_endcapA);
332  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_endcapC);
333 
335  connectToLastUpdateSlot(m_d->ui.checkBox_inDetProjSurfs);
336  connectToLastUpdateSlot(this,SIGNAL(applicableSCTProjPartsChanged(InDetProjFlags::InDetProjPartsFlags)));
337  connectToLastUpdateSlot(m_d->ui_idprojsurfs.groupBox_sctproj);
338  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_asneeded);
339  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_barrelA);
340  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_barrelC);
341  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_endcapA);
342  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_endcapC);
343 
345  connectToLastUpdateSlot(m_d->ui.checkBox_inDetProjSurfs);
346  connectToLastUpdateSlot(this,SIGNAL(applicableTRTProjPartsChanged(InDetProjFlags::InDetProjPartsFlags)));
347  connectToLastUpdateSlot(m_d->ui_idprojsurfs.groupBox_trtproj);
348  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_asneeded);
349  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_barrelA);
350  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_barrelC);
351  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_endcapA);
352  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_endcapC);
353 
355  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_asneeded);
356 
358  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_asneeded);
359 
361  connectToLastUpdateSlot(m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_asneeded);
362 
364  connectToLastUpdateSlot(m_d->ui.checkBox_trkVolumes);
365 
369  connectToLastUpdateSlot(m_d->ui_trkvolumes.checkBox_Calo);
372 
374  connectToLastUpdateSlot(m_d->ui.checkBox_lines);
375 
377  connectToLastUpdateSlot(m_d->ui_lines.doubleSpinBox_phi);
378  connectToLastUpdateSlot(m_d->ui_lines.doubleSpinBox_theta);
379  connectToLastUpdateSlot(m_d->ui_lines.doubleSpinBox_eta);
380  connectToLastUpdateSlot(m_d->ui_lines.doubleSpinBox_length);
381 
382 
383  initLastVars();
384 }

◆ ~GuideSysController()

GuideSysController::~GuideSysController ( )
virtual

Definition at line 387 of file GuideSysController.cxx.

388 {
389  delete m_d;
390 }

Member Function Documentation

◆ actualRestoreSettings()

void GuideSysController::actualRestoreSettings ( VP1Deserialise s)
virtual

Implements VP1Controller.

Definition at line 972 of file GuideSysController.cxx.

973 {
974  if (s.version()<0||s.version()>2) {
975  message("Warning: State data in .vp1 file has unsupported version ("+str(s.version())+")");
976  return;
977  }
978 
979  if (s.version()==0)
980  s.ignoreInt();
981 
982  //Materials
983  s.restore(m_d->ui_floorandletters.matButton_letters);
984  s.restore(m_d->ui_axes.matButton_axes_x);
985  s.restore(m_d->ui_axes.matButton_axes_y);
986  s.restore(m_d->ui_axes.matButton_axes_z);
987  s.restore(m_d->ui_etacones.matButton_etaCone1);
988  s.restore(m_d->ui_etacones.matButton_etaCone2);
989  s.restore(m_d->ui_etacones.matButton_etaCone3);
990  s.restore(m_d->ui_idprojsurfs.pushButton_projsurfmaterial_pixel);
991  s.restore(m_d->ui_idprojsurfs.pushButton_projsurfmaterial_sct);
992  s.restore(m_d->ui_idprojsurfs.pushButton_projsurfmaterial_trt);
993 
994 
995  //Everything apart from projection surfaces:
996  s.restore(m_d->ui_grid.colorButton_grid);
997  s.restore(m_d->ui_grid.spinBox_gridtransp);
998  s.restore(m_d->ui_floorandletters.colorButton_floor);
999  s.restore(m_d->ui_floorandletters.spinBox_floortransp);
1000  s.restore(m_d->ui_floorandletters.doubleSpinBox_floorheight);
1001  s.restore(m_d->ui_floorandletters.checkBox_floorenabled);
1002  s.restore(m_d->ui_floorandletters.doubleSpinBox_floorspacing);
1003  s.restore(m_d->ui_floorandletters.doubleSpinBox_floorextent);
1004  s.restore(m_d->ui_floorandletters.checkBox_acdesignations);
1005  if (s.version()==0)
1006  s.ignoreBool();
1007  s.restore(m_d->ui_axes.checkBox_axes_shownegativeparts);
1008  s.restore(m_d->ui_axes.doubleSpinBox_axes_lengths_m);
1009  s.restore(m_d->ui_axes.doubleSpinBox_axes_relthickness);
1010  s.restore(m_d->ui_axes.doubleSpinBox_axes_xpos_m);
1011  s.restore(m_d->ui_axes.doubleSpinBox_axes_ypos_m);
1012  s.restore(m_d->ui_axes.doubleSpinBox_axes_zpos_m);
1013  s.restore(0/*backwards compat*/,m_d->ui_grid.radioButton_grid_cartesian,m_d->ui_grid.radioButton_grid_cylindrical);
1014  s.restore(m_d->ui_grid.doubleSpinBox_gridspacing);
1015  s.restore(m_d->ui_grid.doubleSpinBox_gridextent);
1016  s.restore(m_d->ui_etacones.checkBox_etacone1);
1017  s.restore(m_d->ui_etacones.doubleSpinBox_etaval1);
1018  s.restore(m_d->ui_etacones.checkBox_etacone2);
1019  s.restore(m_d->ui_etacones.doubleSpinBox_etaval2);
1020  s.restore(m_d->ui_etacones.checkBox_etacone3);
1021  s.restore(m_d->ui_etacones.doubleSpinBox_etaval3);
1022  s.restore(m_d->ui_etacones.doubleSpinBox_etaconeextent);
1023  s.restore(m_d->ui_etacones.radioButton_etaconeextentisr,m_d->ui_etacones.radioButton_etaconeextentisz);
1024 
1025  //Projection surfaces:
1026 
1027  s.restore(m_d->ui_idprojsurfs.groupBox_pixelproj);
1028  s.restore(m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_asneeded);
1029  s.restore(m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_barrelA);
1030  s.restore(m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_barrelC);
1031  s.restore(m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_endcapA);
1032  s.restore(m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_endcapC);
1033  s.restore(m_d->ui_idprojsurfs.radioButton_pixelprojsurf_barrel_inner,
1034  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_barrel_outer,
1035  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_barrel_both);
1036  s.restore(m_d->ui_idprojsurfs.radioButton_pixelprojsurf_endcap_inner,
1037  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_endcap_outer,
1038  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_endcap_both);
1039  s.restore(m_d->ui_idprojsurfs.groupBox_sctproj);
1040  s.restore(m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_asneeded);
1041  s.restore(m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_barrelA);
1042  s.restore(m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_barrelC);
1043  s.restore(m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_endcapA);
1044  s.restore(m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_endcapC);
1045  s.restore(m_d->ui_idprojsurfs.radioButton_sctprojsurf_barrel_inner,
1046  m_d->ui_idprojsurfs.radioButton_sctprojsurf_barrel_outer,
1047  m_d->ui_idprojsurfs.radioButton_sctprojsurf_barrel_both);
1048  s.restore(m_d->ui_idprojsurfs.radioButton_sctprojsurf_endcap_inner,
1049  m_d->ui_idprojsurfs.radioButton_sctprojsurf_endcap_outer,
1050  m_d->ui_idprojsurfs.radioButton_sctprojsurf_endcap_both);
1051  s.restore(m_d->ui_idprojsurfs.groupBox_trtproj);
1052  s.restore(m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_asneeded);
1053  s.restore(m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_barrelA);
1054  s.restore(m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_barrelC);
1055  s.restore(m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_endcapA);
1056  s.restore(m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_endcapC);
1057  s.restore(m_d->ui_idprojsurfs.radioButton_trtprojsurf_barrel_inner,
1058  m_d->ui_idprojsurfs.radioButton_trtprojsurf_barrel_outer,
1059  m_d->ui_idprojsurfs.radioButton_trtprojsurf_barrel_both);
1060  s.restore(m_d->ui_idprojsurfs.radioButton_trtprojsurf_endcap_inner,
1061  m_d->ui_idprojsurfs.radioButton_trtprojsurf_endcap_outer,
1062  m_d->ui_idprojsurfs.radioButton_trtprojsurf_endcap_both);
1063  s.restore(m_d->ui_idprojsurfs.checkBox_trtprojsurf_z2r);
1064 
1065  if (s.version()>=1) {
1066  s.restore(m_d->ui.checkBox_coordinateAxes);
1067  s.restore(m_d->ui.checkBox_etaCones);
1068  s.restore(m_d->ui.checkBox_floorAndLetters);
1069  s.restore(m_d->ui.checkBox_grid);
1070  s.restore(m_d->ui.checkBox_inDetProjSurfs);
1071  }
1072 
1073  if (s.version()>=2) {
1074  s.restore(m_d->ui.checkBox_trkVolumes);
1075  s.restore(m_d->ui_trkvolumes.matButton_ID);
1076  s.restore(m_d->ui_trkvolumes.matButton_Calo);
1077  s.restore(m_d->ui_trkvolumes.matButton_MS);
1078  s.restore(m_d->ui_trkvolumes.checkBox_ID);
1079  s.restore(m_d->ui_trkvolumes.checkBox_Calo);
1080  s.restore(m_d->ui_trkvolumes.checkBox_MS);
1081  }
1082  if (s.version()>=3) {
1083  s.restore(m_d->ui.checkBox_lines);
1084  s.restore(m_d->ui_lines.doubleSpinBox_phi);
1085  s.restore(m_d->ui_lines.doubleSpinBox_phi);
1086  s.restore(m_d->ui_lines.doubleSpinBox_eta);
1087  s.restore(m_d->ui_lines.doubleSpinBox_length);
1088  }
1089 
1090  // People
1091  if (s.version()>=3) {
1092  s.restore(m_d->ui.checkBox_people);
1093  s.restore(m_d->ui_people.matButton_people);
1094  }
1095 }

◆ actualSaveSettings()

void GuideSysController::actualSaveSettings ( VP1Serialise s) const
virtual

Implements VP1Controller.

Definition at line 855 of file GuideSysController.cxx.

856 {
857 
858  //version 0 output an integer here.
859 
860  //Materials
861  s.save(m_d->ui_floorandletters.matButton_letters);
862  s.save(m_d->ui_axes.matButton_axes_x);
863  s.save(m_d->ui_axes.matButton_axes_y);
864  s.save(m_d->ui_axes.matButton_axes_z);
865  s.save(m_d->ui_etacones.matButton_etaCone1);
866  s.save(m_d->ui_etacones.matButton_etaCone2);
867  s.save(m_d->ui_etacones.matButton_etaCone3);
868  s.save(m_d->ui_idprojsurfs.pushButton_projsurfmaterial_pixel);
869  s.save(m_d->ui_idprojsurfs.pushButton_projsurfmaterial_sct);
870  s.save(m_d->ui_idprojsurfs.pushButton_projsurfmaterial_trt);
871 
872  //Everything apart from projection surfaces:
873  s.save(m_d->ui_grid.colorButton_grid);
874  s.save(m_d->ui_grid.spinBox_gridtransp);
875  s.save(m_d->ui_floorandletters.colorButton_floor);
876  s.save(m_d->ui_floorandletters.spinBox_floortransp);
877  s.save(m_d->ui_floorandletters.doubleSpinBox_floorheight);
878  s.save(m_d->ui_floorandletters.checkBox_floorenabled);
879  s.save(m_d->ui_floorandletters.doubleSpinBox_floorspacing);
880  s.save(m_d->ui_floorandletters.doubleSpinBox_floorextent);
881  s.save(m_d->ui_floorandletters.checkBox_acdesignations);
882  //Version 0 output bool here
883  s.save(m_d->ui_axes.checkBox_axes_shownegativeparts);
884  s.save(m_d->ui_axes.doubleSpinBox_axes_lengths_m);
885  s.save(m_d->ui_axes.doubleSpinBox_axes_relthickness);
886  s.save(m_d->ui_axes.doubleSpinBox_axes_xpos_m);
887  s.save(m_d->ui_axes.doubleSpinBox_axes_ypos_m);
888  s.save(m_d->ui_axes.doubleSpinBox_axes_zpos_m);
889  s.save(0/*backwards compat*/,m_d->ui_grid.radioButton_grid_cartesian,m_d->ui_grid.radioButton_grid_cylindrical);
890  s.save(m_d->ui_grid.doubleSpinBox_gridspacing);
891  s.save(m_d->ui_grid.doubleSpinBox_gridextent);
892  s.save(m_d->ui_etacones.checkBox_etacone1);
893  s.save(m_d->ui_etacones.doubleSpinBox_etaval1);
894  s.save(m_d->ui_etacones.checkBox_etacone2);
895  s.save(m_d->ui_etacones.doubleSpinBox_etaval2);
896  s.save(m_d->ui_etacones.checkBox_etacone3);
897  s.save(m_d->ui_etacones.doubleSpinBox_etaval3);
898  s.save(m_d->ui_etacones.doubleSpinBox_etaconeextent);
899  s.save(m_d->ui_etacones.radioButton_etaconeextentisr,m_d->ui_etacones.radioButton_etaconeextentisz);
900 
901  //Projection surfaces:
902 
903  s.save(m_d->ui_idprojsurfs.groupBox_pixelproj);
904  s.save(m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_asneeded);
905  s.save(m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_barrelA);
906  s.save(m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_barrelC);
907  s.save(m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_endcapA);
908  s.save(m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_endcapC);
909  s.save(m_d->ui_idprojsurfs.radioButton_pixelprojsurf_barrel_inner,
910  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_barrel_outer,
911  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_barrel_both);
912  s.save(m_d->ui_idprojsurfs.radioButton_pixelprojsurf_endcap_inner,
913  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_endcap_outer,
914  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_endcap_both);
915  s.save(m_d->ui_idprojsurfs.groupBox_sctproj);
916  s.save(m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_asneeded);
917  s.save(m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_barrelA);
918  s.save(m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_barrelC);
919  s.save(m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_endcapA);
920  s.save(m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_endcapC);
921  s.save(m_d->ui_idprojsurfs.radioButton_sctprojsurf_barrel_inner,
922  m_d->ui_idprojsurfs.radioButton_sctprojsurf_barrel_outer,
923  m_d->ui_idprojsurfs.radioButton_sctprojsurf_barrel_both);
924  s.save(m_d->ui_idprojsurfs.radioButton_sctprojsurf_endcap_inner,
925  m_d->ui_idprojsurfs.radioButton_sctprojsurf_endcap_outer,
926  m_d->ui_idprojsurfs.radioButton_sctprojsurf_endcap_both);
927  s.save(m_d->ui_idprojsurfs.groupBox_trtproj);
928  s.save(m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_asneeded);
929  s.save(m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_barrelA);
930  s.save(m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_barrelC);
931  s.save(m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_endcapA);
932  s.save(m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_endcapC);
933  s.save(m_d->ui_idprojsurfs.radioButton_trtprojsurf_barrel_inner,
934  m_d->ui_idprojsurfs.radioButton_trtprojsurf_barrel_outer,
935  m_d->ui_idprojsurfs.radioButton_trtprojsurf_barrel_both);
936  s.save(m_d->ui_idprojsurfs.radioButton_trtprojsurf_endcap_inner,
937  m_d->ui_idprojsurfs.radioButton_trtprojsurf_endcap_outer,
938  m_d->ui_idprojsurfs.radioButton_trtprojsurf_endcap_both);
939  s.save(m_d->ui_idprojsurfs.checkBox_trtprojsurf_z2r);
940 
941  s.save(m_d->ui.checkBox_coordinateAxes);//version 1+
942  s.save(m_d->ui.checkBox_etaCones);
943  s.save(m_d->ui.checkBox_floorAndLetters);//version 1+
944  s.save(m_d->ui.checkBox_grid);//version 1+
945  s.save(m_d->ui.checkBox_inDetProjSurfs);//version 1+
946 
947  //Tracking volumes:
948  // All version 2+
949  s.save(m_d->ui.checkBox_trkVolumes);
950 
951  //material
952  s.save(m_d->ui_trkvolumes.matButton_ID);
953  s.save(m_d->ui_trkvolumes.matButton_Calo);
954  s.save(m_d->ui_trkvolumes.matButton_MS);
955  s.save(m_d->ui_trkvolumes.checkBox_ID);
956  s.save(m_d->ui_trkvolumes.checkBox_Calo);
957  s.save(m_d->ui_trkvolumes.checkBox_MS);
958 
959  // Line from origin
960  s.save(m_d->ui.checkBox_lines);
961  s.save(m_d->ui_lines.doubleSpinBox_phi);
962  s.save(m_d->ui_lines.doubleSpinBox_phi);
963  s.save(m_d->ui_lines.doubleSpinBox_eta);
964  s.save(m_d->ui_lines.doubleSpinBox_length);
965 
966  // People
967  s.save(m_d->ui.checkBox_people);
968  s.save(m_d->ui_people.matButton_people);
969 }

◆ 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 }

◆ applicablePixelProjParts()

InDetProjFlags::InDetProjPartsFlags GuideSysController::applicablePixelProjParts ( ) const

Definition at line 667 of file GuideSysController.cxx.

668 {
669  return Imp::projPartsFlag( m_d->ui_idprojsurfs.radioButton_pixelprojsurf_barrel_inner->isChecked() || m_d->ui_idprojsurfs.radioButton_pixelprojsurf_barrel_both->isChecked(),
670  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_barrel_outer->isChecked() || m_d->ui_idprojsurfs.radioButton_pixelprojsurf_barrel_both->isChecked(),
671  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_endcap_inner->isChecked() || m_d->ui_idprojsurfs.radioButton_pixelprojsurf_endcap_both->isChecked(),
672  m_d->ui_idprojsurfs.radioButton_pixelprojsurf_endcap_outer->isChecked() || m_d->ui_idprojsurfs.radioButton_pixelprojsurf_endcap_both->isChecked() );
673 }

◆ applicablePixelProjPartsChanged

void GuideSysController::applicablePixelProjPartsChanged ( InDetProjFlags::InDetProjPartsFlags  )
signal

◆ applicableSCTProjParts()

InDetProjFlags::InDetProjPartsFlags GuideSysController::applicableSCTProjParts ( ) const

Definition at line 676 of file GuideSysController.cxx.

677 {
678  return Imp::projPartsFlag( m_d->ui_idprojsurfs.radioButton_sctprojsurf_barrel_inner->isChecked() || m_d->ui_idprojsurfs.radioButton_sctprojsurf_barrel_both->isChecked(),
679  m_d->ui_idprojsurfs.radioButton_sctprojsurf_barrel_outer->isChecked() || m_d->ui_idprojsurfs.radioButton_sctprojsurf_barrel_both->isChecked(),
680  m_d->ui_idprojsurfs.radioButton_sctprojsurf_endcap_inner->isChecked() || m_d->ui_idprojsurfs.radioButton_sctprojsurf_endcap_both->isChecked(),
681  m_d->ui_idprojsurfs.radioButton_sctprojsurf_endcap_outer->isChecked() || m_d->ui_idprojsurfs.radioButton_sctprojsurf_endcap_both->isChecked() );
682 }

◆ applicableSCTProjPartsChanged

void GuideSysController::applicableSCTProjPartsChanged ( InDetProjFlags::InDetProjPartsFlags  )
signal

◆ applicableTRTProjParts()

InDetProjFlags::InDetProjPartsFlags GuideSysController::applicableTRTProjParts ( ) const

Definition at line 685 of file GuideSysController.cxx.

686 {
687  return Imp::projPartsFlag( m_d->ui_idprojsurfs.radioButton_trtprojsurf_barrel_inner->isChecked() || m_d->ui_idprojsurfs.radioButton_trtprojsurf_barrel_both->isChecked(),
688  m_d->ui_idprojsurfs.radioButton_trtprojsurf_barrel_outer->isChecked() || m_d->ui_idprojsurfs.radioButton_trtprojsurf_barrel_both->isChecked(),
689  m_d->ui_idprojsurfs.radioButton_trtprojsurf_endcap_inner->isChecked() || m_d->ui_idprojsurfs.radioButton_trtprojsurf_endcap_both->isChecked(),
690  m_d->ui_idprojsurfs.radioButton_trtprojsurf_endcap_outer->isChecked() || m_d->ui_idprojsurfs.radioButton_trtprojsurf_endcap_both->isChecked(),
691  true, m_d->ui_idprojsurfs.checkBox_trtprojsurf_z2r->isChecked() );
692 }

◆ applicableTRTProjPartsChanged

void GuideSysController::applicableTRTProjPartsChanged ( InDetProjFlags::InDetProjPartsFlags  )
signal

◆ axesLength()

double GuideSysController::axesLength ( ) const

Definition at line 506 of file GuideSysController.cxx.

507 {
508  return m_d->ui_axes.doubleSpinBox_axes_lengths_m->value()*SYSTEM_OF_UNITS::m *
509  (m_d->ui_axes.checkBox_axes_shownegativeparts->isChecked()?-1.0:1.0);
510 }

◆ axesLengthChanged

void GuideSysController::axesLengthChanged ( const double &  )
signal

◆ axesPosition()

SbVec3f GuideSysController::axesPosition ( ) const

Definition at line 513 of file GuideSysController.cxx.

514 {
515  return SbVec3f(m_d->ui_axes.doubleSpinBox_axes_xpos_m->value()*SYSTEM_OF_UNITS::m,
516  m_d->ui_axes.doubleSpinBox_axes_ypos_m->value()*SYSTEM_OF_UNITS::m,
517  m_d->ui_axes.doubleSpinBox_axes_zpos_m->value()*SYSTEM_OF_UNITS::m);
518 }

◆ axesPositionChanged

void GuideSysController::axesPositionChanged ( const SbVec3f &  )
signal

◆ caloTrkVolumesMaterial()

SoMaterial * GuideSysController::caloTrkVolumesMaterial ( ) const

Definition at line 406 of file GuideSysController.cxx.

406 { return m_d->ui_trkvolumes.matButton_Calo->handledMaterials().at(0); }

◆ 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 }

◆ 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 GuideSysController::currentSettingsVersion ( ) const
virtual

Implements VP1Controller.

Definition at line 849 of file GuideSysController.cxx.

850 {
851  return 3;
852 }

◆ customTourEditor()

static VP1CustomTourEditor* VP1Controller::customTourEditor ( )
inlinestaticinherited

Definition at line 61 of file VP1Controller.h.

61 {return m_customTourEditor;}

◆ defineRadioButtonGroup() [1/2]

QButtonGroup * VP1Controller::defineRadioButtonGroup ( 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 }

◆ 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 }

◆ etaCone1Material()

SoMaterial * GuideSysController::etaCone1Material ( ) const

Definition at line 399 of file GuideSysController.cxx.

399 { return m_d->ui_etacones.matButton_etaCone1->handledMaterials().at(0); }

◆ etaCone2Material()

SoMaterial * GuideSysController::etaCone2Material ( ) const

Definition at line 400 of file GuideSysController.cxx.

400 { return m_d->ui_etacones.matButton_etaCone2->handledMaterials().at(0); }

◆ etaCone3Material()

SoMaterial * GuideSysController::etaCone3Material ( ) const

Definition at line 401 of file GuideSysController.cxx.

401 { return m_d->ui_etacones.matButton_etaCone3->handledMaterials().at(0); }

◆ etaConeValue1()

double GuideSysController::etaConeValue1 ( ) const

Definition at line 580 of file GuideSysController.cxx.

581 {
582  return std::max(1.0e-5,m_d->ui_etacones.doubleSpinBox_etaval1->value());
583 }

◆ etaConeValue1Changed

void GuideSysController::etaConeValue1Changed ( const double &  )
signal

◆ etaConeValue2()

double GuideSysController::etaConeValue2 ( ) const

Definition at line 586 of file GuideSysController.cxx.

587 {
588  return std::max(1.0e-5,m_d->ui_etacones.doubleSpinBox_etaval2->value());
589 }

◆ etaConeValue2Changed

void GuideSysController::etaConeValue2Changed ( const double &  )
signal

◆ etaConeValue3()

double GuideSysController::etaConeValue3 ( ) const

Definition at line 592 of file GuideSysController.cxx.

593 {
594  return std::max(1.0e-5,m_d->ui_etacones.doubleSpinBox_etaval3->value());
595 }

◆ etaConeValue3Changed

void GuideSysController::etaConeValue3Changed ( const double &  )
signal

◆ etaExtent()

double GuideSysController::etaExtent ( ) const

Definition at line 598 of file GuideSysController.cxx.

599 {
600  return m_d->ui_etacones.doubleSpinBox_etaconeextent->value() * SYSTEM_OF_UNITS::m
601  * (m_d->ui_etacones.radioButton_etaconeextentisr->isChecked() ? 1.0 : -1.0);
602 }

◆ etaExtentChanged

void GuideSysController::etaExtentChanged ( const double &  )
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 }

◆ floorColourAndTransp()

SbColor4f GuideSysController::floorColourAndTransp ( ) const

Definition at line 424 of file GuideSysController.cxx.

425 {
426  return Imp::color4f(m_d->ui_floorandletters.colorButton_floor->color(),m_d->ui_floorandletters.spinBox_floortransp->value());
427 }

◆ floorColourAndTranspChanged

void GuideSysController::floorColourAndTranspChanged ( const SbColor4f &  )
signal

◆ floorExtent()

double GuideSysController::floorExtent ( ) const

Definition at line 437 of file GuideSysController.cxx.

438 {
439  return m_d->ui_floorandletters.doubleSpinBox_floorextent->value()*SYSTEM_OF_UNITS::m;
440 }

◆ floorExtentChanged

void GuideSysController::floorExtentChanged ( const double &  )
signal

◆ floorHeight()

double GuideSysController::floorHeight ( ) const

Definition at line 449 of file GuideSysController.cxx.

450 {
451  return m_d->ui_floorandletters.doubleSpinBox_floorheight->value()*SYSTEM_OF_UNITS::m;
452 }

◆ floorHeightChanged

void GuideSysController::floorHeightChanged ( const double &  )
signal

◆ floorSpacing()

double GuideSysController::floorSpacing ( ) const

Definition at line 443 of file GuideSysController.cxx.

444 {
445  return m_d->ui_floorandletters.doubleSpinBox_floorspacing->value()*SYSTEM_OF_UNITS::m;
446 }

◆ floorSpacingChanged

void GuideSysController::floorSpacingChanged ( const double &  )
signal

◆ 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 }

◆ gridColourAndTransp()

SbColor4f GuideSysController::gridColourAndTransp ( ) const

Definition at line 541 of file GuideSysController.cxx.

542 {
543  return Imp::color4f(m_d->ui_grid.colorButton_grid->color(),m_d->ui_grid.spinBox_gridtransp->value());
544 }

◆ gridColourAndTranspChanged

void GuideSysController::gridColourAndTranspChanged ( const SbColor4f &  )
signal

◆ gridExtent()

double GuideSysController::gridExtent ( ) const

Definition at line 553 of file GuideSysController.cxx.

554 {
555  return m_d->ui_grid.doubleSpinBox_gridextent->value()*SYSTEM_OF_UNITS::m;
556 }

◆ gridExtentChanged

void GuideSysController::gridExtentChanged ( const double &  )
signal

◆ gridSpacing()

double GuideSysController::gridSpacing ( ) const

Definition at line 547 of file GuideSysController.cxx.

548 {
549  return m_d->ui_grid.doubleSpinBox_gridspacing->value()*SYSTEM_OF_UNITS::m;
550 }

◆ gridSpacingChanged

void GuideSysController::gridSpacingChanged ( const double &  )
signal

◆ helperClassName()

QString VP1HelperClassBase::helperClassName ( ) const
inlineinherited

Definition at line 51 of file VP1HelperClassBase.h.

51 { return m_helpername; }

◆ idTrkVolumesMaterial()

SoMaterial * GuideSysController::idTrkVolumesMaterial ( ) const

Definition at line 405 of file GuideSysController.cxx.

405 { return m_d->ui_trkvolumes.matButton_ID->handledMaterials().at(0); }

◆ 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; }

◆ lettersMaterial()

SoMaterial * GuideSysController::lettersMaterial ( ) const

Definition at line 394 of file GuideSysController.cxx.

394 { return m_d->ui_floorandletters.matButton_letters->handledMaterials().at(0); }

◆ lettersVerticalPos()

double GuideSysController::lettersVerticalPos ( ) const

Definition at line 475 of file GuideSysController.cxx.

476 {
477  return floorHeight()+1.5*SYSTEM_OF_UNITS::m;
478 }

◆ lettersVerticalPosChanged

void GuideSysController::lettersVerticalPosChanged ( const double &  )
signal

◆ lettersZPos()

double GuideSysController::lettersZPos ( ) const

Definition at line 462 of file GuideSysController.cxx.

463 {
464 
465  int nmax; double distmax;
467  nmax = 10;
468  distmax = 10*SYSTEM_OF_UNITS::m;
469  message("lettersZPos ERROR: Problems calculating floor nmax/distmax.");
470  }
471  return distmax*1.1;
472 }

◆ lettersZPosChanged

void GuideSysController::lettersZPosChanged ( const double &  )
signal

◆ lineDirection()

SbVec3f GuideSysController::lineDirection ( ) const

Definition at line 612 of file GuideSysController.cxx.

613 {
614  double r = lineLength();
615  double phi = m_d->ui_lines.doubleSpinBox_phi->value();
616  double theta = m_d->ui_lines.doubleSpinBox_theta->value();
617  SbVec3f direction(r*sin(theta)*cos(phi),r*sin(theta)*sin(phi), r*cos(theta));
618  return direction;
619 }

◆ lineDirectionChanged

void GuideSysController::lineDirectionChanged ( const SbVec3f &  )
signal

◆ lineLength()

double GuideSysController::lineLength ( ) const

Definition at line 622 of file GuideSysController.cxx.

623 {
624  return m_d->ui_lines.doubleSpinBox_length->value() * SYSTEM_OF_UNITS::m;
625 }

◆ 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 (QString s : l)
139  message(addtostart+s);
140  } else {
141  for (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 (QString s : l)
95  message(s);
96  } else {
97  for (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 (QString s : l)
157  messageDebug(addtostart+s);
158  } else {
159  for (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 (QString s : l)
109  messageDebug(s);
110  } else {
111  for (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 (QString s : l)
175  messageVerbose(addtostart+s);
176  } else {
177  for (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 (QString s : l)
123  messageVerbose(s);
124  } else {
125  for (QString s : l)
126  messageVerbose(s+addtoend);
127  }
128 }

◆ msTrkVolumesMaterial()

SoMaterial * GuideSysController::msTrkVolumesMaterial ( ) const

Definition at line 407 of file GuideSysController.cxx.

407 { return m_d->ui_trkvolumes.matButton_MS->handledMaterials().at(0); }

◆ peopleColourAndTransp()

SbColor4f GuideSysController::peopleColourAndTransp ( ) const

Definition at line 430 of file GuideSysController.cxx.

431 {
432  return Imp::color4f(m_d->ui_people.colorButton_people->color(),m_d->ui_people.spinBox_peopletransp->value());
433 }

◆ peopleColourAndTranspChanged

void GuideSysController::peopleColourAndTranspChanged ( const SbColor4f &  )
signal

◆ peopleMaterial()

SoMaterial * GuideSysController::peopleMaterial ( ) const

Definition at line 395 of file GuideSysController.cxx.

395 { return m_d->ui_people.matButton_people->handledMaterials().at(0); }

◆ peopleVerticalPos()

double GuideSysController::peopleVerticalPos ( ) const

Definition at line 481 of file GuideSysController.cxx.

482 {
483  return floorHeight();
484 }

◆ peopleVerticalPosChanged

void GuideSysController::peopleVerticalPosChanged ( const double &  )
signal

◆ peopleZPos()

double GuideSysController::peopleZPos ( ) const

Definition at line 487 of file GuideSysController.cxx.

488 {
489 
490  int nmax; double distmax;
492  nmax = 10;
493  distmax = 10*SYSTEM_OF_UNITS::m;
494  message("lettersZPos ERROR: Problems calculating floor nmax/distmax.");
495  }
496  return distmax*1.1;
497 }

◆ pixelProjSurfMaterial()

SoMaterial * GuideSysController::pixelProjSurfMaterial ( ) const

Definition at line 402 of file GuideSysController.cxx.

402 { return m_d->ui_idprojsurfs.pushButton_projsurfmaterial_pixel->handledMaterials().at(0); }

◆ possibleChange_applicablePixelProjParts

void GuideSysController::possibleChange_applicablePixelProjParts ( )
privateslot

◆ possibleChange_applicableSCTProjParts

void GuideSysController::possibleChange_applicableSCTProjParts ( )
privateslot

◆ possibleChange_applicableTRTProjParts

void GuideSysController::possibleChange_applicableTRTProjParts ( )
privateslot

◆ possibleChange_axesLength

void GuideSysController::possibleChange_axesLength ( )
privateslot

◆ possibleChange_axesPosition

void GuideSysController::possibleChange_axesPosition ( )
privateslot

◆ possibleChange_etaConeValue1

void GuideSysController::possibleChange_etaConeValue1 ( )
privateslot

◆ possibleChange_etaConeValue2

void GuideSysController::possibleChange_etaConeValue2 ( )
privateslot

◆ possibleChange_etaConeValue3

void GuideSysController::possibleChange_etaConeValue3 ( )
privateslot

◆ possibleChange_etaExtent

void GuideSysController::possibleChange_etaExtent ( )
privateslot

◆ possibleChange_floorColourAndTransp

void GuideSysController::possibleChange_floorColourAndTransp ( )
privateslot

◆ possibleChange_floorExtent

void GuideSysController::possibleChange_floorExtent ( )
privateslot

◆ possibleChange_floorHeight

void GuideSysController::possibleChange_floorHeight ( )
privateslot

◆ possibleChange_floorSpacing

void GuideSysController::possibleChange_floorSpacing ( )
privateslot

◆ possibleChange_gridColourAndTransp

void GuideSysController::possibleChange_gridColourAndTransp ( )
privateslot

◆ possibleChange_gridExtent

void GuideSysController::possibleChange_gridExtent ( )
privateslot

◆ possibleChange_gridSpacing

void GuideSysController::possibleChange_gridSpacing ( )
privateslot

◆ possibleChange_lettersVerticalPos

void GuideSysController::possibleChange_lettersVerticalPos ( )
privateslot

◆ possibleChange_lettersZPos

void GuideSysController::possibleChange_lettersZPos ( )
privateslot

◆ possibleChange_lineDirection

void GuideSysController::possibleChange_lineDirection ( )
privateslot

Definition at line 1097 of file GuideSysController.cxx.

1097  {
1098  // Bit of a hack possibly to do this here, but I want to be able to update the direction by changing either theta or eta
1099  double eta = m_d->ui_lines.doubleSpinBox_eta->value();
1100  double theta = m_d->ui_lines.doubleSpinBox_theta->value();
1101 
1102  if (m_d->last_line_eta != eta){
1103  // eta has changed, so update theta in the UI
1104  theta = 2*std::atan(std::exp(-1.0 * eta));
1105  m_d->ui_lines.doubleSpinBox_theta->setValue(theta);
1106  } else if ( theta!= std::acos(m_d->last_lineDirection[2] / lineLength() ) ){
1107  eta = -1.0 * std::log(std::tan(theta/2.0));
1108  m_d->ui_lines.doubleSpinBox_eta->setValue(eta);
1109  }
1110  m_d->last_line_eta = m_d->ui_lines.doubleSpinBox_eta->value();
1111  if (changed( m_d->last_lineDirection , lineDirection() ) ) {
1112  if (verbose()&&!initVarsMode()) messageVerbose("Emitting "+QString()+"( lineDirectionChanged"+toString(m_d->last_lineDirection)+" )");
1114  }
1115 }

◆ possibleChange_peopleColourAndTransp

void GuideSysController::possibleChange_peopleColourAndTransp ( )
privateslot

◆ possibleChange_peopleVerticalPos

void GuideSysController::possibleChange_peopleVerticalPos ( )
privateslot

◆ possibleChange_relAxesThickness

void GuideSysController::possibleChange_relAxesThickness ( )
privateslot

◆ possibleChange_showAxes

void GuideSysController::possibleChange_showAxes ( )
privateslot

◆ possibleChange_showCalorimeters

void GuideSysController::possibleChange_showCalorimeters ( )
privateslot

◆ possibleChange_showCartesianGrid

void GuideSysController::possibleChange_showCartesianGrid ( )
privateslot

◆ possibleChange_showCylindricalGrid

void GuideSysController::possibleChange_showCylindricalGrid ( )
privateslot

◆ possibleChange_showEtaCone1

void GuideSysController::possibleChange_showEtaCone1 ( )
privateslot

◆ possibleChange_showEtaCone2

void GuideSysController::possibleChange_showEtaCone2 ( )
privateslot

◆ possibleChange_showEtaCone3

void GuideSysController::possibleChange_showEtaCone3 ( )
privateslot

◆ possibleChange_showFloor

void GuideSysController::possibleChange_showFloor ( )
privateslot

◆ possibleChange_showInnerDetector

void GuideSysController::possibleChange_showInnerDetector ( )
privateslot

◆ possibleChange_showLetters

void GuideSysController::possibleChange_showLetters ( )
privateslot

◆ possibleChange_showLines

void GuideSysController::possibleChange_showLines ( )
privateslot

◆ possibleChange_showMuonSpectrometer

void GuideSysController::possibleChange_showMuonSpectrometer ( )
privateslot

◆ possibleChange_shownPixelProjSurfaces

void GuideSysController::possibleChange_shownPixelProjSurfaces ( )
privateslot

◆ possibleChange_shownSCTProjSurfaces

void GuideSysController::possibleChange_shownSCTProjSurfaces ( )
privateslot

◆ possibleChange_shownTRTProjSurfaces

void GuideSysController::possibleChange_shownTRTProjSurfaces ( )
privateslot

◆ possibleChange_showPeople

void GuideSysController::possibleChange_showPeople ( )
privateslot

◆ possibleChange_showTrackingVolumes

void GuideSysController::possibleChange_showTrackingVolumes ( )
privateslot

◆ relAxesThickness()

double GuideSysController::relAxesThickness ( ) const

Definition at line 521 of file GuideSysController.cxx.

522 {
523  return m_d->ui_axes.doubleSpinBox_axes_relthickness->value();
524 }

◆ relAxesThicknessChanged

void GuideSysController::relAxesThicknessChanged ( const double &  )
signal

◆ restoreSettings()

void VP1Controller::restoreSettings ( 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 }

◆ sctProjSurfMaterial()

SoMaterial * GuideSysController::sctProjSurfMaterial ( ) const

Definition at line 403 of file GuideSysController.cxx.

403 { return m_d->ui_idprojsurfs.pushButton_projsurfmaterial_sct->handledMaterials().at(0); }

◆ 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; }

◆ setInDetDetTypesUsingProjections()

void GuideSysController::setInDetDetTypesUsingProjections ( InDetProjFlags::DetTypeFlags  f)

◆ 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 }

◆ showAxes()

bool GuideSysController::showAxes ( ) const

Definition at line 500 of file GuideSysController.cxx.

501 {
502  return m_d->ui.checkBox_coordinateAxes->isChecked();
503 }

◆ showAxesChanged

void GuideSysController::showAxesChanged ( bool  )
signal

◆ showCalorimeters()

bool GuideSysController::showCalorimeters ( ) const

Definition at line 838 of file GuideSysController.cxx.

839 {
840  return m_d->ui_trkvolumes.checkBox_Calo->isChecked();
841 }

◆ showCalorimetersChanged

void GuideSysController::showCalorimetersChanged ( bool  )
signal

◆ showCartesianGrid()

bool GuideSysController::showCartesianGrid ( ) const

Definition at line 527 of file GuideSysController.cxx.

528 {
529  return m_d->ui.checkBox_grid->isChecked() &&
530  m_d->ui_grid.radioButton_grid_cartesian->isChecked();
531 }

◆ showCartesianGridChanged

void GuideSysController::showCartesianGridChanged ( bool  )
signal

◆ showCylindricalGrid()

bool GuideSysController::showCylindricalGrid ( ) const

Definition at line 534 of file GuideSysController.cxx.

535 {
536  return m_d->ui.checkBox_grid->isChecked() &&
537  m_d->ui_grid.radioButton_grid_cylindrical->isChecked();
538 }

◆ showCylindricalGridChanged

void GuideSysController::showCylindricalGridChanged ( bool  )
signal

◆ showEtaCone1()

bool GuideSysController::showEtaCone1 ( ) const

Definition at line 559 of file GuideSysController.cxx.

560 {
561  return m_d->ui.checkBox_etaCones->isChecked() &&
562  m_d->ui_etacones.checkBox_etacone1->isChecked();
563 }

◆ showEtaCone1Changed

void GuideSysController::showEtaCone1Changed ( bool  )
signal

◆ showEtaCone2()

bool GuideSysController::showEtaCone2 ( ) const

Definition at line 566 of file GuideSysController.cxx.

567 {
568  return m_d->ui.checkBox_etaCones->isChecked() &&
569  m_d->ui_etacones.checkBox_etacone2->isChecked();
570 }

◆ showEtaCone2Changed

void GuideSysController::showEtaCone2Changed ( bool  )
signal

◆ showEtaCone3()

bool GuideSysController::showEtaCone3 ( ) const

Definition at line 573 of file GuideSysController.cxx.

574 {
575  return m_d->ui.checkBox_etaCones->isChecked() &&
576  m_d->ui_etacones.checkBox_etacone3->isChecked();
577 }

◆ showEtaCone3Changed

void GuideSysController::showEtaCone3Changed ( bool  )
signal

◆ showFloor()

bool GuideSysController::showFloor ( ) const

Definition at line 410 of file GuideSysController.cxx.

411 {
412  return m_d->ui.checkBox_floorAndLetters->isChecked() &&
413  m_d->ui_floorandletters.checkBox_floorenabled->isChecked();
414 }

◆ showFloorChanged

void GuideSysController::showFloorChanged ( bool  )
signal

◆ showInnerDetector()

bool GuideSysController::showInnerDetector ( ) const

Definition at line 833 of file GuideSysController.cxx.

834 {
835  return m_d->ui_trkvolumes.checkBox_ID->isChecked();
836 }

◆ showInnerDetectorChanged

void GuideSysController::showInnerDetectorChanged ( bool  )
signal

◆ showLetters()

bool GuideSysController::showLetters ( ) const

Definition at line 455 of file GuideSysController.cxx.

456 {
457  return m_d->ui.checkBox_floorAndLetters->isChecked() &&
458  m_d->ui_floorandletters.checkBox_acdesignations->isChecked();
459 }

◆ showLettersChanged

void GuideSysController::showLettersChanged ( bool  )
signal

◆ showLines()

bool GuideSysController::showLines ( ) const

Definition at line 605 of file GuideSysController.cxx.

606 {
607  return m_d->ui.checkBox_lines->isChecked();
608 }

◆ showLinesChanged

void GuideSysController::showLinesChanged ( bool  )
signal

◆ showMuonSpectrometer()

bool GuideSysController::showMuonSpectrometer ( ) const

Definition at line 843 of file GuideSysController.cxx.

844 {
845  return m_d->ui_trkvolumes.checkBox_MS->isChecked();
846 }

◆ showMuonSpectrometerChanged

void GuideSysController::showMuonSpectrometerChanged ( bool  )
signal

◆ shownPixelProjSurfaces()

InDetProjFlags::InDetProjPartsFlags GuideSysController::shownPixelProjSurfaces ( ) const

Definition at line 746 of file GuideSysController.cxx.

747 {
748  InDetProjFlags::DetTypeFlags enabledDetRegions = m_d->pixelPartsEnabledByGUIOrDataUsage();
749  if (!(InDetProjFlags::Pixel_all&enabledDetRegions)||!m_d->ui.checkBox_inDetProjSurfs->isChecked())
751  InDetProjFlags::InDetProjPartsFlags pixelProjParts(applicablePixelProjParts());
752  if (pixelProjParts==InDetProjFlags::NoProjections)
754  InDetProjFlags::InDetProjPartsFlags dummy_sct(InDetProjFlags::NoProjections), dummy_trt(InDetProjFlags::NoProjections);
755  InDetProjFlags::projectionPartsGivenUsedDetectors( pixelProjParts, dummy_sct, dummy_trt, enabledDetRegions );
756  return pixelProjParts;
757 }

◆ shownPixelProjSurfacesChanged

void GuideSysController::shownPixelProjSurfacesChanged ( InDetProjFlags::InDetProjPartsFlags  )
signal

◆ shownSCTProjSurfaces()

InDetProjFlags::InDetProjPartsFlags GuideSysController::shownSCTProjSurfaces ( ) const

Definition at line 760 of file GuideSysController.cxx.

761 {
762  InDetProjFlags::DetTypeFlags enabledDetRegions = m_d->sctPartsEnabledByGUIOrDataUsage();
763  if (!(InDetProjFlags::SCT_all&enabledDetRegions)||!m_d->ui.checkBox_inDetProjSurfs->isChecked())
765  InDetProjFlags::InDetProjPartsFlags sctProjParts(applicableSCTProjParts());
766  if (sctProjParts==InDetProjFlags::NoProjections)
768  InDetProjFlags::InDetProjPartsFlags dummy_pixel(InDetProjFlags::NoProjections), dummy_trt(InDetProjFlags::NoProjections);
769  InDetProjFlags::projectionPartsGivenUsedDetectors( dummy_pixel, sctProjParts, dummy_trt, enabledDetRegions );
770  return sctProjParts;
771 }

◆ shownSCTProjSurfacesChanged

void GuideSysController::shownSCTProjSurfacesChanged ( InDetProjFlags::InDetProjPartsFlags  )
signal

◆ shownTRTProjSurfaces()

InDetProjFlags::InDetProjPartsFlags GuideSysController::shownTRTProjSurfaces ( ) const

Definition at line 774 of file GuideSysController.cxx.

775 {
776  InDetProjFlags::DetTypeFlags enabledDetRegions = m_d->trtPartsEnabledByGUIOrDataUsage();
777  if (!(InDetProjFlags::TRT_all&enabledDetRegions)||!m_d->ui.checkBox_inDetProjSurfs->isChecked())
779  InDetProjFlags::InDetProjPartsFlags trtProjParts(applicableTRTProjParts());
780  if (trtProjParts==InDetProjFlags::NoProjections)
782  InDetProjFlags::InDetProjPartsFlags dummy_pixel(InDetProjFlags::NoProjections), dummy_sct(InDetProjFlags::NoProjections);
783  InDetProjFlags::projectionPartsGivenUsedDetectors( dummy_pixel, dummy_sct, trtProjParts,enabledDetRegions );
784  return trtProjParts;
785 }

◆ shownTRTProjSurfacesChanged

void GuideSysController::shownTRTProjSurfacesChanged ( InDetProjFlags::InDetProjPartsFlags  )
signal

◆ showPeople()

bool GuideSysController::showPeople ( ) const

Definition at line 417 of file GuideSysController.cxx.

418 {
419  return m_d->ui.checkBox_people->isChecked() &&
420  m_d->ui_people.checkBox_peopleenabled->isChecked();
421 }

◆ showPeopleChanged

void GuideSysController::showPeopleChanged ( bool  )
signal

◆ showTrackingVolumes()

bool GuideSysController::showTrackingVolumes ( ) const

Definition at line 828 of file GuideSysController.cxx.

829 {
830  return m_d->ui.checkBox_trkVolumes->isChecked();
831 }

◆ showTrackingVolumesChanged

void GuideSysController::showTrackingVolumesChanged ( 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 }

◆ trtProjSurfMaterial()

SoMaterial * GuideSysController::trtProjSurfMaterial ( ) const

Definition at line 404 of file GuideSysController.cxx.

404 { return m_d->ui_idprojsurfs.pushButton_projsurfmaterial_trt->handledMaterials().at(0); }

◆ updateProjPartsCheckboxStates_Pixel

void GuideSysController::updateProjPartsCheckboxStates_Pixel ( )
privateslot

Definition at line 799 of file GuideSysController.cxx.

800 {
801  const bool e(!m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_asneeded->isChecked());
802  m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_barrelA->setEnabled(e);
803  m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_barrelC->setEnabled(e);
804  m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_endcapA->setEnabled(e);
805  m_d->ui_idprojsurfs.checkBox_pixelprojsurf_parts_endcapC->setEnabled(e);
806 }

◆ updateProjPartsCheckboxStates_SCT

void GuideSysController::updateProjPartsCheckboxStates_SCT ( )
privateslot

Definition at line 809 of file GuideSysController.cxx.

810 {
811  const bool e(!m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_asneeded->isChecked());
812  m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_barrelA->setEnabled(e);
813  m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_barrelC->setEnabled(e);
814  m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_endcapA->setEnabled(e);
815  m_d->ui_idprojsurfs.checkBox_sctprojsurf_parts_endcapC->setEnabled(e);
816 }

◆ updateProjPartsCheckboxStates_TRT

void GuideSysController::updateProjPartsCheckboxStates_TRT ( )
privateslot

Definition at line 819 of file GuideSysController.cxx.

820 {
821  const bool e(!m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_asneeded->isChecked());
822  m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_barrelA->setEnabled(e);
823  m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_barrelC->setEnabled(e);
824  m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_endcapA->setEnabled(e);
825  m_d->ui_idprojsurfs.checkBox_trtprojsurf_parts_endcapC->setEnabled(e);
826 }

◆ 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 }

◆ xAxisMaterial()

SoMaterial * GuideSysController::xAxisMaterial ( ) const

Definition at line 396 of file GuideSysController.cxx.

396 { return m_d->ui_axes.matButton_axes_x->handledMaterials().at(0); }

◆ yAxisMaterial()

SoMaterial * GuideSysController::yAxisMaterial ( ) const

Definition at line 397 of file GuideSysController.cxx.

397 { return m_d->ui_axes.matButton_axes_y->handledMaterials().at(0); }

◆ zAxisMaterial()

SoMaterial * GuideSysController::zAxisMaterial ( ) const

Definition at line 398 of file GuideSysController.cxx.

398 { return m_d->ui_axes.matButton_axes_z->handledMaterials().at(0); }

Member Data Documentation

◆ m_customTourEditor

VP1CustomTourEditor * VP1Controller::m_customTourEditor =0
staticprivateinherited

Definition at line 125 of file VP1Controller.h.

◆ m_d

Imp* GuideSysController::m_d
private

Definition at line 178 of file GuideSysController.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
GuideSysController::floorHeightChanged
void floorHeightChanged(const double &)
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
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
VP1Controller::addUpdateSlot
const char * addUpdateSlot(const char *slot)
Definition: VP1Controller.cxx:318
beamspotman.r
def r
Definition: beamspotman.py:676
GuideSysController::floorSpacingChanged
void floorSpacingChanged(const double &)
python.SystemOfUnits.second
int second
Definition: SystemOfUnits.py:120
GuideSysController::Imp::last_lineDirection
SbVec3f last_lineDirection
Definition: GuideSysController.cxx:99
GuideSysController::Imp::trtPartsEnabledByGUIOrDataUsage
InDetProjFlags::DetTypeFlags trtPartsEnabledByGUIOrDataUsage() const
Definition: GuideSysController.cxx:695
InDetProjFlags::SCT_all
@ SCT_all
Definition: InDetProjFlags.h:33
GuideSysController::applicablePixelProjParts
InDetProjFlags::InDetProjPartsFlags applicablePixelProjParts() const
Definition: GuideSysController.cxx:667
GuideSysController::floorHeight
double floorHeight() const
Definition: GuideSysController.cxx:449
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
VP1Controller::toString
static QString toString(const T &par)
Definition: VP1Controller.h:138
GuideSysController::Imp::color4f
static SbColor4f color4f(const QColor &col, int transp_int)
Definition: GuideSysController.cxx:61
VP1Serialise
Definition: VP1Serialise.h:45
GuideSysController::possibleChange_showCylindricalGrid
void possibleChange_showCylindricalGrid()
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
max
#define max(a, b)
Definition: cfImp.cxx:41
GuideSysController::possibleChange_showLines
void possibleChange_showLines()
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
GuideSysController::m_d
Imp * m_d
Definition: GuideSysController.h:177
StandaloneBunchgroupHandler.bg
bg
Definition: StandaloneBunchgroupHandler.py:243
VP1Controller::Imp::lastUpdateSlot
const char * lastUpdateSlot
Definition: VP1Controller.cxx:49
VP1Controller::dummyUpdateTrigger
void dummyUpdateTrigger()
GuideSysController::possibleChange_applicableSCTProjParts
void possibleChange_applicableSCTProjParts()
VP1Controller::VP1Controller
VP1Controller(IVP1System *sys, const QString &classname)
Definition: VP1Controller.cxx:76
GuideSysController::possibleChange_showCalorimeters
void possibleChange_showCalorimeters()
GuideSysController::possibleChange_floorColourAndTransp
void possibleChange_floorColourAndTransp()
WriteCellNoiseToCool.rb
rb
Definition: WriteCellNoiseToCool.py:229
GuideSysController::Imp::sctPartsEnabledByGUIOrDataUsage
InDetProjFlags::DetTypeFlags sctPartsEnabledByGUIOrDataUsage() const
Definition: GuideSysController.cxx:712
GuideSysController::possibleChange_lettersVerticalPos
void possibleChange_lettersVerticalPos()
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
hist_file_dump.d
d
Definition: hist_file_dump.py:137
GuideSysController::Imp::ui
Ui::VP1GuidesControllerForm ui
Definition: GuideSysController.cxx:51
GuideSysController::Imp::ui_grid
Ui::VP1GuidesSysSettingsGridForm ui_grid
Definition: GuideSysController.cxx:56
VP1HelperClassBase::m_helpername
QString m_helpername
Definition: VP1HelperClassBase.h:67
VP1HelperClassBase::messageVerbose
void messageVerbose(const QString &) const
Definition: VP1HelperClassBase.cxx:78
theta
Scalar theta() const
theta method
Definition: AmgMatrixBasePlugin.h:75
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
VP1HelperClassBase::verbose
static bool verbose()
Definition: VP1HelperClassBase.h:32
VP1Controller::Imp::collWidget
VP1CollectionWidget * collWidget
Definition: VP1Controller.cxx:50
skel.it
it
Definition: skel.GENtoEVGEN.py:396
GuideSysController::possibleChange_floorExtent
void possibleChange_floorExtent()
VP1Controller::actualSaveSettings
virtual void actualSaveSettings(VP1Serialise &) const =0
GuideSysController::possibleChange_gridColourAndTransp
void possibleChange_gridColourAndTransp()
GuideSysController::possibleChange_showAxes
void possibleChange_showAxes()
VP1Msg::debug
static bool debug()
Definition: VP1Msg.h:32
VP1Floor::nMax
static int nMax()
Definition: VP1Floor.h:33
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
Cut::signal
@ signal
Definition: SUSYToolsAlg.cxx:67
InDetProjFlags::projectionPartsGivenUsedDetectors
static void projectionPartsGivenUsedDetectors(InDetProjPartsFlags &proj_pixel, InDetProjPartsFlags &proj_sct, InDetProjPartsFlags &proj_trt, const DetTypeFlags &useddets)
Definition: InDetProjFlags.cxx:17
VP1HelperClassBase::m_system
IVP1System * m_system
Definition: VP1HelperClassBase.h:68
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
GuideSysController::possibleChange_peopleColourAndTransp
void possibleChange_peopleColourAndTransp()
GuideSysController::possibleChange_showLetters
void possibleChange_showLetters()
GuideSysController::possibleChange_etaConeValue1
void possibleChange_etaConeValue1()
drawFromPickle.exp
exp
Definition: drawFromPickle.py:36
x
#define x
VP1String::str
static QString str(const QString &s)
Definition: VP1String.h:49
GuideSysController::possibleChange_shownSCTProjSurfaces
void possibleChange_shownSCTProjSurfaces()
VP1HelperClassBase::messageDebug
void messageDebug(const QString &) const
Definition: VP1HelperClassBase.cxx:65
GuideSysController::updateProjPartsCheckboxStates_SCT
void updateProjPartsCheckboxStates_SCT()
Definition: GuideSysController.cxx:809
VP1Controller::connectToLastUpdateSlot
void connectToLastUpdateSlot(QObject *sender, const char *signal)
Definition: VP1Controller.cxx:327
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
GuideSysController::lineDirection
SbVec3f lineDirection() const
Definition: GuideSysController.cxx:612
TruthTest.itE
itE
Definition: TruthTest.py:25
drawFromPickle.atan
atan
Definition: drawFromPickle.py:36
GuideSysController::Imp::ui_axes
Ui::VP1GuidesSysSettingsCoordinateAxesForm ui_axes
Definition: GuideSysController.cxx:52
GuideSysController::Imp::ui_floorandletters
Ui::VP1GuidesSysSettingsFloorAndLettersForm ui_floorandletters
Definition: GuideSysController.cxx:54
GuideSysController::possibleChange_applicableTRTProjParts
void possibleChange_applicableTRTProjParts()
GuideSysController::Imp::ui_etacones
Ui::VP1GuidesSysSettingsEtaConeForm ui_etacones
Definition: GuideSysController.cxx:53
GuideSysController::possibleChange_lettersZPos
void possibleChange_lettersZPos()
GuideSysController::possibleChange_gridSpacing
void possibleChange_gridSpacing()
VP1Controller::initVarsMode
bool initVarsMode() const
Definition: VP1Controller.h:97
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
GuideSysController::lineDirectionChanged
void lineDirectionChanged(const SbVec3f &)
VP1Msg::prefix_msg
static const char * prefix_msg()
Definition: VP1Msg.h:56
GuideSysController::possibleChange_axesLength
void possibleChange_axesLength()
GuideSysController::possibleChange_showFloor
void possibleChange_showFloor()
GuideSysController::possibleChange_etaExtent
void possibleChange_etaExtent()
lumiFormat.i
int i
Definition: lumiFormat.py:85
z
#define z
VP1Controller::Imp::fallBackMaterial
SoMaterial * fallBackMaterial
Definition: VP1Controller.cxx:64
python.CaloCondTools.g
g
Definition: CaloCondTools.py:15
beamspotman.n
n
Definition: beamspotman.py:731
VP1Controller::changed
bool changed(T &lastval, const T &newval)
Definition: VP1Controller.h:151
VP1Controller::m_d
Imp * m_d
Definition: VP1Controller.h:127
GuideSysController::possibleChange_showPeople
void possibleChange_showPeople()
GuideSysController::Imp::inDetDetTypesUsingProjections
InDetProjFlags::DetTypeFlags inDetDetTypesUsingProjections
Definition: GuideSysController.cxx:68
GuideSysController::applicableTRTProjPartsChanged
void applicableTRTProjPartsChanged(InDetProjFlags::InDetProjPartsFlags)
GuideSysController::floorExtentChanged
void floorExtentChanged(const double &)
VP1Controller::m_initVarsMode
bool m_initVarsMode
Definition: VP1Controller.h:129
IVP1System::name
const QString & name() const
Definition: IVP1System.cxx:50
GuideSysController::possibleChange_showEtaCone1
void possibleChange_showEtaCone1()
hist_file_dump.f
f
Definition: hist_file_dump.py:135
GuideSysController::applicableSCTProjParts
InDetProjFlags::InDetProjPartsFlags applicableSCTProjParts() const
Definition: GuideSysController.cxx:676
drawFromPickle.tan
tan
Definition: drawFromPickle.py:36
VP1Floor::calcParsFromExtentAndSpacing
static bool calcParsFromExtentAndSpacing(VP1HelperClassBase *, const double &extent, const double &spacing, const int &nmaxlimit, int &nmax, double &distmax)
Definition: VP1Floor.cxx:30
GuideSysController::Imp::ui_idprojsurfs
Ui::VP1GuidesSysSettingsIDProjSurfsForm ui_idprojsurfs
Definition: GuideSysController.cxx:57
GuideSysController::Imp::ui_lines
Ui::VP1LinesForm ui_lines
Definition: GuideSysController.cxx:59
VP1CollectionWidget::appropriateFixedWidth
int appropriateFixedWidth() const
Definition: VP1CollectionWidget.cxx:276
VP1Deserialise
Definition: VP1Deserialise.h:44
CloseEventEater
Definition: CloseEventEater.h:12
VP1HelperClassBase
Definition: VP1HelperClassBase.h:28
GuideSysController::lineLength
double lineLength() const
Definition: GuideSysController.cxx:622
GuideSysController::possibleChange_gridExtent
void possibleChange_gridExtent()
GuideSysController::floorExtent
double floorExtent() const
Definition: GuideSysController.cxx:437
VP1QtInventorUtils::sbcol2qcol
static QColor sbcol2qcol(const SbColor &)
Definition: VP1QtInventorUtils.cxx:1142
GuideSysController::floorSpacing
double floorSpacing() const
Definition: GuideSysController.cxx:443
GuideSysController::Imp::theclass
GuideSysController * theclass
Definition: GuideSysController.cxx:50
keylayer_zslicemap.sb
sb
Definition: keylayer_zslicemap.py:192
GuideSysController::possibleChange_floorHeight
void possibleChange_floorHeight()
VP1HelperClassBase::systemBase
IVP1System * systemBase() const
Definition: VP1HelperClassBase.h:50
GuideSysController::possibleChange_axesPosition
void possibleChange_axesPosition()
python.selection.number
number
Definition: selection.py:20
GuideSysController::Imp::pixelPartsEnabledByGUIOrDataUsage
InDetProjFlags::DetTypeFlags pixelPartsEnabledByGUIOrDataUsage() const
Definition: GuideSysController.cxx:729
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
GuideSysController::possibleChange_showMuonSpectrometer
void possibleChange_showMuonSpectrometer()
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
GuideSysController::possibleChange_relAxesThickness
void possibleChange_relAxesThickness()
VP1MaterialButton::createMaterial
static SoMaterial * createMaterial(const QColor &, const double &brightness=0.0, const double &transp=0.0)
Definition: VP1MaterialButton.cxx:786
VP1Msg::prefix_debug
static const char * prefix_debug()
Definition: VP1Msg.h:57
GuideSysController::possibleChange_showEtaCone3
void possibleChange_showEtaCone3()
InDetProjFlags::TRT_all
@ TRT_all
Definition: InDetProjFlags.h:43
VP1Controller::Imp::dialogs
QList< DialogInfo * > dialogs
Definition: VP1Controller.cxx:62
InDetProjFlags::Pixel_all
@ Pixel_all
Definition: InDetProjFlags.h:38
VP1Controller::actualRestoreSettings
virtual void actualRestoreSettings(VP1Deserialise &)=0
GuideSysController::Imp::ui_people
Ui::VP1GuidesSysSettingsPeopleForm ui_people
Definition: GuideSysController.cxx:55
GuideSysController::updateProjPartsCheckboxStates_TRT
void updateProjPartsCheckboxStates_TRT()
Definition: GuideSysController.cxx:819
python.PyAthena.v
v
Definition: PyAthena.py:154
GuideSysController::updateProjPartsCheckboxStates_Pixel
void updateProjPartsCheckboxStates_Pixel()
Definition: GuideSysController.cxx:799
VP1Msg::prefix_verbose
static const char * prefix_verbose()
Definition: VP1Msg.h:59
GuideSysController::possibleChange_shownTRTProjSurfaces
void possibleChange_shownTRTProjSurfaces()
a
TList * a
Definition: liststreamerinfos.cxx:10
GuideSysController::Imp::ui_trkvolumes
Ui::VP1TrackingVolumesForm ui_trkvolumes
Definition: GuideSysController.cxx:58
y
#define y
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
VP1Controller::testForChanges
void testForChanges()
Definition: VP1Controller.h:112
TRT_PAI_physicsConstants::mb
const double mb
1mb to cm2
Definition: TRT_PAI_physicsConstants.h:15
GuideSysController::possibleChange_etaConeValue3
void possibleChange_etaConeValue3()
GuideSysController::applicableTRTProjParts
InDetProjFlags::InDetProjPartsFlags applicableTRTProjParts() const
Definition: GuideSysController.cxx:685
VP1Controller::collWidgetContentChanged
void collWidgetContentChanged()
Definition: VP1Controller.cxx:232
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
VP1Controller::enabledButtonStateChanged
void enabledButtonStateChanged()
Definition: VP1Controller.cxx:167
GuideSysController::Imp::last_line_eta
double last_line_eta
Definition: GuideSysController.cxx:100
GuideSysController::possibleChange_showCartesianGrid
void possibleChange_showCartesianGrid()
VP1HelperClassBase::message
void message(const QString &) const
Definition: VP1HelperClassBase.cxx:49
str
Definition: BTagTrackIpAccessor.cxx:11
VP1Msg::verbose
static bool verbose()
Definition: VP1Msg.h:31
GuideSysController::applicableSCTProjPartsChanged
void applicableSCTProjPartsChanged(InDetProjFlags::InDetProjPartsFlags)
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
GuideSysController::possibleChange_showEtaCone2
void possibleChange_showEtaCone2()
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
GuideSysController::applicablePixelProjPartsChanged
void applicablePixelProjPartsChanged(InDetProjFlags::InDetProjPartsFlags)
VP1Controller::toggleDialogState
void toggleDialogState(QObject *widget=0)
Definition: VP1Controller.cxx:194
InDetProjFlags::NoProjections
@ NoProjections
Definition: InDetProjFlags.h:49
GuideSysController::possibleChange_showTrackingVolumes
void possibleChange_showTrackingVolumes()
GuideSysController::Imp::projPartsFlag
static InDetProjFlags::InDetProjPartsFlags projPartsFlag(bool barrelinner, bool barrelouter, bool endcapinner, bool endcapouter, bool endcap_hidenormalcyls_when_zasr=false, bool endcap_zasr=false)
Definition: GuideSysController.cxx:628
GuideSysController::possibleChange_applicablePixelProjParts
void possibleChange_applicablePixelProjParts()
GuideSysController::possibleChange_floorSpacing
void possibleChange_floorSpacing()
python.compressB64.c
def c
Definition: compressB64.py:93
GuideSysController::possibleChange_lineDirection
void possibleChange_lineDirection()
Definition: GuideSysController.cxx:1097
GuideSysController::possibleChange_shownPixelProjSurfaces
void possibleChange_shownPixelProjSurfaces()
nmax
const int nmax(200)
VP1Controller::initLastVars
void initLastVars()
Definition: VP1Controller.cxx:68
GuideSysController::possibleChange_showInnerDetector
void possibleChange_showInnerDetector()
IVP1System::message
void message(const QString &) const
Definition: IVP1System.cxx:336
VP1Controller::m_customTourEditor
static VP1CustomTourEditor * m_customTourEditor
Definition: VP1Controller.h:125
GuideSysController::possibleChange_etaConeValue2
void possibleChange_etaConeValue2()
VP1Controller::currentSettingsVersion
virtual int currentSettingsVersion() const =0