|  | ATLAS Offline Software
    | 
 
 
 
#include <CaloClusterSysController.h>
|  | 
|  | CaloClusterSysController (IVP1System *sys) | 
|  | 
| virtual | ~CaloClusterSysController () | 
|  | 
| 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 | 
|  | 
| QPair< bool, double > | scale () const | 
|  | 
| VP1Interval | cutAllowedEnergies () const | 
|  | 
| VP1Interval | cutAllowedEta () const | 
|  | 
| QList< VP1Interval > | cutAllowedPhi () const | 
|  | 
| bool | showVolumeOutLines () const | 
|  | 
| bool | useTransverseEnergies () const | 
|  | 
| void | initLastVars () | 
|  | 
| QByteArray | saveSettings () const | 
|  | 
| void | restoreSettings (const QByteArray &) | 
|  | 
| void | setSystemBasePointer (IVP1System *sys) | 
|  | 
| void | message (const QString &) const | 
|  | 
| void | message (const QStringList &, const QString &addtoend="") const | 
|  | 
| void | message (const QString &addtostart, const QStringList &, const QString &addtoend="") const | 
|  | 
| void | messageDebug (const QString &) const | 
|  | 
| void | messageDebug (const QStringList &, const QString &addtoend="") const | 
|  | 
| void | messageDebug (const QString &addtostart, const QStringList &, const QString &addtoend="") const | 
|  | 
| void | messageVerbose (const QString &) const | 
|  | 
| void | messageVerbose (const QStringList &, const QString &addtoend="") const | 
|  | 
| void | messageVerbose (const QString &addtostart, const QStringList &, const QString &addtoend="") const | 
|  | 
| IVP1System * | systemBase () const | 
|  | 
| 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 (const QList< QRadioButton * > &) | 
|  | 
| SoMaterial * | getMaterial (VP1MaterialButton *) const | 
|  | 
| SoMaterial * | fallBackMaterial () const | 
|  | 
| void | setHelperClassName (const QString &n) | 
|  | 
Definition at line 23 of file CaloClusterSysController.h.
 
◆ CaloClusterSysController()
      
        
          | CaloClusterSysController::CaloClusterSysController | ( | IVP1System * | sys | ) |  | 
      
 
 
◆ ~CaloClusterSysController()
  
  | 
        
          | CaloClusterSysController::~CaloClusterSysController | ( |  | ) |  |  | virtual | 
 
 
◆ actualRestoreSettings()
  
  | 
        
          | void CaloClusterSysController::actualRestoreSettings | ( | VP1Deserialise & | s | ) |  |  | virtual | 
 
