ATLAS Offline Software
Classes | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Private Slots | Private Attributes | Static Private Attributes | List of all members
CaloClusterCollectionSettingsButton Class Reference

#include <CaloClusterCollectionSettingsButton.h>

Inheritance diagram for CaloClusterCollectionSettingsButton:
Collaboration diagram for CaloClusterCollectionSettingsButton:

Classes

class  Imp
 

Public Slots

void setTransverseEnergy ()
 
QByteArray saveState () const
 fill out with the state of the object (used for drag and drop etc) More...
 
void restoreFromState (const QByteArray &)
 
void showEditMaterialDialog ()
 
void setMaterialText (const QString &)
 

Signals

void cutAllowedPtChanged (const VP1Interval &)
 
void cutAllowedEtaChanged (const VP1Interval &)
 
void cutAllowedPhiChanged (const QList< VP1Interval > &)
 
void scaleChanged (const QPair< bool, double > &scale)
 
void energyTypeChanged ()
 
void lastAppliedChanged ()
 

Public Member Functions

 CaloClusterCollectionSettingsButton (QWidget *parent=0, int dim=25)
 
virtual ~CaloClusterCollectionSettingsButton ()
 
void setCollHandle (IParticleCollHandle_CaloCluster *coll)
 
void setDimension (int dim)
 
virtual bool setMaterial (SoMaterial *)
 
virtual void copyValuesFromMaterial (SoMaterial *)
 
virtual double lastAppliedTransparency () const
 
virtual double lastAppliedShininess () const
 
virtual double lastAppliedBrightness () const
 
double lengthOf10GeV ()
 
QPair< bool, double > scale () const
 
VP1Interval cutAllowedPt () const
 
VP1Interval cutAllowedEta () const
 
QList< VP1IntervalcutAllowedPhi () const
 
bool isTransverseEnergy () const
 
SoMaterial * getMaterial (VP1MaterialButton *) const
 
SoMaterial * fallBackMaterial () const
 
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
 
const QString & helperClassName () const
 

Static Public Member Functions

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 updateButton ()
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
 
void mouseMoveEvent (QMouseEvent *event)
 
void dropEvent (QDropEvent *event)
 
void dragEnterEvent (QDragEnterEvent *event)
 
void setHelperClassName (const QString &n)
 

Private Slots

void possibleChange_cutAllowedPt ()
 
void possibleChange_cutAllowedEta ()
 
void possibleChange_cutAllowedPhi ()
 
void possibleChange_scale ()
 
void possibleChange_showVolumeOutLines ()
 
void possibleChange_useTransverseEnergies ()
 

Private Attributes

Impm_d
 
QString m_helpername
 
IVP1Systemm_system
 

Static Private Attributes

static const bool s_vp1verbose = VP1QtUtils::environmentVariableIsOn("VP1_VERBOSE_OUTPUT")
 

Detailed Description

Definition at line 16 of file CaloClusterCollectionSettingsButton.h.

Constructor & Destructor Documentation

◆ CaloClusterCollectionSettingsButton()

CaloClusterCollectionSettingsButton::CaloClusterCollectionSettingsButton ( QWidget *  parent = 0,
int  dim = 25 
)

Definition at line 219 of file CaloClusterCollectionSettingsButton.cxx.

221 //: VP1CollectionSettingsButtonBase(parent,0,"VP1MaterialButton"), m_d(new Imp)
222 {
223  m_d->dim = dim;
224 
225  m_d->theclass = this;
226  m_d->initEditWindow();
227 
228  m_d->m_transverseEnergy = true;
229  m_d->m_forceRebuild = false;
230 
231 // // default material for b-jets
232 // m_d->materialFallback = m_d->createMaterial(116,255,228);
233 // m_d->materialFallback->ref();
234 
236  // Setup connections which monitor changes in the controller so that we may emit signals as appropriate: //
238 
239  // COMMON SETTINGS
240 
241  // -> cutAllowedP/Pt
242  connect(m_d->ui_commonsettings.checkBox_cut_minpt,SIGNAL(toggled(bool)),this,SLOT(possibleChange_cutAllowedPt()));
243  connect(m_d->ui_commonsettings.checkBox_cut_maxpt,SIGNAL(toggled(bool)),this,SLOT(possibleChange_cutAllowedPt()));
244  connect(m_d->ui_commonsettings.doubleSpinBox_cut_minpt_gev,SIGNAL(valueChanged(double)),this,SLOT(possibleChange_cutAllowedPt()));
245  connect(m_d->ui_commonsettings.doubleSpinBox_cut_maxpt_gev,SIGNAL(valueChanged(double)),this,SLOT(possibleChange_cutAllowedPt()));
246  connect(m_d->ui_commonsettings.checkBox_cut_minpt,SIGNAL(toggled(bool)),this,SLOT(possibleChange_cutAllowedPt()));
247  connect(m_d->ui_commonsettings.comboBox_momtype,SIGNAL(currentIndexChanged(int)),this,SLOT(setTransverseEnergy()));
248 
249  // -> cutAllowedEta
250  connect(m_d->ui_commonsettings.etaPhiCutWidget,SIGNAL(allowedEtaChanged(const VP1Interval&)),this,SLOT(possibleChange_cutAllowedEta()));
251 
252  // -> cutAllowedPhi
253  connect(m_d->ui_commonsettings.etaPhiCutWidget,SIGNAL(allowedPhiChanged(const QList<VP1Interval>&)),this,SLOT(possibleChange_cutAllowedPhi()));
254 
255 
256  // CUSTOM SETTINGS
257 
258 // //Draw Styles / Complexity:
259 // VP1QtInventorUtils::setLimitsLineWidthSlider(m_d->ui_commonsettings.horizontalSlider_trackWidth);
260 // VP1QtInventorUtils::setValueLineWidthSlider(m_d->ui_commonsettings.horizontalSlider_trackWidth,1.0);
261 
262  // -> scale
263  connect(m_d->ui_customsettings.doubleSpinBox_lengthOf10GeV,SIGNAL(valueChanged(double)),this,SLOT(possibleChange_scale()));
264  connect(m_d->ui_customsettings.checkBox_logscale,SIGNAL(toggled(bool)),this,SLOT(possibleChange_scale()));
265  connect(m_d->ui_customsettings.radioButton_relativeScale,SIGNAL(toggled(bool)),this,SLOT(possibleChange_scale()));
266  connect(m_d->ui_customsettings.doubleSpinBox_lengthOfMostEnergetic,SIGNAL(valueChanged(double)),this,SLOT(possibleChange_scale()));
267 
268 
269 
270 
271 
272 // // random colors
273 // connect(m_d->ui_customsettings.checkBox_randomColours, SIGNAL(toggled(bool)), this, SLOT(enableRandomColours(bool)));
274 // connect(m_d->ui_customsettings.checkBox_randomColours, SIGNAL(toggled(bool)), this, SLOT(possibleChange_randomJetColours()));
275 // connect(m_d->ui_customsettings.pushButton_colourbyrandom_rerandomise,SIGNAL(clicked()),this,SLOT(emitRerandomise()));
276 // this->enableRandomColours(false);
277 
278 // // maxR
279 // connect(m_d->ui_customsettings.checkBox_maxR, SIGNAL(toggled(bool)), this, SLOT(enableMaxR(bool)));
280 // connect(m_d->ui_customsettings.checkBox_maxR, SIGNAL(toggled(bool)), this, SLOT(possibleChange_maxR()));
281 // connect(m_d->ui_customsettings.doubleSpinBox_maxR, SIGNAL(valueChanged(double)), this, SLOT(possibleChange_maxR()));
282 // this->enableMaxR(false);
283 
284 
285 
286 
287  // Material button
288  connect(this,SIGNAL(clicked()),this,SLOT(showEditMaterialDialog()));
289  connect(m_d->ui_commonsettings.pushButton_close,SIGNAL(clicked()),this,SLOT(showEditMaterialDialog()));
290  connect(m_d->matButton,SIGNAL(lastAppliedChanged()),this,SLOT(updateButton()));
291  connect(m_d->matButton,SIGNAL(lastAppliedChanged()),this,SIGNAL(lastAppliedChanged()));
292  setAcceptDrops(true);
293 
294 
295 // // init material for b-tagged jet
296 // m_d->ui_customsettings.matButton_btaggedJets->setMaterial(m_d->materialFallback);
297 
298 
299  QTimer::singleShot(0, this, SLOT(updateButton()));
300 
301 }

◆ ~CaloClusterCollectionSettingsButton()

CaloClusterCollectionSettingsButton::~CaloClusterCollectionSettingsButton ( )
virtual

Definition at line 308 of file CaloClusterCollectionSettingsButton.cxx.

309 {
310  delete m_d->editwindow;
311 // m_d->trackDrawStyle->unref();
312 // m_d->trackLightModel->unref();
313  delete m_d;
314 }

Member Function Documentation

◆ copyValuesFromMaterial()

void CaloClusterCollectionSettingsButton::copyValuesFromMaterial ( SoMaterial *  mat)
virtual

Implements VP1MaterialButtonBase.

Definition at line 351 of file CaloClusterCollectionSettingsButton.cxx.

352 {
353  if (!m_d->matButton) m_d->initEditWindow();
355 }

◆ cutAllowedEta()

VP1Interval CaloClusterCollectionSettingsButton::cutAllowedEta ( ) const

Definition at line 635 of file CaloClusterCollectionSettingsButton.cxx.

636 {
637  if (!m_d->editwindow)
638  m_d->initEditWindow();
639  return m_d->ui_commonsettings.etaPhiCutWidget->allowedEta();
640 }

◆ cutAllowedEtaChanged

void CaloClusterCollectionSettingsButton::cutAllowedEtaChanged ( const VP1Interval )
signal

◆ cutAllowedPhi()

QList< VP1Interval > CaloClusterCollectionSettingsButton::cutAllowedPhi ( ) const

Definition at line 643 of file CaloClusterCollectionSettingsButton.cxx.

644 {
645  if (!m_d->editwindow)
646  m_d->initEditWindow();
647  return m_d->ui_commonsettings.etaPhiCutWidget->allowedPhi();
648 }

◆ cutAllowedPhiChanged

void CaloClusterCollectionSettingsButton::cutAllowedPhiChanged ( const QList< VP1Interval > &  )
signal

◆ cutAllowedPt()

VP1Interval CaloClusterCollectionSettingsButton::cutAllowedPt ( ) const

Definition at line 589 of file CaloClusterCollectionSettingsButton.cxx.

590 {
591  if (!m_d->editwindow)
592  m_d->initEditWindow();
593 
594  if (!m_d->ui_commonsettings.checkBox_cut_minpt)
595  return VP1Interval();
596 
597  // will set range to negative if we have momcut=P
598  // if minCut unset then min=-inf
599  // if minCut set, and Pt selected, then min=-minCut
600  // if minCut set, and P selected, then min=-maxCut // TODO: Check this logic!!!!! ????
601  // etc
602  //bool EtCut = isTransverseEnergy();
603 
604  const double minFromInterface=m_d->ui_commonsettings.doubleSpinBox_cut_minpt_gev->value()*1000; // from GeV to MeV
605  const double maxFromInterface=m_d->ui_commonsettings.doubleSpinBox_cut_maxpt_gev->value()*1000;
606 
607  double min=0.0,max=0.0;
608 
609  // TODO: I don't understand this logic...
610  // it looks wrong to me, and the E cut does not currently work...
611  // Moving to a simpler logic.
612  /*
613  if (EtCut) {
614  //Et cut
615  min = (m_d->ui_commonsettings.checkBox_cut_minpt->isChecked() ? minFromInterface : -std::numeric_limits<double>::infinity());
616  max = (m_d->ui_commonsettings.checkBox_cut_maxpt->isChecked() ? maxFromInterface : std::numeric_limits<double>::infinity());
617  } else {
618  //E cut
619  min = (m_d->ui_commonsettings.checkBox_cut_maxpt->isChecked() ? -maxFromInterface : -std::numeric_limits<double>::infinity());
620  max = (m_d->ui_commonsettings.checkBox_cut_minpt->isChecked() ? -minFromInterface : std::numeric_limits<double>::infinity());
621  }*/
622 
623  min = (m_d->ui_commonsettings.checkBox_cut_minpt->isChecked() ? minFromInterface : -std::numeric_limits<double>::infinity());
624  max = (m_d->ui_commonsettings.checkBox_cut_maxpt->isChecked() ? maxFromInterface : std::numeric_limits<double>::infinity());
625 
626  message("cutAllowedPt: min,max="+QString::number(min)+","+QString::number(max));
627 
628  if (max<min)
629  return VP1Interval();
630 
631  return VP1Interval( min, max );//fixme: closed interval??
632 }

