|
ATLAS Offline Software
|
#include <VertexSysController.h>
|
| VertexSysController (IVP1System *sys) |
|
virtual | ~VertexSysController () |
|
void | actualRestoreSettings (VP1Deserialise &) |
|
int | currentSettingsVersion () const |
|
void | actualSaveSettings (VP1Serialise &) const |
|
VP1CollectionWidget * | collWidget () const |
|
SoGroup * | drawOptions () const |
|
bool | printInfoOnClick () const |
|
bool | printVerboseInfoOnClick () const |
|
bool | zoomOnClick () const |
|
bool | truthCutPrimaryVertexOnly () const |
|
QPair< VertexCommonFlags::QUANTITY, VP1Interval > | truthCutQuantity () const |
|
VP1Interval | truthCutAllowedEta () const |
|
QList< VP1Interval > | truthCutAllowedPhi () const |
|
QPair< VertexCommonFlags::QUANTITY, double > | truthCrossLength () const |
|
VertexCommonFlags::ReconVertexTypeFlags | reconCutAllowedTypes () const |
|
double | reconVertexRepresentation () const |
|
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 |
|
IVP1System * | systemBase () const |
|
QString | helperClassName () const |
|
|
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) |
|
Definition at line 24 of file VertexSysController.h.
◆ VertexSysController()
VertexSysController::VertexSysController |
( |
IVP1System * |
sys | ) |
|
◆ ~VertexSysController()
VertexSysController::~VertexSysController |
( |
| ) |
|
|
virtual |
◆ actualRestoreSettings()
Implements VP1Controller.
Definition at line 184 of file VertexSysController.cxx.
186 if (
s.version()<0||
s.version()>0) {
187 message(
"Warning: State data in .vp1 file has unsupported version ("+
str(
s.version())+
")");
196 s.restore(
m_d->
ui_display.doubleSpinBox_reconVert_sphereRadius_mm);
197 s.restore(
m_d->
ui_display.doubleSpinBox_reconVert_ellipsoid_nsigma);
198 s.restore(
m_d->
ui_display.radioButton_truthCrossSize_ProptoQuantity,
200 s.restore(
m_d->
ui_display.radioButton_truthCrossSize_quantityIsEnergy,
201 m_d->
ui_display.radioButton_truthCrossSize_quantityIsAbsMomentum,
202 m_d->
ui_display.radioButton_truthCrossSize_quantityIsAbsTransverseMomentum,
205 s.restore(
m_d->
ui_display.doubleSpinBox_truthCrossSize_ProptoQuantity);
209 s.restore(
m_d->
ui_int.checkBox_printinfo_verbose);
214 s.restore(
m_d->
ui_cuts.checkBox_truthcut_primaryonly);
215 s.restore(
m_d->
ui_cuts.checkBox_truthcut_incomingParticleRequirement);
216 s.restore(
m_d->
ui_cuts.checkBox_truthcut_quantity_min);
217 s.restore(
m_d->
ui_cuts.checkBox_truthcut_quantity_max);
218 s.restore(
m_d->
ui_cuts.doubleSpinBox_truthcut_quantity_min_gev);
219 s.restore(
m_d->
ui_cuts.doubleSpinBox_truthcut_quantity_max_gev);
220 s.restore(
m_d->
ui_cuts.radioButton_truthcut_quantityIsEnergy,
221 m_d->
ui_cuts.radioButton_truthcut_quantityIsAbsMomentum,
222 m_d->
ui_cuts.radioButton_truthcut_quantityIsAbsTransverseMomentum,
223 m_d->
ui_cuts.radioButton_truthcut_quantityIsMass);
224 s.restore(
m_d->
ui_cuts.checkBox_reconcuts_onlyShowTypes);
225 s.restore(
m_d->
ui_cuts.checkBox_reconcut_type_primary);
226 s.restore(
m_d->
ui_cuts.checkBox_reconcut_type_secondary);
228 s.restore(
m_d->
ui_cuts.checkBox_reconcut_type_conversion);
229 s.restore(
m_d->
ui_cuts.checkBox_reconcut_type_kink);
230 s.restore(
m_d->
ui_cuts.checkBox_reconcut_type_pileup);
231 s.restore(
m_d->
ui_cuts.checkBox_reconcut_type_other);
◆ actualSaveSettings()
void VertexSysController::actualSaveSettings |
( |
VP1Serialise & |
s | ) |
const |
|
virtual |
Implements VP1Controller.
Definition at line 138 of file VertexSysController.cxx.
149 s.save(
m_d->
ui_display.radioButton_truthCrossSize_quantityIsEnergy,
150 m_d->
ui_display.radioButton_truthCrossSize_quantityIsAbsMomentum,
151 m_d->
ui_display.radioButton_truthCrossSize_quantityIsAbsTransverseMomentum,
154 s.save(
m_d->
ui_display.doubleSpinBox_truthCrossSize_ProptoQuantity);
158 s.save(
m_d->
ui_int.checkBox_printinfo_verbose);
163 s.save(
m_d->
ui_cuts.checkBox_truthcut_primaryonly);
164 s.save(
m_d->
ui_cuts.checkBox_truthcut_incomingParticleRequirement);
165 s.save(
m_d->
ui_cuts.checkBox_truthcut_quantity_min);
166 s.save(
m_d->
ui_cuts.checkBox_truthcut_quantity_max);
167 s.save(
m_d->
ui_cuts.doubleSpinBox_truthcut_quantity_min_gev);
168 s.save(
m_d->
ui_cuts.doubleSpinBox_truthcut_quantity_max_gev);
169 s.save(
m_d->
ui_cuts.radioButton_truthcut_quantityIsEnergy,
170 m_d->
ui_cuts.radioButton_truthcut_quantityIsAbsMomentum,
171 m_d->
ui_cuts.radioButton_truthcut_quantityIsAbsTransverseMomentum,
172 m_d->
ui_cuts.radioButton_truthcut_quantityIsMass);
173 s.save(
m_d->
ui_cuts.checkBox_reconcuts_onlyShowTypes);
174 s.save(
m_d->
ui_cuts.checkBox_reconcut_type_primary);
175 s.save(
m_d->
ui_cuts.checkBox_reconcut_type_secondary);
177 s.save(
m_d->
ui_cuts.checkBox_reconcut_type_conversion);
179 s.save(
m_d->
ui_cuts.checkBox_reconcut_type_pileup);
◆ addUpdateSlot()
const char * VP1Controller::addUpdateSlot |
( |
const char * |
slot | ) |
|
|
protectedinherited |
◆ changed()
template<class T >
bool VP1Controller::changed |
( |
T & |
lastval, |
|
|
const T & |
newval |
|
) |
| |
|
protectedinherited |
◆ collWidget()
◆ collWidgetContentChanged
void VP1Controller::collWidgetContentChanged |
( |
| ) |
|
|
slotinherited |
Definition at line 232 of file VP1Controller.cxx.
235 message(
"ERROR: Unexpected signal in collWidgetContentChanged slot!!");
238 QScrollArea* scrollarea =
dynamic_cast<QScrollArea*
>(
m_d->
collWidget->parent());
240 scrollarea =
dynamic_cast<QScrollArea*
>(
m_d->
collWidget->parent()->parent());
242 message(
"ERROR: m_d->collWidget not child or grandchild of a scroll area!!");
248 QScrollBar *
sb = scrollarea->verticalScrollBar();
251 scrollarea->setMinimumWidth(
width+2);
◆ connectToLastUpdateSlot() [1/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QButtonGroup * |
bg | ) |
|
|
protectedinherited |
◆ connectToLastUpdateSlot() [2/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QCheckBox * |
cb | ) |
|
|
protectedinherited |
◆ connectToLastUpdateSlot() [3/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QComboBox * |
cb | ) |
|
|
protectedinherited |
◆ connectToLastUpdateSlot() [4/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QDoubleSpinBox * |
dsb | ) |
|
|
protectedinherited |
◆ connectToLastUpdateSlot() [5/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QGroupBox * |
gb | ) |
|
|
protectedinherited |
◆ connectToLastUpdateSlot() [6/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QObject * |
sender, |
|
|
const char * |
signal |
|
) |
| |
|
protectedinherited |
◆ connectToLastUpdateSlot() [7/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QRadioButton * |
rb | ) |
|
|
protectedinherited |
◆ connectToLastUpdateSlot() [8/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QSlider * |
s | ) |
|
|
protectedinherited |
◆ connectToLastUpdateSlot() [9/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QSpinBox * |
sb | ) |
|
|
protectedinherited |
◆ connectToLastUpdateSlot() [10/10]
◆ currentSettingsVersion()
int VertexSysController::currentSettingsVersion |
( |
| ) |
const |
|
virtual |
◆ customTourEditor()
◆ defineRadioButtonGroup() [1/2]
QButtonGroup * VP1Controller::defineRadioButtonGroup |
( |
QList< QRadioButton * > |
l | ) |
|
|
protectedinherited |
Definition at line 300 of file VP1Controller.cxx.
302 QRadioButton * rb_checked(0);
303 for (QRadioButton *
rb :
l) {
304 if (
rb->isChecked()) {
309 QButtonGroup * radiogroup =
new QButtonGroup(
this);
310 for (QRadioButton *
rb :
l)
311 radiogroup->addButton(
rb);
313 rb_checked->setChecked(
true);
◆ 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.
293 QList<QRadioButton *>
l;
294 l << rb0 << rb1 << rb2 << rb3 << rb4 << rb5 << rb6 << rb7 << rb8 << rb9;
◆ drawOptions()
SoGroup * VertexSysController::drawOptions |
( |
| ) |
const |
◆ dummyUpdateTrigger
void VP1Controller::dummyUpdateTrigger |
( |
| ) |
|
|
signalinherited |
◆ emitRerandomise
void VertexSysController::emitRerandomise |
( |
| ) |
|
|
privateslot |
◆ enabledButtonStateChanged
void VP1Controller::enabledButtonStateChanged |
( |
| ) |
|
|
slotinherited |
Definition at line 167 of file VP1Controller.cxx.
169 Imp::DialogInfo * di(0);
171 if (di2->enabledButton==sender()) {
177 message(
"ERROR: enabledButtonStateChanged() triggered with unrecognised sender() ="
178 +QString(sender()?sender()->objectName():
"NULL"));
182 bool on(di->enabledButton->isChecked());
183 if (di->launchButton->isEnabled()!=on)
184 di->launchButton->setEnabled(on);
186 if (di->dialogWidget->isVisible())
187 di->dialogWidget->setVisible(
false);
188 if (di->dialogWidget->windowState()==Qt::WindowMinimized)
189 di->dialogWidget->setWindowState(Qt::WindowNoState);
◆ fallBackMaterial()
SoMaterial * VP1Controller::fallBackMaterial |
( |
| ) |
const |
|
protectedinherited |
◆ getMaterial()
Definition at line 437 of file VP1Controller.cxx.
440 message(
"ERROR: Null material button pointer");
443 QList<SoMaterial*> mats =
mb->handledMaterials();
444 if (mats.count()!=1) {
445 message(
"ERROR: No material in button "+
mb->objectName());
◆ helperClassName()
QString VP1HelperClassBase::helperClassName |
( |
| ) |
const |
|
inlineinherited |
◆ initDialog() [1/2]
void VP1Controller::initDialog |
( |
QWidget * |
dialog, |
|
|
QPushButton * |
launchbutton, |
|
|
QPushButton * |
closebutton, |
|
|
QAbstractButton * |
enabledButton = 0 |
|
) |
| |
|
protectedinherited |
Definition at line 123 of file VP1Controller.cxx.
125 QString txt(enabledButton?enabledButton->text():launchButton->text());
126 txt.replace(
"&&",
"&");
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);
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);
141 launchButton->setEnabled(enabledButton->isChecked());
143 m_d->
dialogs <<
new Imp::DialogInfo(launchButton,dialog,enabledButton);
149 dialog->installEventFilter(closeEventEater);
152 closeButton->setText(
"&Close");
153 closeButton->setToolTip(
"Close this dialog [Esc]");
154 connect(closeButton,SIGNAL(clicked()),dialog,SLOT(close()));
156 connect(
new QShortcut(QKeySequence(Qt::Key_Escape), dialog),SIGNAL(activated()),dialog,SLOT(close()));
161 maxwidth =
std::max(maxwidth,di->launchButton->sizeHint().width());
163 di->launchButton->setMinimumWidth(maxwidth);
◆ 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.
145 QWidget *
w =
new QWidget(0,Qt::WindowStaysOnTopHint);
147 initDialog(
w, launchbutton, theUI.pushButton_close,enabledButton);
◆ initLastVars()
void VP1Controller::initLastVars |
( |
| ) |
|
|
inherited |
◆ initVarsMode()
bool VP1Controller::initVarsMode |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ message() [1/3]
void VP1HelperClassBase::message |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ message() [2/3]
void VP1HelperClassBase::message |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ message() [3/3]
void VP1HelperClassBase::message |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageDebug() [1/3]
void VP1HelperClassBase::messageDebug |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageDebug() [2/3]
void VP1HelperClassBase::messageDebug |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageDebug() [3/3]
void VP1HelperClassBase::messageDebug |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageVerbose() [1/3]
void VP1HelperClassBase::messageVerbose |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageVerbose() [2/3]
void VP1HelperClassBase::messageVerbose |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageVerbose() [3/3]
void VP1HelperClassBase::messageVerbose |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ possibleChange_reconCutAllowedTypes
void VertexSysController::possibleChange_reconCutAllowedTypes |
( |
| ) |
|
|
privateslot |
◆ possibleChange_reconVertexRepresentation
void VertexSysController::possibleChange_reconVertexRepresentation |
( |
| ) |
|
|
privateslot |
◆ possibleChange_truthCrossLength
void VertexSysController::possibleChange_truthCrossLength |
( |
| ) |
|
|
privateslot |
◆ possibleChange_truthCutAllowedEta
void VertexSysController::possibleChange_truthCutAllowedEta |
( |
| ) |
|
|
privateslot |
◆ possibleChange_truthCutAllowedPhi
void VertexSysController::possibleChange_truthCutAllowedPhi |
( |
| ) |
|
|
privateslot |
◆ possibleChange_truthCutPrimaryVertexOnly
void VertexSysController::possibleChange_truthCutPrimaryVertexOnly |
( |
| ) |
|
|
privateslot |
◆ possibleChange_truthCutQuantity
void VertexSysController::possibleChange_truthCutQuantity |
( |
| ) |
|
|
privateslot |
◆ printInfoOnClick()
bool VertexSysController::printInfoOnClick |
( |
| ) |
const |
◆ printVerboseInfoOnClick()
bool VertexSysController::printVerboseInfoOnClick |
( |
| ) |
const |
◆ reconCutAllowedTypes()
VertexCommonFlags::ReconVertexTypeFlags VertexSysController::reconCutAllowedTypes |
( |
| ) |
const |
Definition at line 318 of file VertexSysController.cxx.
320 if (!
m_d->
ui_cuts.checkBox_reconcuts_onlyShowTypes->isChecked())
323 VertexCommonFlags::ReconVertexTypeFlags
f;
325 if (
m_d->
ui_cuts.checkBox_reconcut_type_primary->isChecked())
327 if (
m_d->
ui_cuts.checkBox_reconcut_type_secondary->isChecked())
329 if (
m_d->
ui_cuts.checkBox_reconcut_type_v0->isChecked())
331 if (
m_d->
ui_cuts.checkBox_reconcut_type_conversion->isChecked())
333 if (
m_d->
ui_cuts.checkBox_reconcut_type_kink->isChecked())
335 if (
m_d->
ui_cuts.checkBox_reconcut_type_pileup->isChecked())
337 if (
m_d->
ui_cuts.checkBox_reconcut_type_other->isChecked())
◆ reconCutAllowedTypesChanged
void VertexSysController::reconCutAllowedTypesChanged |
( |
VertexCommonFlags::ReconVertexTypeFlags |
| ) |
|
|
signal |
◆ reconVertexRepresentation()
double VertexSysController::reconVertexRepresentation |
( |
| ) |
const |
◆ reconVertexRepresentationChanged
void VertexSysController::reconVertexRepresentationChanged |
( |
const double & |
| ) |
|
|
signal |
◆ rerandomise
void VertexSysController::rerandomise |
( |
| ) |
|
|
signal |
◆ restoreSettings()
void VP1Controller::restoreSettings |
( |
QByteArray |
ba | ) |
|
|
inherited |
Definition at line 387 of file VP1Controller.cxx.
397 s.warnUnrestored((QWidget*)(
this));
399 s.warnUnrestored(di->dialogWidget);
◆ saveSettings()
QByteArray VP1Controller::saveSettings |
( |
| ) |
const |
|
inherited |
Definition at line 405 of file VP1Controller.cxx.
418 s.warnUnsaved((QWidget*)(
this));
420 s.warnUnsaved(di->dialogWidget);
◆ setCustomTourEditor()
◆ setHelperClassName()
void VP1HelperClassBase::setHelperClassName |
( |
const QString & |
n | ) |
|
|
inlineprotectedinherited |
◆ setSystemBasePointer()
void VP1HelperClassBase::setSystemBasePointer |
( |
IVP1System * |
sys | ) |
|
|
inherited |
◆ setupCollWidgetInScrollArea()
void VP1Controller::setupCollWidgetInScrollArea |
( |
QScrollArea * |
scrollarea, |
|
|
VP1CollectionWidget * |
collWidget |
|
) |
| |
|
protectedinherited |
Definition at line 255 of file VP1Controller.cxx.
257 if (!scrollarea || !collWidget) {
258 message(
"ERROR: NULL scrollarea or collWidget");
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);
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);
271 scrollarea->setContentsMargins(0,0,0,0);
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");
◆ str() [1/30]
◆ 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 |
◆ str() [4/30]
static QString VP1String::str |
( |
const double & |
d | ) |
|
|
inlinestaticinherited |
◆ str() [5/30]
static QString VP1String::str |
( |
const float & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [6/30]
◆ str() [7/30]
QString VP1String::str |
( |
const QColor & |
c | ) |
|
|
staticinherited |
Definition at line 30 of file VP1String.cxx.
32 return c.isValid() ?
c.name() :
"Invalid";
◆ str() [8/30]
template<class T >
static QString VP1String::str |
( |
const QFlags< T > & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [9/30]
template<class T >
static QString VP1String::str |
( |
const QList< T > & |
t | ) |
|
|
inlinestaticinherited |
◆ str() [10/30]
static QString VP1String::str |
( |
const QString & |
s | ) |
|
|
inlinestaticinherited |
◆ str() [11/30]
QString VP1String::str |
( |
const SbColor & |
c | ) |
|
|
staticinherited |
◆ str() [12/30]
QString VP1String::str |
( |
const SbVec2d & |
v | ) |
|
|
staticinherited |
◆ str() [13/30]
QString VP1String::str |
( |
const SbVec2f & |
v | ) |
|
|
staticinherited |
◆ str() [14/30]
QString VP1String::str |
( |
const SbVec2s & |
v | ) |
|
|
staticinherited |
◆ str() [15/30]
QString VP1String::str |
( |
const SbVec3d & |
v | ) |
|
|
staticinherited |
◆ str() [16/30]
QString VP1String::str |
( |
const SbVec3f & |
v | ) |
|
|
staticinherited |
◆ str() [17/30]
QString VP1String::str |
( |
const SbVec3s & |
v | ) |
|
|
staticinherited |
◆ str() [18/30]
QString VP1String::str |
( |
const SbVec4d & |
v | ) |
|
|
staticinherited |
◆ str() [19/30]
QString VP1String::str |
( |
const SbVec4f & |
v | ) |
|
|
staticinherited |
◆ 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.
54 return QString (
s.str().c_str());
◆ str() [22/30]
◆ str() [23/30]
static QString VP1String::str |
( |
int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [24/30]
static QString VP1String::str |
( |
long |
n | ) |
|
|
inlinestaticinherited |
◆ str() [25/30]
static QString VP1String::str |
( |
qlonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [26/30]
static QString VP1String::str |
( |
qulonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [27/30]
static QString VP1String::str |
( |
short int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [28/30]
static QString VP1String::str |
( |
uint |
n | ) |
|
|
inlinestaticinherited |
◆ str() [29/30]
static QString VP1String::str |
( |
ulong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [30/30]
static QString VP1String::str |
( |
unsigned short int |
n | ) |
|
|
inlinestaticinherited |
◆ systemBase()
IVP1System* VP1HelperClassBase::systemBase |
( |
| ) |
const |
|
inlineinherited |
◆ testForChanges
void VP1Controller::testForChanges |
( |
| ) |
|
|
inlineprotectedslotinherited |
◆ toggleDialogState
void VP1Controller::toggleDialogState |
( |
QObject * |
widget = 0 | ) |
|
|
slotinherited |
Definition at line 194 of file VP1Controller.cxx.
196 Imp::DialogInfo * di(0);
198 if (di2->launchButton==sender() || (widget && di2->dialogWidget==widget)) {
205 message(
"ERROR: toggleDialogState() triggered with unrecognised sender() ="
206 +QString(sender()?sender()->objectName():
"NULL"));
210 bool oldvis = di->dialogWidget->isVisible();
212 if (oldvis&&di->dialogWidget->windowState()==Qt::WindowMinimized) {
213 di->dialogWidget->setWindowState(Qt::WindowNoState);
215 di->dialogWidget->setVisible(!oldvis);
216 if (!oldvis && di->neverShown) {
217 di->neverShown =
false;
226 if (di->launchButton->isCheckable() && oldvis){
227 di->launchButton->setChecked(
false);
◆ toString() [1/7]
QString VP1Controller::toString |
( |
const bool & |
par | ) |
|
|
staticprotectedinherited |
◆ toString() [2/7]
◆ toString() [3/7]
◆ toString() [4/7]
◆ toString() [5/7]
template<class T >
static QString VertexSysController::toString |
( |
const T & |
t | ) |
|
|
inlinestaticprivate |
◆ toString() [6/7]
◆ toString() [7/7]
QString VP1Controller::toString |
( |
SbColor4f |
p | ) |
|
|
staticprotectedinherited |
◆ truthCrossLength()
Definition at line 262 of file VertexSysController.cxx.
266 if (
m_d->
ui_display.radioButton_truthCrossSize_Fixed->isChecked()) {
270 if (
m_d->
ui_display.radioButton_truthCrossSize_quantityIsAbsMomentum->isChecked())
272 else if (
m_d->
ui_display.radioButton_truthCrossSize_quantityIsAbsTransverseMomentum->isChecked())
274 else if (
m_d->
ui_display.radioButton_truthCrossSize_quantityIsMass->isChecked())
277 return QPair<VertexCommonFlags::QUANTITY,double>(quantity,
range);
◆ truthCrossLengthChanged
◆ truthCutAllowedEta()
VP1Interval VertexSysController::truthCutAllowedEta |
( |
| ) |
const |
◆ truthCutAllowedEtaChanged
◆ truthCutAllowedPhi()
QList< VP1Interval > VertexSysController::truthCutAllowedPhi |
( |
| ) |
const |
◆ truthCutAllowedPhiChanged
void VertexSysController::truthCutAllowedPhiChanged |
( |
const QList< VP1Interval > & |
| ) |
|
|
signal |
◆ truthCutPrimaryVertexOnly()
bool VertexSysController::truthCutPrimaryVertexOnly |
( |
| ) |
const |
◆ truthCutPrimaryVertexOnlyChanged
void VertexSysController::truthCutPrimaryVertexOnlyChanged |
( |
bool |
| ) |
|
|
signal |
◆ truthCutQuantity()
Definition at line 281 of file VertexSysController.cxx.
286 if (!
m_d->
ui_cuts.checkBox_truthcut_incomingParticleRequirement->isChecked())
287 return QPair<VertexCommonFlags::QUANTITY,VP1Interval>(quantity,
range);
289 if (
m_d->
ui_cuts.checkBox_truthcut_quantity_min->isChecked())
291 if (
m_d->
ui_cuts.checkBox_truthcut_quantity_max->isChecked())
295 return QPair<VertexCommonFlags::QUANTITY,VP1Interval>(quantity,
range);
297 if (
m_d->
ui_cuts.radioButton_truthcut_quantityIsAbsMomentum->isChecked())
299 else if (
m_d->
ui_cuts.radioButton_truthcut_quantityIsAbsTransverseMomentum->isChecked())
301 else if (
m_d->
ui_cuts.radioButton_truthcut_quantityIsMass->isChecked())
304 return QPair<VertexCommonFlags::QUANTITY,VP1Interval>(quantity,
range);
◆ truthCutQuantityChanged
◆ verbose()
static bool VP1HelperClassBase::verbose |
( |
| ) |
|
|
inlinestaticinherited |
◆ warnUndeletedInstances()
void VP1HelperClassBase::warnUndeletedInstances |
( |
| ) |
|
|
staticinherited |
Definition at line 183 of file VP1HelperClassBase.cxx.
185 if (vp1helperclassbase_instanceMap.empty())
187 std::cout <<
"WARNING: Detected "<<vp1helperclassbase_instanceMap.size()<<
" undeleted helper class instances:"<<std::endl;
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;
◆ zoomOnClick()
bool VertexSysController::zoomOnClick |
( |
| ) |
const |
◆ m_customTourEditor
◆ m_d
Imp* VertexSysController::m_d |
|
private |
◆ m_helpername
QString VP1HelperClassBase::m_helpername |
|
privateinherited |
◆ m_initVarsMode
bool VP1Controller::m_initVarsMode |
|
privateinherited |
◆ m_system
◆ s_vp1verbose
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
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)
const char * addUpdateSlot(const char *slot)
void setupCollWidgetInScrollArea(QScrollArea *scrollarea, VP1CollectionWidget *collWidget)
static QString toString(const T &par)
void possibleChange_truthCrossLength()
const char * lastUpdateSlot
void dummyUpdateTrigger()
VP1Controller(IVP1System *sys, const QString &classname)
void possibleChange_truthCutQuantity()
void messageVerbose(const QString &) const
SoMaterial * fallBackMaterial() const
static const bool s_vp1verbose
void initDialog(T &theUI, QPushButton *launchbutton, QAbstractButton *enabledButton=0)
VP1CollectionWidget * collWidget
void possibleChange_truthCutPrimaryVertexOnly()
virtual void actualSaveSettings(VP1Serialise &) const =0
static QString str(const QString &s)
void messageDebug(const QString &) const
void connectToLastUpdateSlot(QObject *sender, const char *signal)
static QString toString(const QUANTITY &)
void possibleChange_reconVertexRepresentation()
bool initVarsMode() const
static const char * prefix_msg()
SoMaterial * fallBackMaterial
const QString & name() const
Ui::VertexSysSettingsColouringForm ui_display
static QColor sbcol2qcol(const SbColor &)
IVP1System * systemBase() const
static const char * prefix_debug()
void possibleChange_reconCutAllowedTypes()
QList< DialogInfo * > dialogs
virtual void actualRestoreSettings(VP1Deserialise &)=0
static const char * prefix_verbose()
VP1CollectionWidget * collWidget
Ui::VertexSysSettingsInteractionsForm ui_int
const double mb
1mb to cm2
void possibleChange_truthCutAllowedPhi()
void collWidgetContentChanged()
Ui::VP1VertexControllerForm ui
void enabledButtonStateChanged()
void message(const QString &) const
void toggleDialogState(QObject *widget=0)
void possibleChange_truthCutAllowedEta()
void message(const QString &) const
static VP1CustomTourEditor * m_customTourEditor
Ui::VertexSysSettingsCutsForm ui_cuts
virtual int currentSettingsVersion() const =0