Implements VP1Controller.
Definition at line 153 of file CaloClusterSysController.cxx.
  155   if (
s.version()<0||
s.version()>3) {
 
  156     message(
"Warning: State data in .vp1 file has unsupported version ("+
str(
s.version())+
")");
 
  170   if (
s.version()>=1) {
 
  172     s.restore(
m_d->
ui_int.checkBox_printinfo_verbose);
 
  175   if (
s.version()>=2) {
 
  180     s.restore(
m_d->
ui.radioButton_energyMode_Et,
m_d->
ui.radioButton_energyMode_E);
 
 
 
 
◆ actualSaveSettings()
  
  | 
        
          | void CaloClusterSysController::actualSaveSettings | ( | VP1Serialise & | s | ) | const |  | virtual | 
 
 
◆ 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 CaloClusterSysController::currentSettingsVersion | ( |  | ) | const |  | virtual | 
 
 
◆ customTourEditor()
◆ cutAllowedEnergies()
      
        
          | VP1Interval CaloClusterSysController::cutAllowedEnergies | ( |  | ) | const | 
      
 
 
◆ cutAllowedEnergiesChanged
  
  | 
        
          | void CaloClusterSysController::cutAllowedEnergiesChanged | ( | const VP1Interval & |  | ) |  |  | signal | 
 
 
◆ cutAllowedEta()
      
        
          | VP1Interval CaloClusterSysController::cutAllowedEta | ( |  | ) | const | 
      
 
 
◆ cutAllowedEtaChanged
◆ cutAllowedPhi()
      
        
          | QList< VP1Interval > CaloClusterSysController::cutAllowedPhi | ( |  | ) | const | 
      
 
 
◆ cutAllowedPhiChanged
  
  | 
        
          | void CaloClusterSysController::cutAllowedPhiChanged | ( | const QList< VP1Interval > & |  | ) |  |  | signal | 
 
 
◆ defineRadioButtonGroup() [1/2]
  
  | 
        
          | QButtonGroup * VP1Controller::defineRadioButtonGroup | ( | const 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 * CaloClusterSysController::drawOptions | ( |  | ) | const | 
      
 
 
◆ dummyUpdateTrigger
  
  | 
        
          | void VP1Controller::dummyUpdateTrigger | ( |  | ) |  |  | signalinherited | 
 
 
◆ 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);
 
 
 
 
◆ etaCutPresetButtonTriggered
  
  | 
        
          | void CaloClusterSysController::etaCutPresetButtonTriggered | ( |  | ) |  |  | privateslot | 
 
Definition at line 191 of file CaloClusterSysController.cxx.
  196   if (sender()==
m_d->
ui_cuts.toolButton_quicketa_barrel)
 
  197     m_d->
ui_cuts.etaPhiCutWidget->setEtaCut(cracketa);
 
  198   else if (sender()==
m_d->
ui_cuts.toolButton_quicketa_endcapA)
 
  199     m_d->
ui_cuts.etaPhiCutWidget->setEtaCut(cracketa,9.0);
 
  200   else if (sender()==
m_d->
ui_cuts.toolButton_quicketa_endcapC)
 
  201     m_d->
ui_cuts.etaPhiCutWidget->setEtaCut(-9.0,-cracketa);
 
  203     message(
"ERROR: Unknown sender() in etaCutPresetButtonTriggered() slot.");
 
 
 
 
◆ 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()
  
  | 
        
          | const 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 | 
 
Definition at line 131 of file VP1HelperClassBase.cxx.
  133   if (addtostart.isEmpty()) {
 
  137   if (addtoend.isEmpty()) {
 
  138     for (
const QString& 
s :  
l)
 
  141     for (
const QString& 
s :  
l)
 
 
 
 
◆ message() [3/3]
  
  | 
        
          | void VP1HelperClassBase::message | ( | const QStringList & | l, |  
          |  |  | const QString & | addtoend = "" |  
          |  | ) |  | const |  | inherited | 
 
Definition at line 91 of file VP1HelperClassBase.cxx.
   93   if (addtoend.isEmpty()) {
 
   94     for (
const QString& 
s :  
l)
 
   97     for (
const QString& 
s :  
l)
 
 
 
 
◆ 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 | 
 
Definition at line 147 of file VP1HelperClassBase.cxx.
  151   if (addtostart.isEmpty()) {
 
  155   if (addtoend.isEmpty()) {
 
  156     for (
const QString& 
s :  
l)
 
  159     for (
const QString& 
s :  
l)
 
 
 
 
◆ messageDebug() [3/3]
  
  | 
        
          | void VP1HelperClassBase::messageDebug | ( | const QStringList & | l, |  
          |  |  | const QString & | addtoend = "" |  
          |  | ) |  | const |  | inherited | 
 
Definition at line 103 of file VP1HelperClassBase.cxx.
  107   if (addtoend.isEmpty()) {
 
  108     for (
const QString& 
s :  
l)
 
  111     for (
const QString& 
s :  
l)
 
 
 
 
◆ 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 | 
 
Definition at line 165 of file VP1HelperClassBase.cxx.
  169   if (addtostart.isEmpty()) {
 
  173   if (addtoend.isEmpty()) {
 
  174     for (
const QString& 
s :  
l)
 
  177     for (
const QString& 
s :  
l)
 
 
 
 
◆ messageVerbose() [3/3]
  
  | 
        
          | void VP1HelperClassBase::messageVerbose | ( | const QStringList & | l, |  
          |  |  | const QString & | addtoend = "" |  
          |  | ) |  | const |  | inherited | 
 
Definition at line 117 of file VP1HelperClassBase.cxx.
  121   if (addtoend.isEmpty()) {
 
  122     for (
const QString& 
s :  
l)
 
  125     for (
const QString& 
s :  
l)
 
 
 
 
◆ possibleChange_cutAllowedEnergies
  
  | 
        
          | void CaloClusterSysController::possibleChange_cutAllowedEnergies | ( |  | ) |  |  | privateslot | 
 
 
◆ possibleChange_cutAllowedEta
  
  | 
        
          | void CaloClusterSysController::possibleChange_cutAllowedEta | ( |  | ) |  |  | privateslot | 
 
 
◆ possibleChange_cutAllowedPhi
  
  | 
        
          | void CaloClusterSysController::possibleChange_cutAllowedPhi | ( |  | ) |  |  | privateslot | 
 
 
◆ possibleChange_scale
  
  | 
        
          | void CaloClusterSysController::possibleChange_scale | ( |  | ) |  |  | slot | 
 
 
◆ possibleChange_showVolumeOutLines
  
  | 
        
          | void CaloClusterSysController::possibleChange_showVolumeOutLines | ( |  | ) |  |  | privateslot | 
 
 
◆ possibleChange_useTransverseEnergies
  
  | 
        
          | void CaloClusterSysController::possibleChange_useTransverseEnergies | ( |  | ) |  |  | privateslot | 
 
 
◆ printInfoOnClick()
      
        
          | bool CaloClusterSysController::printInfoOnClick | ( |  | ) | const | 
      
 
 
◆ printVerboseInfoOnClick()
      
        
          | bool CaloClusterSysController::printVerboseInfoOnClick | ( |  | ) | const | 
      
 
 
◆ restoreSettings()
  
  | 
        
          | void VP1Controller::restoreSettings | ( | const QByteArray & | ba | ) |  |  | inherited | 
 
Definition at line 387 of file VP1Controller.cxx.
  397   s.warnUnrestored(
static_cast<QWidget*
>(
this));
 
  399     s.warnUnrestored(di->dialogWidget);
 
 
 
 
◆ saveSettings()
  
  | 
        
          | QByteArray VP1Controller::saveSettings | ( |  | ) | const |  | inherited | 
 
Definition at line 405 of file VP1Controller.cxx.
  418   s.warnUnsaved(
static_cast<const QWidget*
>(
this));
 
  420     s.warnUnsaved(di->dialogWidget);
 
 
 
 
◆ scale()
      
        
          | QPair< bool, double > CaloClusterSysController::scale | ( |  | ) | const | 
      
 
Definition at line 221 of file CaloClusterSysController.cxx.
  223   const bool relative = 
m_d->
ui_display.radioButton_relativeScale->isChecked();
 
  224   const bool logscale = 
m_d->
ui_display.checkBox_logscale->isChecked();
 
  229     if ( col && highestvisibleenergy < col->highestVisibleClusterEnergy() )
 
  247   if (scl!=scl||scl>maxscale)
 
  251   return QPair<bool,double>(logscale,scl);
 
 
 
 
◆ scaleChanged
  
  | 
        
          | void CaloClusterSysController::scaleChanged | ( | const QPair< bool, double > & |  | ) |  |  | signal | 
 
 
◆ 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");
 
 
 
 
◆ showVolumeOutLines()
      
        
          | bool CaloClusterSysController::showVolumeOutLines | ( |  | ) | const | 
      
 
 
◆ showVolumeOutLinesChanged
  
  | 
        
          | void CaloClusterSysController::showVolumeOutLinesChanged | ( | bool |  | ) |  |  | signal | 
 
 
◆ 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/5]
  
  | 
        
          | QString VP1Controller::toString | ( | const bool & | par | ) |  |  | staticprotectedinherited | 
 
 
◆ toString() [2/5]
◆ toString() [3/5]
  
  | 
        
          | QString CaloClusterSysController::toString | ( | const QPair< bool, double > & | par | ) |  |  | staticprivate | 
 
 
◆ toString() [4/5]
template<class T > 
  
  | 
        
          | static QString CaloClusterSysController::toString | ( | const T & | t | ) |  |  | inlinestaticprivate | 
 
 
◆ toString() [5/5]
  
  | 
        
          | QString VP1Controller::toString | ( | SbColor4f | p | ) |  |  | staticprotectedinherited | 
 
 
◆ useTransverseEnergies()
      
        
          | bool CaloClusterSysController::useTransverseEnergies | ( |  | ) | const | 
      
 
 
◆ useTransverseEnergiesChanged
  
  | 
        
          | void CaloClusterSysController::useTransverseEnergiesChanged | ( | bool |  | ) |  |  | signal | 
 
 
◆ 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 CaloClusterSysController::zoomOnClick | ( |  | ) | const | 
      
 
 
◆ m_customTourEditor
◆ m_d
  
  | 
        
          | Imp* CaloClusterSysController::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)
void possibleChange_cutAllowedEta()
static QString toString(const T &par)
const char * lastUpdateSlot
void dummyUpdateTrigger()
VP1Controller(IVP1System *sys, const QString &classname)
VP1CollectionWidget * collWidget
void possibleChange_cutAllowedEnergies()
void messageVerbose(const QString &) const
SoMaterial * fallBackMaterial() const
static const bool s_vp1verbose
void initDialog(T &theUI, QPushButton *launchbutton, QAbstractButton *enabledButton=0)
VP1CollectionWidget * collWidget
virtual void actualSaveSettings(VP1Serialise &) const =0
Ui::VP1CaloClusterControllerForm ui
static QString str(const QString &s)
void messageDebug(const QString &) const
void connectToLastUpdateSlot(QObject *sender, const char *signal)
bool initVarsMode() const
Ui::CaloClusterSysSettingsCutsForm ui_cuts
def save(self, fileName="./columbo.out")
void possibleChange_scale()
static const char * prefix_msg()
SoMaterial * fallBackMaterial
const QString & name() const
double highestVisibleClusterEnergy() const
void etaCutPresetButtonTriggered()
static QColor sbcol2qcol(const SbColor &)
Ui::CaloClusterSysSettingsDisplayForm ui_display
IVP1System * systemBase() const
static const char * prefix_debug()
QList< DialogInfo * > dialogs
virtual void actualRestoreSettings(VP1Deserialise &)=0
void possibleChange_useTransverseEnergies()
static const char * prefix_verbose()
const double mb
1mb to cm2
Ui::CaloClusterSysSettingsInteractionsForm ui_int
void collWidgetContentChanged()
void enabledButtonStateChanged()
void possibleChange_showVolumeOutLines()
void message(const QString &) const
void toggleDialogState(QObject *widget=0)
void possibleChange_cutAllowedPhi()
void message(const QString &) const
static VP1CustomTourEditor * m_customTourEditor
virtual int currentSettingsVersion() const =0