◆ cutAllowedPtChanged

void CaloClusterCollectionSettingsButton::cutAllowedPtChanged ( const VP1Interval )
signal

◆ dragEnterEvent()

void CaloClusterCollectionSettingsButton::dragEnterEvent ( QDragEnterEvent *  event)
protected

Definition at line 383 of file CaloClusterCollectionSettingsButton.cxx.

384 {
385  if (event->source()!=this && event->mimeData()->hasFormat("vp1/material"))
386  event->acceptProposedAction();
387 }

◆ dropEvent()

void CaloClusterCollectionSettingsButton::dropEvent ( QDropEvent *  event)
protected

Definition at line 442 of file CaloClusterCollectionSettingsButton.cxx.

443 {
444  QByteArray data = event->mimeData()->data("vp1/material");
445  event->acceptProposedAction();
447 }

◆ energyTypeChanged

void CaloClusterCollectionSettingsButton::energyTypeChanged ( )
signal

◆ fallBackMaterial()

SoMaterial * VP1CollectionSettingsButtonBase::fallBackMaterial ( ) const
inherited

Definition at line 52 of file VP1CollectionSettingsButtonBase.cxx.

53 {
54  if (!m_d->fallBackMaterial) {
55  m_d->fallBackMaterial = new SoMaterial;
56  m_d->fallBackMaterial->ref();
57  }
58  return m_d->fallBackMaterial;
59 }

◆ getMaterial()

SoMaterial * VP1CollectionSettingsButtonBase::getMaterial ( VP1MaterialButton mb) const
inherited

Definition at line 62 of file VP1CollectionSettingsButtonBase.cxx.

63 {
64  if (!mb) {
65  message("ERROR: Null material button pointer");
66  return fallBackMaterial();
67  }
68  QList<SoMaterial*> mats = mb->handledMaterials();
69  if (mats.count()!=1) {
70  message("ERROR: No material in button "+mb->objectName());
71  return fallBackMaterial();
72  }
73  return mats.at(0);
74 
75 
76 }

◆ helperClassName()

const QString& VP1HelperClassBase::helperClassName ( ) const
inlineinherited

Definition at line 51 of file VP1HelperClassBase.h.

51 { return m_helpername; }

◆ isTransverseEnergy()

bool CaloClusterCollectionSettingsButton::isTransverseEnergy ( ) const

Definition at line 566 of file CaloClusterCollectionSettingsButton.cxx.

567 {
568  return m_d->m_transverseEnergy;
569 }

◆ lastAppliedBrightness()

double CaloClusterCollectionSettingsButton::lastAppliedBrightness ( ) const
virtual

Implements VP1MaterialButtonBase.

Definition at line 366 of file CaloClusterCollectionSettingsButton.cxx.

367 {
368  if (!m_d->matButton) m_d->initEditWindow();
370 }

◆ lastAppliedChanged

void VP1MaterialButtonBase::lastAppliedChanged ( )
signalinherited

◆ lastAppliedShininess()

double CaloClusterCollectionSettingsButton::lastAppliedShininess ( ) const
virtual

Implements VP1MaterialButtonBase.

Definition at line 361 of file CaloClusterCollectionSettingsButton.cxx.

362 {
363  if (!m_d->matButton) m_d->initEditWindow();
365 }

◆ lastAppliedTransparency()

double CaloClusterCollectionSettingsButton::lastAppliedTransparency ( ) const
virtual

Implements VP1MaterialButtonBase.

Definition at line 356 of file CaloClusterCollectionSettingsButton.cxx.

357 {
358  if (!m_d->matButton) m_d->initEditWindow();
360 }

◆ lengthOf10GeV()

double CaloClusterCollectionSettingsButton::lengthOf10GeV ( )

Definition at line 197 of file CaloClusterCollectionSettingsButton.cxx.

198 {
199  double val = m_d->ui_customsettings.doubleSpinBox_lengthOf10GeV->value();
200  VP1Msg::messageVerbose("CaloClusterCollectionSettingsButton::lengthOf10GeV() - value: " + QString::number(val));
201  return val;
202 }

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

◆ mouseMoveEvent()

void CaloClusterCollectionSettingsButton::mouseMoveEvent ( QMouseEvent *  event)
protected

Definition at line 390 of file CaloClusterCollectionSettingsButton.cxx.

391 {
392  if (!(event->buttons() & Qt::LeftButton))
393  return;
394  if ((event->pos() - m_d->dragStartPosition).manhattanLength()
395  < QApplication::startDragDistance())
396  return;
397 
398  QDrag *drag = new QDrag(this);
399  QMimeData *mimeData = new QMimeData;
400 
402  // For dragging state onto other material buttons: //
404 
405  QByteArray byteArray = saveState();
406 
407  // buffer.close();
408  mimeData->setData("vp1/material", byteArray);
409 
410  // ////////////////////////////////////////////////////////
411  // // For dragging c++ code for defining this material //
412  // // into e.g. an editor: //
413  // ////////////////////////////////////////////////////////
414  //
415  // QString s = "SoMaterial * mat = new SoMaterial;\n";
416  // QString str_ambient = m_d->toSbColTxt(m_d->lastapplied_ambient);
417  // if (str_ambient!="SbColor(0.2,0.2,0.2)")
418  // s += "mat->ambientColor.setValue("+str_ambient+");\n";
419  // QString str_diffuse = m_d->toSbColTxt(m_d->lastapplied_diffuse);
420  // if (str_diffuse!="SbColor(0.8,0.8,0.8)")
421  // s += "mat->diffuseColor.setValue("+str_diffuse+");\n";
422  // QString str_specular = m_d->toSbColTxt(m_d->lastapplied_specular);
423  // if (str_specular!="SbColor(0,0,0)")
424  // s += "mat->specularColor.setValue("+str_specular+");\n";
425  // QString str_emissive = m_d->toSbColTxt(m_d->lastapplied_emissive);
426  // if (str_emissive!="SbColor(0,0,0)")
427  // s += "mat->emissiveColor.setValue("+str_emissive+");\n";
428  // QString str_shininess = m_d->printFloat(m_d->lastapplied_shininess/100.0);
429  // if (str_shininess!="0.2")
430  // s += "mat->shininess.setValue("+str_shininess+");\n";
431  // QString str_transparency = m_d->printFloat(m_d->lastapplied_transparency/100.0);
432  // if (str_transparency!="0")
433  // s += "mat->transparency.setValue("+str_transparency+");\n";
434  // mimeData->setText(s);
435 
436  //Execute drag:
437  drag->setMimeData(mimeData);//drag assumes ownership of mimeData
438  drag->exec(Qt::CopyAction | Qt::MoveAction);
439 }

◆ mousePressEvent()

void CaloClusterCollectionSettingsButton::mousePressEvent ( QMouseEvent *  event)
protected

Definition at line 375 of file CaloClusterCollectionSettingsButton.cxx.

376 {
377  if (event->button() == Qt::LeftButton)
378  m_d->dragStartPosition = event->pos();
379  QPushButton::mousePressEvent(event);
380 }

◆ possibleChange_cutAllowedEta

void CaloClusterCollectionSettingsButton::possibleChange_cutAllowedEta ( )
privateslot

Definition at line 666 of file CaloClusterCollectionSettingsButton.cxx.

667 {
668  if (m_d->last_cutAllowedEta==cutAllowedEta()) return;
669  messageVerbose("cutAllowedEta() changed");
672 }

◆ possibleChange_cutAllowedPhi

void CaloClusterCollectionSettingsButton::possibleChange_cutAllowedPhi ( )
privateslot

Definition at line 675 of file CaloClusterCollectionSettingsButton.cxx.

676 {
677  if (m_d->last_cutAllowedPhi==cutAllowedPhi()) return;
678  messageVerbose("cutAllowedPhi() changed");
681 }

◆ possibleChange_cutAllowedPt

void CaloClusterCollectionSettingsButton::possibleChange_cutAllowedPt ( )
privateslot

Definition at line 653 of file CaloClusterCollectionSettingsButton.cxx.

654 {
655  messageVerbose("possibleChange_cutAllowedPt() ");
656 
657  if ( m_d->last_cutAllowedPt==cutAllowedPt()) return;
658 // if ( !m_d->m_forceRebuild && m_d->last_cutAllowedPt==cutAllowedPt()) return;
659 
660  messageVerbose("cutAllowedPt() changed");
663 }

◆ possibleChange_scale

void CaloClusterCollectionSettingsButton::possibleChange_scale ( )
privateslot

Definition at line 684 of file CaloClusterCollectionSettingsButton.cxx.

685 {
686  messageDebug("CaloClusterCollectionSettingsButton::possibleChange_scale() ");
687 
688 // if (m_d->last_scale == lengthOf10GeV()) return;
689  if (m_d->last_scale == scale()) return;
690 
691 // messageVerbose("lengthOf10GeV changed");
692 // m_d->last_scale = lengthOf10GeV();
693 
694  messageDebug("cluster size settings changed");
695  m_d->last_scale = scale();
696 
697  emit scaleChanged(m_d->last_scale); // it will trigger an update in the collHandle
698 }

◆ possibleChange_showVolumeOutLines

void CaloClusterCollectionSettingsButton::possibleChange_showVolumeOutLines ( )
privateslot

Definition at line 707 of file CaloClusterCollectionSettingsButton.cxx.

708 {
709  messageVerbose("CaloClusterCollectionSettingsButton::possibleChange_showVolumeOutLines() ");
710 
711  message("CaloCluster - possibleChange_showVolumeOutLines(). to be implemented...");
712 }

◆ possibleChange_useTransverseEnergies

void CaloClusterCollectionSettingsButton::possibleChange_useTransverseEnergies ( )
privateslot

Definition at line 716 of file CaloClusterCollectionSettingsButton.cxx.

717 {
718  messageVerbose("CaloClusterCollectionSettingsButton::possibleChange_useTransverseEnergies() ");
719 
720  message("CaloCluster - possibleChange_useTransverseEnergies(). to be implemented...");
721 }

◆ restoreFromState

void CaloClusterCollectionSettingsButton::restoreFromState ( const QByteArray &  ba)
slot

Definition at line 500 of file CaloClusterCollectionSettingsButton.cxx.

500  {
501 
502  messageDebug("CaloClusterCollectionSettingsButton::restoreFromState()");
503 
504  VP1Deserialise state(ba,systemBase());
505  if (state.version()<0||state.version()>1) {
506  messageDebug("restoreFromState() - ignoring...");
507  return;//Ignore silently
508  }
509  state.restore(m_d->matButton);
510 
511 
512  // COMMON SETTINGS
513  state.restore(m_d->ui_commonsettings.checkBox_tracksUseBaseLightModel);
514  state.restore(m_d->ui_commonsettings.checkBox_cut_minpt);
515  state.restore(m_d->ui_commonsettings.doubleSpinBox_cut_minpt_gev);
516  state.restore(m_d->ui_commonsettings.checkBox_cut_maxpt);
517  state.restore(m_d->ui_commonsettings.doubleSpinBox_cut_maxpt_gev);
518  state.restore(m_d->ui_commonsettings.comboBox_momtype);
519 
520  // ETA-PHI CUTS (from VP1Base/VP1EtaPhiCutWidget.cxx)
521  state.restore(m_d->ui_commonsettings.etaPhiCutWidget);
522 
523  // CALO CLUSTER SETTINGS
524  state.restore(m_d->ui_customsettings.radioButton_absoluteScale, m_d->ui_customsettings.radioButton_relativeScale);
525  state.restore(m_d->ui_customsettings.doubleSpinBox_lengthOf10GeV);
526  state.restore(m_d->ui_customsettings.doubleSpinBox_lengthOfMostEnergetic);
527  state.restore(m_d->ui_customsettings.checkBox_logscale);
528  state.restore(m_d->ui_customsettings.checkBox_showVolumeOutLines);
529 
530 
531 
532 // state.restore(m_d->ui_customsettings.doubleSpinBox_radialScale);
533 
534 // state.restore(m_d->ui_customsettings.bTaggingCheckBox);
535 // state.restore(m_d->ui_customsettings.bTaggingComboBox);
536 // state.restore(m_d->ui_customsettings.bTaggingSpinBox);
537 // state.restore(m_d->ui_customsettings.radioButton_material, m_d->ui_customsettings.radioButton_skins);
538 // state.restore(m_d->ui_customsettings.matButton_btaggedJets);
539 // state.restore(m_d->ui_customsettings.skinsComboBox);
540 
541 
542  // // Parameters
543 // state.restore(m_d->ui_commonsettings.checkBox_showparameters);
544 // state.restore(m_d->ui_commonsettings.checkBox_parameters_colourByType);
545 
546  state.widgetHandled(this);
547  state.warnUnrestored(this);
548 
549 // updateTrackTubeRadius();
550 // updateTrackLightModel(m_d->ui_commonsettings.checkBox_tracksUseBaseLightModel);
551 
552  updateButton();
553 
554 // // after restoring the state, check if b-tagging checkbox is enabled,
555 // if (m_d->ui_customsettings.bTaggingCheckBox->isChecked())
556 // possibleChange_bTaggingEnabled(true); // init the b-tagging toolbox as active
557 // else
558 // possibleChange_bTaggingEnabled(false); // init the b-tagging toolbox as not-active
559 
560 
561  //FIXME - anything else need updating?
562 }

◆ saveState

QByteArray CaloClusterCollectionSettingsButton::saveState ( ) const
slot

fill out with the state of the object (used for drag and drop etc)

Definition at line 450 of file CaloClusterCollectionSettingsButton.cxx.

450  {
451 
452  messageDebug("CaloClusterCollectionSettingsButton::saveState()");
453 
454  // messageVerbose("getState");
455  // if (m_d->ui_commonsettings.checkBox_tracksUseBaseLightModel->isChecked()) messageVerbose("checked!");
456  VP1Serialise serialise(1/*version*/);
457 
458 
459  serialise.save(m_d->matButton);
460  //serialise.disableUnsavedChecks(); // TODO: what this does??
461 
462  // COMMON SETTINGS
463  serialise.save(m_d->ui_commonsettings.checkBox_tracksUseBaseLightModel);
464  serialise.save(m_d->ui_commonsettings.checkBox_cut_minpt);
465  serialise.save(m_d->ui_commonsettings.doubleSpinBox_cut_minpt_gev);
466  serialise.save(m_d->ui_commonsettings.checkBox_cut_maxpt);
467  serialise.save(m_d->ui_commonsettings.doubleSpinBox_cut_maxpt_gev);
468  serialise.save(m_d->ui_commonsettings.comboBox_momtype);
469 
470  // ETA-PHI CUTS (from VP1Base/VP1EtaPhiCutWidget.cxx)
471  serialise.save(m_d->ui_commonsettings.etaPhiCutWidget);
472 
473  // CALO CLUSTER SETTINGS
474  serialise.save(m_d->ui_customsettings.radioButton_absoluteScale, m_d->ui_customsettings.radioButton_relativeScale);
475  serialise.save(m_d->ui_customsettings.doubleSpinBox_lengthOf10GeV);
476  serialise.save(m_d->ui_customsettings.doubleSpinBox_lengthOfMostEnergetic);
477  serialise.save(m_d->ui_customsettings.checkBox_logscale);
478  serialise.save(m_d->ui_customsettings.checkBox_showVolumeOutLines);
479 
480 
481 
482 // serialise.save(m_d->ui_customsettings.doubleSpinBox_radialScale);
483 
484 // serialise.save(m_d->ui_customsettings.bTaggingCheckBox);
485 // serialise.save(m_d->ui_customsettings.bTaggingComboBox);
486 // serialise.save(m_d->ui_customsettings.bTaggingSpinBox);
487 // serialise.save(m_d->ui_customsettings.radioButton_material, m_d->ui_customsettings.radioButton_skins);
488 // serialise.save(m_d->ui_customsettings.matButton_btaggedJets);
489 // serialise.save(m_d->ui_customsettings.skinsComboBox);
490 
491  // Parameters
492 // serialise.save(m_d->ui_commonsettings.checkBox_showparameters);
493 // serialise.save(m_d->ui_commonsettings.checkBox_parameters_colourByType);
494 
495  serialise.widgetHandled(this);
496  serialise.warnUnsaved(this);
497  return serialise.result();
498 }

◆ scale()

QPair< bool, double > CaloClusterCollectionSettingsButton::scale ( ) const

Definition at line 725 of file CaloClusterCollectionSettingsButton.cxx.

