ATLAS Offline Software
Loading...
Searching...
No Matches
AODSystemController::Imp Class Reference
Collaboration diagram for AODSystemController::Imp:

Public Member Functions

bool updateComboBoxContents (QComboBox *cb, QStringList l, QString &restoredSelection)

Public Attributes

AODSystemControllertheclass
Ui::VP1AODControllerForm ui
AODCollWidgetcollwidget
Ui::AODObjectBrowser ui_objBrowser
QTreeWidget * objBrowserWidget = nullptr
AODSysCommonDatacommon = nullptr

Static Public Attributes

static const QString noneAvailString = QString("None available")

Detailed Description

Definition at line 55 of file AODSystemController.cxx.

Member Function Documentation

◆ updateComboBoxContents()

bool AODSystemController::Imp::updateComboBoxContents ( QComboBox * cb,
QStringList l,
QString & restoredSelection )

Definition at line 204 of file AODSystemController.cxx.

205{
206 //current selection:
207 QString ct = cb->currentText();
208 if (ct==Imp::noneAvailString)
209 ct = "";
210
211 bool save = cb->blockSignals(true);
212
213 cb->clear();
214
215 bool enabled = false;
216 if (l.isEmpty()) {
217 cb->addItem(Imp::noneAvailString);
218 cb->setEnabled(false);
219 } else {
220 cb->addItems(l);
221
222 int i = restoredSelection.isEmpty() ? -1 : cb->findText(restoredSelection);
223 if (i<0)
224 i = ct.isEmpty() ? -1 : cb->findText(ct);
225 restoredSelection = "";
226
227 if (i>=0) {
228 cb->setCurrentIndex(i);
229 } else {
230 //Let's try to pick the default to be VP1Extrapolater over
231 //AtlasExtrapolater over... whatever (same for fitters):
232 int i_vp1(-1), i_atlas(-1);
233 for (int j = 0; j <cb->count();++j) {
234 if (i_vp1==-1&&cb->itemText(j).contains("vp1",Qt::CaseInsensitive))
235 i_vp1 = j;
236 if (i_atlas==-1&&cb->itemText(j).contains("atlas",Qt::CaseInsensitive))
237 i_atlas = j;
238 }
239 if (i_vp1>=0)
240 cb->setCurrentIndex(i_vp1);
241 else if (i_atlas>=0)
242 cb->setCurrentIndex(i_atlas);
243 }
245 enabled = true;
246 cb->setEnabled(true);
247 }
248
249 if (!save)
250 cb->blockSignals(false);
251 return enabled;
252}
static const QString noneAvailString
l
Printing final latex table to .tex output file.
float j(const xAOD::IParticle &, const xAOD::TrackMeasurementValidation &hit, const Eigen::Matrix3d &jab_inv)
save(self, fileName="./columbo.out")
Definition checkTP.py:176

Member Data Documentation

◆ collwidget

AODCollWidget* AODSystemController::Imp::collwidget

Definition at line 59 of file AODSystemController.cxx.

◆ common

AODSysCommonData* AODSystemController::Imp::common = nullptr

Definition at line 70 of file AODSystemController.cxx.

◆ noneAvailString

const QString AODSystemController::Imp::noneAvailString = QString("None available")
static

Definition at line 61 of file AODSystemController.cxx.

◆ objBrowserWidget

QTreeWidget* AODSystemController::Imp::objBrowserWidget = nullptr

Definition at line 69 of file AODSystemController.cxx.

◆ theclass

AODSystemController* AODSystemController::Imp::theclass

Definition at line 57 of file AODSystemController.cxx.

◆ ui

Ui::VP1AODControllerForm AODSystemController::Imp::ui

Definition at line 58 of file AODSystemController.cxx.

◆ ui_objBrowser

Ui::AODObjectBrowser AODSystemController::Imp::ui_objBrowser

Definition at line 67 of file AODSystemController.cxx.


The documentation for this class was generated from the following file: