11 #include "ui_pertrackcollectionsettings_form.h"
12 #include "ui_settings_cuts_form.h"
14 #include "CLHEP/Units/SystemOfUnits.h"
16 #include "Inventor/nodes/SoDrawStyle.h"
17 #include "Inventor/nodes/SoLightModel.h"
23 #include <QDataStream>
24 #include <QMouseEvent>
25 #include <QDragEnterEvent>
78 editwindow =
new QWidget(
nullptr,Qt::WindowStaysOnTopHint);
180 setAcceptDrops(
true);
201 if (objectName().isEmpty())
202 setObjectName(
"TrackCollectionSettingsButton");
321 if (
event->button() == Qt::LeftButton)
323 QPushButton::mousePressEvent(
event);
329 if (
event->source()!=
this &&
event->mimeData()->hasFormat(
"vp1/material"))
330 event->acceptProposedAction();
336 if (!(
event->buttons() & Qt::LeftButton))
339 < QApplication::startDragDistance())
342 QDrag *drag =
new QDrag(
this);
343 QMimeData *mimeData =
new QMimeData;
352 mimeData->setData(
"vp1/material", byteArray);
381 drag->setMimeData(mimeData);
382 drag->exec(Qt::CopyAction | Qt::MoveAction);
388 QByteArray
data =
event->mimeData()->data(
"vp1/material");
389 event->acceptProposedAction();
507 min = (
m_d->
editwindow_ui.checkBox_cut_minpt->isChecked() ? minFromInterface : -std::numeric_limits<double>::infinity());
508 max = (
m_d->
editwindow_ui.checkBox_cut_maxpt->isChecked() ? maxFromInterface : std::numeric_limits<double>::infinity());
510 min = (
m_d->
editwindow_ui.checkBox_cut_maxpt->isChecked() ? -maxFromInterface : -std::numeric_limits<double>::infinity());
511 max = (
m_d->
editwindow_ui.checkBox_cut_minpt->isChecked() ? -minFromInterface : std::numeric_limits<double>::infinity());
543 if (!npixel&&!nsct&&!ntrt&&!nmuon&&!nprecmuon)
545 l << npixel << nsct << ntrt << nmuon << nprecmuon;
556 return m_d->
editwindow_ui.checkBox_cut_truthtracks_creationvertexinIR->isChecked();
562 return m_d->
editwindow_ui.checkBox_cut_truthtracks_excludebarcode0->isChecked();
568 return m_d->
editwindow_ui.checkBox_cut_truthtracks_excludeneutrals->isChecked();
611 messageVerbose(
"TrackCollectionSettingsButton::possibleChange_cutRequiredNHits");
620 messageVerbose(
"TrackCollectionSettingsButton::possibleChange_cutRequiredDetectorElement");