726 {
727  const bool relative = m_d->ui_customsettings.radioButton_relativeScale->isChecked();
728  const bool logscale = m_d->ui_customsettings.checkBox_logscale->isChecked();
729 
730  double highestvisibleenergy=0*SYSTEM_OF_UNITS::eV;
731 
732  QString colname = m_d->coll->name();
733  VP1Msg::messageDebug(colname);
734 
735  //IParticleCollHandle_CaloCluster* col = dynamic_cast<IParticleCollHandle_CaloCluster*>(m_d->coll);
736  if (dynamic_cast<IParticleCollHandle_CaloCluster*>(m_d->coll)) {
737  if ( highestvisibleenergy < m_d->coll->highestVisibleClusterEnergy() )
738  highestvisibleenergy = m_d->coll->highestVisibleClusterEnergy();
739  }
740 
742 
743  if (m_d->gui_mostEnergetic!=highestvisibleenergy) {
744  m_d->gui_mostEnergetic=highestvisibleenergy;
745  m_d->ui_customsettings.label_current_most_energetic->setText("Current value: "+QString::number(m_d->gui_mostEnergetic/SYSTEM_OF_UNITS::GeV,'f',2)+" GeV");
746  }
747 
748  const double length = (relative ? m_d->ui_customsettings.doubleSpinBox_lengthOfMostEnergetic->value()*SYSTEM_OF_UNITS::m
749  : m_d->ui_customsettings.doubleSpinBox_lengthOf10GeV->value()*SYSTEM_OF_UNITS::m );
750  const double energy = relative ? highestvisibleenergy : 10*SYSTEM_OF_UNITS::GeV;
751  const double minscale = 1*SYSTEM_OF_UNITS::mm/(1*SYSTEM_OF_UNITS::GeV);
752  const double maxscale = 1*SYSTEM_OF_UNITS::m/(1*SYSTEM_OF_UNITS::MeV);
753  double scl;
754  if (energy<=0)
755  scl = maxscale;
756  else
757  scl = logscale ? length/log(1+fabs(energy)) :length/energy;
758  if (scl!=scl||scl>maxscale)
759  scl = maxscale;
760  if (scl<minscale)
761  scl = minscale;
762  return QPair<bool,double>(logscale,scl);
763 }

◆ scaleChanged

void CaloClusterCollectionSettingsButton::scaleChanged ( const QPair< bool, double > &  scale)
signal

◆ setCollHandle()

void CaloClusterCollectionSettingsButton::setCollHandle ( IParticleCollHandle_CaloCluster coll)

Definition at line 701 of file CaloClusterCollectionSettingsButton.cxx.

702 {
703  m_d->coll = collHandle;
704 }

◆ setDimension()

void CaloClusterCollectionSettingsButton::setDimension ( int  dim)

Definition at line 324 of file CaloClusterCollectionSettingsButton.cxx.

325 {
326  if (m_d->dim == dim)
327  return;
328  m_d->dim = dim;
329  updateButton();
330 }

◆ setHelperClassName()

void VP1HelperClassBase::setHelperClassName ( const QString &  n)
inlineprotectedinherited

Definition at line 59 of file VP1HelperClassBase.h.

59 { m_helpername = n; }

◆ setMaterial()

bool CaloClusterCollectionSettingsButton::setMaterial ( SoMaterial *  mat)
virtual

Implements VP1MaterialButtonBase.

Definition at line 343 of file CaloClusterCollectionSettingsButton.cxx.

344 {
345  // std::cout<<"CaloClusterCollectionSettingsButton::setMaterial with mat="<<mat<<std::endl;
346  if (!m_d->matButton) m_d->initEditWindow();
348  return true;
349 }

◆ setMaterialText

void CaloClusterCollectionSettingsButton::setMaterialText ( const QString &  t)
slot

Definition at line 187 of file CaloClusterCollectionSettingsButton.cxx.

188 {
189  VP1Msg::messageVerbose("CaloClusterCollectionSettingsButton::setMaterialText()");
190  if (m_d->editwindow)
191  m_d->editwindow->setWindowTitle(t);
192  setToolTip(t);
193 }

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

◆ setTransverseEnergy

void CaloClusterCollectionSettingsButton::setTransverseEnergy ( )
slot

Definition at line 572 of file CaloClusterCollectionSettingsButton.cxx.

573 {
574  if(m_d->ui_commonsettings.comboBox_momtype->currentText()=="Et")
575  m_d->m_transverseEnergy = true;
576  else
577  m_d->m_transverseEnergy = false;
578 
579 
580  messageDebug("setTransverseEnergy: "+QString::number(m_d->m_transverseEnergy));
581 
582 // // when we change Et<-->E we force the rebuild of all objects in the scene
583 // m_d->m_forceRebuild = true;
584  // then, we rebuild all objects
585  emit energyTypeChanged();
586 }

◆ showEditMaterialDialog

void CaloClusterCollectionSettingsButton::showEditMaterialDialog ( )
slot

Definition at line 332 of file CaloClusterCollectionSettingsButton.cxx.

333 {
334  if (!m_d->editwindow)
335  m_d->initEditWindow();
336 
337  if (m_d->editwindow->isHidden())
338  m_d->editwindow->show();
339  else
340  m_d->editwindow->hide();
341 }

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

◆ updateButton

void CaloClusterCollectionSettingsButton::updateButton ( )
protectedslot

Definition at line 316 of file CaloClusterCollectionSettingsButton.cxx.

317 {
318  if (objectName().isEmpty())
319  setObjectName("CaloClusterCollectionSettingsButton");
320  messageVerbose("setColButtonProperties: color=" + str(m_d->matButton->lastAppliedDiffuseColour()));
322 }

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

Member Data Documentation

◆ m_d

Imp* CaloClusterCollectionSettingsButton::m_d
private

Definition at line 120 of file CaloClusterCollectionSettingsButton.h.

◆ m_helpername

QString VP1HelperClassBase::m_helpername
privateinherited

Definition at line 67 of file VP1HelperClassBase.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
CaloClusterCollectionSettingsButton::cutAllowedEtaChanged
void cutAllowedEtaChanged(const VP1Interval &)
CaloClusterCollectionSettingsButton::Imp::matButton
VP1MaterialButton * matButton
Definition: CaloClusterCollectionSettingsButton.cxx:65
python.SystemOfUnits.second
int second
Definition: SystemOfUnits.py:120
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
CaloClusterCollectionSettingsButton::saveState
QByteArray saveState() const
fill out with the state of the object (used for drag and drop etc)
Definition: CaloClusterCollectionSettingsButton.cxx:450
GeV
#define GeV
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
CaloClusterCollectionSettingsButton::Imp::theclass
CaloClusterCollectionSettingsButton * theclass
Definition: CaloClusterCollectionSettingsButton.cxx:68
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
yodamerge_tmp.dim
dim
Definition: yodamerge_tmp.py:239
VP1Serialise
Definition: VP1Serialise.h:45
CaloClusterCollectionSettingsButton::Imp::m_forceRebuild
bool m_forceRebuild
Definition: CaloClusterCollectionSettingsButton.cxx:92
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
RoiUtil::serialise
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
Definition: RoiSerialise.cxx:45
hist_file_dump.d
d
Definition: hist_file_dump.py:137
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
mat
GeoMaterial * mat
Definition: LArDetectorConstructionTBEC.cxx:55
min
constexpr double min()
Definition: ap_fixedTest.cxx:26
VP1HelperClassBase::m_helpername
QString m_helpername
Definition: VP1HelperClassBase.h:67
VP1HelperClassBase::messageVerbose
void messageVerbose(const QString &) const
Definition: VP1HelperClassBase.cxx:78
VP1HelperClassBase::s_vp1verbose
static const bool s_vp1verbose
Definition: VP1HelperClassBase.h:69
fillPileUpNoiseLumi.connect
string connect
Definition: fillPileUpNoiseLumi.py:70
python.SystemOfUnits.MeV
int MeV
Definition: SystemOfUnits.py:154
CaloClusterCollectionSettingsButton::possibleChange_cutAllowedPt
void possibleChange_cutAllowedPt()
Definition: CaloClusterCollectionSettingsButton.cxx:653
skel.it
it
Definition: skel.GENtoEVGEN.py:396
CaloClusterCollectionSettingsButton::cutAllowedPt
VP1Interval cutAllowedPt() const
Definition: CaloClusterCollectionSettingsButton.cxx:589
VP1Msg::debug
static bool debug()
Definition: VP1Msg.h:32
CaloClusterCollectionSettingsButton::Imp::dragStartPosition
QPoint dragStartPosition
Definition: CaloClusterCollectionSettingsButton.cxx:60
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
CaloClusterCollectionSettingsButton::Imp::coll
IParticleCollHandle_CaloCluster * coll
Definition: CaloClusterCollectionSettingsButton.cxx:71
CaloClusterCollectionSettingsButton::possibleChange_cutAllowedPhi
void possibleChange_cutAllowedPhi()
Definition: CaloClusterCollectionSettingsButton.cxx:675
CaloClusterCollectionSettingsButton::restoreFromState
void restoreFromState(const QByteArray &)
Definition: CaloClusterCollectionSettingsButton.cxx:500
CaloClusterCollectionSettingsButton::Imp::last_cutAllowedPhi
QList< VP1Interval > last_cutAllowedPhi
Definition: CaloClusterCollectionSettingsButton.cxx:90
VP1HelperClassBase::m_system
IVP1System * m_system
Definition: VP1HelperClassBase.h:68
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
VP1MaterialButton::lastAppliedDiffuseColour
QColor lastAppliedDiffuseColour() const
Definition: VP1MaterialButton.cxx:167
x
#define x
CaloClusterCollectionSettingsButton::scaleChanged
void scaleChanged(const QPair< bool, double > &scale)
VP1String::str
static QString str(const QString &s)
Definition: VP1String.h:49
CaloClusterCollectionSettingsButton::updateButton
void updateButton()
Definition: CaloClusterCollectionSettingsButton.cxx:316
VP1HelperClassBase::messageDebug
void messageDebug(const QString &) const
Definition: VP1HelperClassBase.cxx:65
VP1ColorSelectButton::setColButtonProperties
static void setColButtonProperties(QPushButton *, const QColor &col, int dim)
Definition: VP1ColorSelectButton.cxx:49
CaloClusterCollectionSettingsButton::cutAllowedPhiChanged
void cutAllowedPhiChanged(const QList< VP1Interval > &)
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
TruthTest.itE
itE
Definition: TruthTest.py:25
IParticleCollHandle_CaloCluster::highestVisibleClusterEnergy
double highestVisibleClusterEnergy() const
Definition: IParticleCollHandle_CaloCluster.cxx:562
VP1CollectionSettingsButtonBase::m_d
Imp * m_d
Definition: VP1CollectionSettingsButtonBase.h:38
CaloClusterCollectionSettingsButton::setTransverseEnergy
void setTransverseEnergy()
Definition: CaloClusterCollectionSettingsButton.cxx:572
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
CaloClusterCollectionSettingsButton::Imp::last_scale
QPair< bool, double > last_scale
Definition: CaloClusterCollectionSettingsButton.cxx:95
VP1Msg::prefix_msg
static const char * prefix_msg()
Definition: VP1Msg.h:56
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
IParticleCollHandle_CaloCluster
Definition: IParticleCollHandle_CaloCluster.h:35
CaloClusterCollectionSettingsButton::cutAllowedPhi
QList< VP1Interval > cutAllowedPhi() const
Definition: CaloClusterCollectionSettingsButton.cxx:643
lumiFormat.i
int i
Definition: lumiFormat.py:85
z
#define z
CaloClusterCollectionSettingsButton::cutAllowedPtChanged
void cutAllowedPtChanged(const VP1Interval &)
CaloClusterCollectionSettingsButton::Imp::gui_mostEnergetic
double gui_mostEnergetic
Definition: CaloClusterCollectionSettingsButton.cxx:98
beamspotman.n
n
Definition: beamspotman.py:731
CaloClusterCollectionSettingsButton::Imp::m_transverseEnergy
bool m_transverseEnergy
Definition: CaloClusterCollectionSettingsButton.cxx:91
CaloClusterCollectionSettingsButton::Imp::editwindow
QWidget * editwindow
Definition: CaloClusterCollectionSettingsButton.cxx:74
VP1MaterialButton::lastAppliedBrightness
double lastAppliedBrightness() const
Definition: VP1MaterialButton.cxx:173
CaloClusterCollectionSettingsButton::Imp::initEditWindow
void initEditWindow()
Definition: CaloClusterCollectionSettingsButton.cxx:111
test_pyathena.parent
parent
Definition: test_pyathena.py:15
IVP1System::name
const QString & name() const
Definition: IVP1System.cxx:50
AODCollHandleBase::name
const QString & name() const
Definition: AODCollHandleBase.cxx:130
hist_file_dump.f
f
Definition: hist_file_dump.py:135
VP1CollectionSettingsButtonBase::VP1CollectionSettingsButtonBase
VP1CollectionSettingsButtonBase(QWidget *parent=0, int dim=25)
Definition: VP1CollectionSettingsButtonBase.cxx:34
VP1CollectionSettingsButtonBase::fallBackMaterial
SoMaterial * fallBackMaterial() const
Definition: VP1CollectionSettingsButtonBase.cxx:52
VP1Deserialise
Definition: VP1Deserialise.h:44
CaloClusterCollectionSettingsButton::m_d
Imp * m_d
Definition: CaloClusterCollectionSettingsButton.h:119
CaloClusterCollectionSettingsButton::Imp::ui_commonsettings
Ui::IParticleCollectionSettingsForm ui_commonsettings
Definition: CaloClusterCollectionSettingsButton.cxx:75
CaloClusterCollectionSettingsButton::possibleChange_cutAllowedEta
void possibleChange_cutAllowedEta()
Definition: CaloClusterCollectionSettingsButton.cxx:666
CaloClusterCollectionSettingsButton::energyTypeChanged
void energyTypeChanged()
VP1QtInventorUtils::sbcol2qcol
static QColor sbcol2qcol(const SbColor &)
Definition: VP1QtInventorUtils.cxx:1142
VP1MaterialButton::setMaterial
bool setMaterial(SoMaterial *)
Definition: VP1MaterialButton.cxx:447
VP1HelperClassBase::systemBase
IVP1System * systemBase() const
Definition: VP1HelperClassBase.h:50
python.selection.number
number
Definition: selection.py:20
CaloClusterCollectionSettingsButton::possibleChange_scale
void possibleChange_scale()
Definition: CaloClusterCollectionSettingsButton.cxx:684
python.SystemOfUnits.eV
int eV
Definition: SystemOfUnits.py:155
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
CaloClusterCollectionSettingsButton::showEditMaterialDialog
void showEditMaterialDialog()
Definition: CaloClusterCollectionSettingsButton.cxx:332
CaloClusterCollectionSettingsButton::Imp::last_cutAllowedEta
VP1Interval last_cutAllowedEta
Definition: CaloClusterCollectionSettingsButton.cxx:89
VP1Msg::messageVerbose
static void messageVerbose(const QString &)
Definition: VP1Msg.cxx:84
VP1Msg::prefix_debug
static const char * prefix_debug()
Definition: VP1Msg.h:57
VP1MaterialButton::lastAppliedShininess
double lastAppliedShininess() const
Definition: VP1MaterialButton.cxx:172
CaloClusterCollectionSettingsButton::scale
QPair< bool, double > scale() const
Definition: CaloClusterCollectionSettingsButton.cxx:725
python.SystemOfUnits.mm
int mm
Definition: SystemOfUnits.py:83
python.PyAthena.v
v
Definition: PyAthena.py:154
VP1Msg::prefix_verbose
static const char * prefix_verbose()
Definition: VP1Msg.h:59
VP1Interval
Definition: VP1Interval.h:23
VP1Msg::messageDebug
static void messageDebug(const QString &)
Definition: VP1Msg.cxx:39
y
#define y
TRT_PAI_physicsConstants::mb
const double mb
1mb to cm2
Definition: TRT_PAI_physicsConstants.h:15
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CaloClusterCollectionSettingsButton::Imp::ui_customsettings
Ui::CaloClusterSettingsDisplayForm ui_customsettings
Definition: CaloClusterCollectionSettingsButton.cxx:76
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
CaloClusterCollectionSettingsButton::Imp::last_cutAllowedPt
VP1Interval last_cutAllowedPt
Definition: CaloClusterCollectionSettingsButton.cxx:87
CaloClusterCollectionSettingsButton::Imp::dim
int dim
Definition: CaloClusterCollectionSettingsButton.cxx:59
VP1MaterialButton::lastAppliedTransparency
double lastAppliedTransparency() const
Definition: VP1MaterialButton.cxx:171
python.compressB64.c
def c
Definition: compressB64.py:93
length
double length(const pvec &v)
Definition: FPGATrackSimLLPDoubletHoughTransformTool.cxx:26
IVP1System::message
void message(const QString &) const
Definition: IVP1System.cxx:336
VP1CollectionSettingsButtonBase::Imp::fallBackMaterial
SoMaterial * fallBackMaterial
Definition: VP1CollectionSettingsButtonBase.cxx:29
VP1MaterialButtonBase::lastAppliedChanged
void lastAppliedChanged()
CaloClusterCollectionSettingsButton::cutAllowedEta
VP1Interval cutAllowedEta() const
Definition: CaloClusterCollectionSettingsButton.cxx:635