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
ElectronCollectionSettingsButton Class Reference

#include <ElectronCollectionSettingsButton.h>

Inheritance diagram for ElectronCollectionSettingsButton:
Collaboration diagram for ElectronCollectionSettingsButton:

Classes

class  Imp
 

Public Slots

void showEditMaterialDialog ()
 
void setMaterialText (const QString &)
 

Signals

void trackTubeRadiusChanged (const double &)
 
void lastAppliedChanged ()
 
void hideActualTrackPathChanged (bool)
 
void showParametersChanged (bool)
 
void colourParametersByTypeChanged (bool)
 
void cutAllowedPtChanged (const VP1Interval &)
 
void cutAllowedEtaChanged (const VP1Interval &)
 
void cutAllowedPhiChanged (const QList< VP1Interval > &)
 
void cutRequiredNHitsChanged (const QList< unsigned > &)
 
void cutOnlyVertexAssocTracksChanged (bool)
 
void propagationOptionsChanged ()
 

Public Member Functions

 ElectronCollectionSettingsButton (QWidget *parent=0, int dim=25)
 
virtual ~ElectronCollectionSettingsButton ()
 
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 trackTubeRadius () const
 
bool hideActualTrackPath () const
 
bool useExistingParameters () const
 
int numOfStepsForInterpolation () const
 Returns true if the propagation should use the parameters already on the particle, or false if we should extrapolate from the 1st parameter. More...
 
bool showParameters () const
 Returns the number of steps to use when interpolating between paramters (0 is no interpolation.) More...
 
bool colourParametersByType () const
 
bool cutOnlyVertexAssocTracks () const
 Return true if this collection should only should tracks associated to a vertex. More...
 
VP1Interval cutAllowedPt () const
 
VP1Interval cutAllowedEta () const
 
QList< VP1IntervalcutAllowedPhi () const
 
QList< unsigned > cutRequiredNHits () const
 
SoDrawStyle * trackDrawStyle () const
 
SoLightModel * trackLightModel () const
 
SoMaterial * defaultParameterMaterial () const
 
SoMaterial * parameterMaterial (xAOD::ParameterPosition) const
 
QByteArray saveState () const
 fill out with the state of the object (used for drag and drop etc) More...
 
void restoreFromState (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
 
IVP1SystemsystemBase () 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 updateTrackDrawStyle ()
 
void updateTrackLightModel (bool)
 
void updateTrackTubeRadius ()
 
void updateHideActualTrackPath (bool)
 
void possibleChange_cutAllowedPt ()
 
void possibleChange_cutAllowedEta ()
 
void possibleChange_cutAllowedPhi ()
 
void possibleChange_cutRequiredNHits ()
 
void possibleChange_cutOnlyVertexAssocTracks ()
 
void possibleChange_showParameters ()
 
void possibleChange_parameterColours ()
 

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 14 of file ElectronCollectionSettingsButton.h.

Constructor & Destructor Documentation

◆ ElectronCollectionSettingsButton()

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

Definition at line 118 of file ElectronCollectionSettingsButton.cxx.

119  : VP1MaterialButtonBase(parent,0,"VP1MaterialButton"), m_d(new Imp)
120 {
121  m_d->dim = _dim;
122 
123  m_d->theclass = this;
124  m_d->initEditWindow();
125 
126  //Draw Styles / Complexity:
127  VP1QtInventorUtils::setLimitsLineWidthSlider(m_d->editwindow_ui.horizontalSlider_trackWidth);
128  VP1QtInventorUtils::setValueLineWidthSlider(m_d->editwindow_ui.horizontalSlider_trackWidth,1.0);
129 
130  m_d->trackDrawStyle = new SoDrawStyle;
131  m_d->trackDrawStyle->setName("ElectronDrawStyle");
132  m_d->trackDrawStyle->pointSize=5.0;
133  m_d->trackDrawStyle->ref();
135  connect(m_d->editwindow_ui.horizontalSlider_trackWidth,SIGNAL(valueChanged(int)),this,SLOT(updateTrackDrawStyle()));
137  connect(m_d->editwindow_ui.checkBox_trackTubes,SIGNAL(toggled(bool)),this,SLOT(updateTrackTubeRadius()));
138  connect(m_d->editwindow_ui.doubleSpinBox_trackTubesRadiusMM,SIGNAL(valueChanged(double)),this,SLOT(updateTrackTubeRadius()));
139 
140 
141  m_d->trackLightModel = new SoLightModel;
142  m_d->trackLightModel->setName("ElectronLightModel");
143  m_d->trackLightModel->ref();
144  updateTrackLightModel(false);
145  connect(m_d->editwindow_ui.checkBox_tracksUseBaseLightModel,SIGNAL(toggled(bool)),this,SLOT(updateTrackLightModel(bool)));
146  connect(m_d->editwindow_ui.checkBox_hideactualpaths,SIGNAL(toggled(bool)),this,SLOT(updateHideActualTrackPath(bool)));
147 
148  #if defined BUILDVP1LIGHT
149  m_d->editwindow_ui.radioButton_existingParameters->setChecked(true);
150  m_d->editwindow_ui.radioButton_existingParameters->setEnabled(true);
151  m_d->editwindow_ui.radioButton_extrapolate->setChecked(false);
152  m_d->editwindow_ui.radioButton_extrapolate->setEnabled(false);
153  m_d->editwindow_ui.radioButton_extrapolate->setToolTip("Not available in VP1 Light");
154  m_d->editwindow_ui.horizontalSlider_numBezierSteps->setValue(10);
155  m_d->editwindow_ui.horizontalSlider_numBezierSteps->setSliderPosition(10);
156  #endif //BUILDVP1LIGHT
157 
158 
159  // Propagation - for all of these, just emit the propagationOptionsChanged() signal and rely on clients checking to see what has changed.
160  connect(m_d->editwindow_ui.radioButton_existingParameters, SIGNAL(toggled(bool)), this, SIGNAL(propagationOptionsChanged()));
161  connect(m_d->editwindow_ui.radioButton_extrapolate, SIGNAL(toggled(bool)), this, SIGNAL(propagationOptionsChanged()));
162  connect(m_d->editwindow_ui.horizontalSlider_numBezierSteps,SIGNAL(valueChanged(int)),this, SIGNAL(propagationOptionsChanged()));
163 
164  // -> parameters
165  connect(m_d->editwindow_ui.checkBox_showparameters,SIGNAL(toggled(bool)),this,SLOT(possibleChange_showParameters()));
166  connect(m_d->editwindow_ui.checkBox_parameters_colourByType,SIGNAL(toggled(bool)),this,SLOT(possibleChange_parameterColours()));
167 
168  // -> cutAllowedP/Pt
169  connect(m_d->editwindow_ui.checkBox_cut_minpt,SIGNAL(toggled(bool)),this,SLOT(possibleChange_cutAllowedPt()));
170  connect(m_d->editwindow_ui.checkBox_cut_maxpt,SIGNAL(toggled(bool)),this,SLOT(possibleChange_cutAllowedPt()));
171  connect(m_d->editwindow_ui.doubleSpinBox_cut_minpt_gev,SIGNAL(valueChanged(double)),this,SLOT(possibleChange_cutAllowedPt()));
172  connect(m_d->editwindow_ui.doubleSpinBox_cut_maxpt_gev,SIGNAL(valueChanged(double)),this,SLOT(possibleChange_cutAllowedPt()));
173  connect(m_d->editwindow_ui.checkBox_cut_minpt,SIGNAL(toggled(bool)),this,SLOT(possibleChange_cutAllowedPt()));
174  connect(m_d->editwindow_ui.comboBox_momtype,SIGNAL(currentIndexChanged(int)),this,SLOT(possibleChange_cutAllowedPt()));
175 
176  // -> cutAllowedEta
177  connect(m_d->editwindow_ui.etaPhiCutWidget,SIGNAL(allowedEtaChanged(const VP1Interval&)),this,SLOT(possibleChange_cutAllowedEta()));
178 
179  // -> cutAllowedPhi
180  connect(m_d->editwindow_ui.etaPhiCutWidget,SIGNAL(allowedPhiChanged(const QList<VP1Interval>&)),this,SLOT(possibleChange_cutAllowedPhi()));
181 
182  // -> cutRequiredNHits();
183  connect(m_d->editwindow_ui.checkBox_cut_nhits_pixel,SIGNAL(toggled(bool)),this,SLOT(possibleChange_cutRequiredNHits()));
184  connect(m_d->editwindow_ui.checkBox_cut_nhits_sct,SIGNAL(toggled(bool)),this,SLOT(possibleChange_cutRequiredNHits()));
185  connect(m_d->editwindow_ui.checkBox_cut_nhits_trt,SIGNAL(toggled(bool)),this,SLOT(possibleChange_cutRequiredNHits()));
186  connect(m_d->editwindow_ui.checkBox_cut_nhits_muon,SIGNAL(toggled(bool)),this,SLOT(possibleChange_cutRequiredNHits()));
187  connect(m_d->editwindow_ui.spinBox_cut_nhits_pixel,SIGNAL(valueChanged(int)),this,SLOT(possibleChange_cutRequiredNHits()));
188  connect(m_d->editwindow_ui.spinBox_cut_nhits_sct,SIGNAL(valueChanged(int)),this,SLOT(possibleChange_cutRequiredNHits()));
189  connect(m_d->editwindow_ui.spinBox_cut_nhits_trt,SIGNAL(valueChanged(int)),this,SLOT(possibleChange_cutRequiredNHits()));
190  connect(m_d->editwindow_ui.spinBox_cut_nhits_muon,SIGNAL(valueChanged(int)),this,SLOT(possibleChange_cutRequiredNHits()));
191 
192  // -> cutOnlyVertexAssocTracks
193  connect(m_d->editwindow_ui.checkBox_vertexAssociated,SIGNAL(toggled(bool)),this,SLOT(possibleChange_cutOnlyVertexAssocTracks()));
194 
195  connect(this,SIGNAL(clicked()),this,SLOT(showEditMaterialDialog()));
196  connect(m_d->editwindow_ui.pushButton_close,SIGNAL(clicked()),this,SLOT(showEditMaterialDialog()));
197  connect(m_d->matButton,SIGNAL(lastAppliedChanged()),this,SLOT(updateButton()));
198  connect(m_d->matButton,SIGNAL(lastAppliedChanged()),this,SIGNAL(lastAppliedChanged()));
199  setAcceptDrops(true);
200 
201  QTimer::singleShot(0, this, SLOT(updateButton()));
202 
203 }

◆ ~ElectronCollectionSettingsButton()

ElectronCollectionSettingsButton::~ElectronCollectionSettingsButton ( )
virtual

Definition at line 210 of file ElectronCollectionSettingsButton.cxx.

211 {
212  delete m_d->editwindow;
213  m_d->trackDrawStyle->unref();
214  m_d->trackLightModel->unref();
215  delete m_d;
216 }

Member Function Documentation

◆ colourParametersByType()

bool ElectronCollectionSettingsButton::colourParametersByType ( ) const

Definition at line 364 of file ElectronCollectionSettingsButton.cxx.

365 {
366  if (!m_d->editwindow)
367  m_d->initEditWindow();
368  messageVerbose("ElectronCollectionSettingsButton::colourParametersByType returning "+str(m_d->editwindow_ui.checkBox_parameters_colourByType->isChecked()));
369  return m_d->editwindow_ui.checkBox_parameters_colourByType->isChecked();
370 }

◆ colourParametersByTypeChanged

void ElectronCollectionSettingsButton::colourParametersByTypeChanged ( bool  )
signal

◆ copyValuesFromMaterial()

void ElectronCollectionSettingsButton::copyValuesFromMaterial ( SoMaterial *  mat)
virtual

Implements VP1MaterialButtonBase.

Definition at line 253 of file ElectronCollectionSettingsButton.cxx.

254 {
255  if (!m_d->matButton) m_d->initEditWindow();
257 }

◆ cutAllowedEta()

VP1Interval ElectronCollectionSettingsButton::cutAllowedEta ( ) const

Definition at line 540 of file ElectronCollectionSettingsButton.cxx.

541 {
542  if (!m_d->editwindow)
543  m_d->initEditWindow();
544  return m_d->editwindow_ui.etaPhiCutWidget->allowedEta();
545 }

◆ cutAllowedEtaChanged

void ElectronCollectionSettingsButton::cutAllowedEtaChanged ( const VP1Interval )
signal

◆ cutAllowedPhi()

QList< VP1Interval > ElectronCollectionSettingsButton::cutAllowedPhi ( ) const

Definition at line 548 of file ElectronCollectionSettingsButton.cxx.

549 {
550  if (!m_d->editwindow)
551  m_d->initEditWindow();
552  return m_d->editwindow_ui.etaPhiCutWidget->allowedPhi();
553 }

◆ cutAllowedPhiChanged

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

◆ cutAllowedPt()

VP1Interval ElectronCollectionSettingsButton::cutAllowedPt ( ) const

Definition at line 504 of file ElectronCollectionSettingsButton.cxx.

505 {
506  if (!m_d->editwindow)
507  m_d->initEditWindow();
508  if (!m_d->editwindow_ui.checkBox_cut_minpt)
509  return VP1Interval();
510 
511  // will set range to negative if we have momcut=P
512  // if minCut unset then min=-inf
513  // if minCut set, and Pt selected, then min=-minCut
514  // if minCut set, and P selected, then min=-maxCut
515  // etc
516  bool isPCut = m_d->editwindow_ui.comboBox_momtype->currentText()=="P";
517 
518  const double minFromInterface=m_d->editwindow_ui.doubleSpinBox_cut_minpt_gev->value()*1000;
519  const double maxFromInterface=m_d->editwindow_ui.doubleSpinBox_cut_maxpt_gev->value()*1000;
520 
521  double min=0.0,max=0.0;
522  if (!isPCut) {
523  //Pt cut
524  min = (m_d->editwindow_ui.checkBox_cut_minpt->isChecked() ? minFromInterface : -std::numeric_limits<double>::infinity());
525  max = (m_d->editwindow_ui.checkBox_cut_maxpt->isChecked() ? maxFromInterface : std::numeric_limits<double>::infinity());
526  } else {
527  min = (m_d->editwindow_ui.checkBox_cut_maxpt->isChecked() ? -maxFromInterface : -std::numeric_limits<double>::infinity());
528  max = (m_d->editwindow_ui.checkBox_cut_minpt->isChecked() ? -minFromInterface : std::numeric_limits<double>::infinity());
529  }
530 
531  //message("cutAllowedPt: min,max="+QString::number(min)+","+QString::number(max));
532 
533  if (max<min)
534  return VP1Interval();
535 
536  return VP1Interval( min, max );//fixme: closed interval??
537 }

◆ cutAllowedPtChanged

void ElectronCollectionSettingsButton::cutAllowedPtChanged ( const VP1Interval )
signal

◆ cutOnlyVertexAssocTracks()

bool ElectronCollectionSettingsButton::cutOnlyVertexAssocTracks ( ) const

Return true if this collection should only should tracks associated to a vertex.

Definition at line 373 of file ElectronCollectionSettingsButton.cxx.

374 {
375  if (!m_d->editwindow)
376  m_d->initEditWindow();
377  return m_d->editwindow_ui.checkBox_vertexAssociated->isChecked();
378 }

◆ cutOnlyVertexAssocTracksChanged

void ElectronCollectionSettingsButton::cutOnlyVertexAssocTracksChanged ( bool  )
signal

◆ cutRequiredNHits()

QList< unsigned > ElectronCollectionSettingsButton::cutRequiredNHits ( ) const

Definition at line 556 of file ElectronCollectionSettingsButton.cxx.

557 {
558  if (!m_d->editwindow)
559  m_d->initEditWindow();
560  unsigned npixel = m_d->editwindow_ui.checkBox_cut_nhits_pixel->isChecked() ? m_d->editwindow_ui.spinBox_cut_nhits_pixel->value() : 0;
561  unsigned nsct = m_d->editwindow_ui.checkBox_cut_nhits_sct->isChecked() ? m_d->editwindow_ui.spinBox_cut_nhits_sct->value() : 0;
562  unsigned ntrt = m_d->editwindow_ui.checkBox_cut_nhits_trt->isChecked() ? m_d->editwindow_ui.spinBox_cut_nhits_trt->value() : 0;
563  unsigned nmuon = m_d->editwindow_ui.checkBox_cut_nhits_muon->isChecked() ? m_d->editwindow_ui.spinBox_cut_nhits_muon->value() : 0;
564  QList<unsigned> l;
565  if (!npixel&&!nsct&&!ntrt&&!nmuon)
566  return l;
567  l << npixel << nsct << ntrt << nmuon;
568  return l;
569 }

◆ cutRequiredNHitsChanged

void ElectronCollectionSettingsButton::cutRequiredNHitsChanged ( const QList< unsigned > &  )
signal

◆ defaultParameterMaterial()

SoMaterial * ElectronCollectionSettingsButton::defaultParameterMaterial ( ) const

Definition at line 331 of file ElectronCollectionSettingsButton.cxx.

331  {
332  return m_d->defaultParametersMatButton->handledMaterials().at(0);// Only have one material per button.
333 }

◆ dragEnterEvent()

void ElectronCollectionSettingsButton::dragEnterEvent ( QDragEnterEvent *  event)
protected

Definition at line 389 of file ElectronCollectionSettingsButton.cxx.

390 {
391  if (event->source()!=this && event->mimeData()->hasFormat("vp1/material"))
392  event->acceptProposedAction();
393 }

◆ dropEvent()

void ElectronCollectionSettingsButton::dropEvent ( QDropEvent *  event)
protected

Definition at line 448 of file ElectronCollectionSettingsButton.cxx.

449 {
450  QByteArray data = event->mimeData()->data("vp1/material");
451  event->acceptProposedAction();
453 }

◆ helperClassName()

QString VP1HelperClassBase::helperClassName ( ) const
inlineinherited

Definition at line 51 of file VP1HelperClassBase.h.

51 { return m_helpername; }

◆ hideActualTrackPath()

bool ElectronCollectionSettingsButton::hideActualTrackPath ( ) const

Definition at line 349 of file ElectronCollectionSettingsButton.cxx.

350 {
351  if (!m_d->editwindow)
352  m_d->initEditWindow();
353  return m_d->editwindow_ui.checkBox_hideactualpaths->isChecked();
354 }

◆ hideActualTrackPathChanged

void ElectronCollectionSettingsButton::hideActualTrackPathChanged ( bool  )
signal

◆ lastAppliedBrightness()

double ElectronCollectionSettingsButton::lastAppliedBrightness ( ) const
virtual

Implements VP1MaterialButtonBase.

Definition at line 268 of file ElectronCollectionSettingsButton.cxx.

269 {
270  if (!m_d->matButton) m_d->initEditWindow();
272 }

◆ lastAppliedChanged

void ElectronCollectionSettingsButton::lastAppliedChanged ( )
signal

◆ lastAppliedShininess()

double ElectronCollectionSettingsButton::lastAppliedShininess ( ) const
virtual

Implements VP1MaterialButtonBase.

Definition at line 263 of file ElectronCollectionSettingsButton.cxx.

264 {
265  if (!m_d->matButton) m_d->initEditWindow();
267 }

◆ lastAppliedTransparency()

double ElectronCollectionSettingsButton::lastAppliedTransparency ( ) const
virtual

Implements VP1MaterialButtonBase.

Definition at line 258 of file ElectronCollectionSettingsButton.cxx.

259 {
260  if (!m_d->matButton) m_d->initEditWindow();
262 }

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

◆ mouseMoveEvent()

void ElectronCollectionSettingsButton::mouseMoveEvent ( QMouseEvent *  event)
protected

Definition at line 396 of file ElectronCollectionSettingsButton.cxx.

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

◆ mousePressEvent()

void ElectronCollectionSettingsButton::mousePressEvent ( QMouseEvent *  event)
protected

Definition at line 381 of file ElectronCollectionSettingsButton.cxx.

382 {
383  if (event->button() == Qt::LeftButton)
384  m_d->dragStartPosition = event->pos();
385  QPushButton::mousePressEvent(event);
386 }

◆ numOfStepsForInterpolation()

int ElectronCollectionSettingsButton::numOfStepsForInterpolation ( ) const

Returns true if the propagation should use the parameters already on the particle, or false if we should extrapolate from the 1st parameter.

Definition at line 327 of file ElectronCollectionSettingsButton.cxx.

327  {
328  return m_d->editwindow_ui.horizontalSlider_numBezierSteps->value();
329 }

◆ parameterMaterial()

SoMaterial * ElectronCollectionSettingsButton::parameterMaterial ( xAOD::ParameterPosition  position) const

Definition at line 334 of file ElectronCollectionSettingsButton.cxx.

334  {
335  return (m_d->parameterTypeMatButtons.at(static_cast<unsigned int>(position)))->handledMaterials().at(0);// Only have one material per button.
336 }

◆ possibleChange_cutAllowedEta

void ElectronCollectionSettingsButton::possibleChange_cutAllowedEta ( )
privateslot

Definition at line 582 of file ElectronCollectionSettingsButton.cxx.

583 {
584  if (m_d->last_cutAllowedEta==cutAllowedEta()) return;
585  messageVerbose("cutAllowedEta() changed");
588 }

◆ possibleChange_cutAllowedPhi

void ElectronCollectionSettingsButton::possibleChange_cutAllowedPhi ( )
privateslot

Definition at line 590 of file ElectronCollectionSettingsButton.cxx.

591 {
592  if (m_d->last_cutAllowedPhi==cutAllowedPhi()) return;
593  messageVerbose("cutAllowedPhi() changed");
596 }

◆ possibleChange_cutAllowedPt

void ElectronCollectionSettingsButton::possibleChange_cutAllowedPt ( )
privateslot

Definition at line 572 of file ElectronCollectionSettingsButton.cxx.

573 {
574  messageVerbose("possibleChange_cutAllowedPt() ");
575 
576  if (m_d->last_cutAllowedPt==cutAllowedPt()) return;
577  messageVerbose("cutAllowedPt() changed");
580 }

◆ possibleChange_cutOnlyVertexAssocTracks

void ElectronCollectionSettingsButton::possibleChange_cutOnlyVertexAssocTracks ( )
privateslot

◆ possibleChange_cutRequiredNHits

void ElectronCollectionSettingsButton::possibleChange_cutRequiredNHits ( )
privateslot

Definition at line 598 of file ElectronCollectionSettingsButton.cxx.

599 {
601  messageVerbose("cutRequiredNHits() changed");
604 }

◆ possibleChange_parameterColours

void ElectronCollectionSettingsButton::possibleChange_parameterColours ( )
privateslot

Definition at line 620 of file ElectronCollectionSettingsButton.cxx.

621 {
622  messageVerbose("ElectronCollectionSettingsButton::possibleChange_parameterColours emitting colourParametersByTypeChanged ");
623  emit colourParametersByTypeChanged(m_d->editwindow_ui.checkBox_parameters_colourByType->isChecked());
624 }

◆ possibleChange_showParameters

void ElectronCollectionSettingsButton::possibleChange_showParameters ( )
privateslot

Definition at line 614 of file ElectronCollectionSettingsButton.cxx.

615 {
616  messageVerbose("ElectronCollectionSettingsButton::possibleChange_showParameters emitting showParametersChanged ");
617  emit showParametersChanged(m_d->editwindow_ui.checkBox_showparameters->isChecked());
618 }

◆ propagationOptionsChanged

void ElectronCollectionSettingsButton::propagationOptionsChanged ( )
signal

◆ restoreFromState()

void ElectronCollectionSettingsButton::restoreFromState ( const QByteArray &  ba)
virtual

Implements VP1MaterialButtonBase.

Definition at line 478 of file ElectronCollectionSettingsButton.cxx.

478  {
479 
480  VP1Deserialise state(ba,systemBase());
481  if (state.version()<0||state.version()>1)
482  return;//Ignore silently
483  state.restore(m_d->matButton);
484  state.restore(m_d->editwindow_ui.horizontalSlider_trackWidth);
485  state.restore(m_d->editwindow_ui.checkBox_trackTubes);
486  state.restore(m_d->editwindow_ui.doubleSpinBox_trackTubesRadiusMM);
487  state.restore(m_d->editwindow_ui.checkBox_tracksUseBaseLightModel);
488  state.restore(m_d->editwindow_ui.checkBox_hideactualpaths);
489 
490  // Parameters
491  state.restore(m_d->editwindow_ui.checkBox_showparameters);
492  state.restore(m_d->editwindow_ui.checkBox_parameters_colourByType);
493 
494  state.widgetHandled(this);
495  state.warnUnrestored(this);
496 
498  updateTrackLightModel(m_d->editwindow_ui.checkBox_tracksUseBaseLightModel);
499  updateButton();
500  //FIXME - anything else need updating?
501 }

◆ saveState()

QByteArray ElectronCollectionSettingsButton::saveState ( ) const
virtual

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

Implements VP1MaterialButtonBase.

Definition at line 456 of file ElectronCollectionSettingsButton.cxx.

456  {
457  // messageVerbose("getState");
458  // if (m_d->editwindow_ui.checkBox_tracksUseBaseLightModel->isChecked()) messageVerbose("checked!");
459  VP1Serialise serialise(1/*version*/);
460 
461  serialise.save(m_d->matButton);
462  // serialise.disableUnsavedChecks();
463  serialise.save(m_d->editwindow_ui.horizontalSlider_trackWidth);
464  serialise.save(m_d->editwindow_ui.checkBox_trackTubes);
465  serialise.save(m_d->editwindow_ui.doubleSpinBox_trackTubesRadiusMM);
466  serialise.save(m_d->editwindow_ui.checkBox_tracksUseBaseLightModel);
467  serialise.save(m_d->editwindow_ui.checkBox_hideactualpaths);
468 
469  // Parameters
470  serialise.save(m_d->editwindow_ui.checkBox_showparameters);
471  serialise.save(m_d->editwindow_ui.checkBox_parameters_colourByType);
472 
473  serialise.widgetHandled(this);
474  serialise.warnUnsaved(this);
475  return serialise.result();
476 }

◆ setDimension()

void ElectronCollectionSettingsButton::setDimension ( int  dim)

Definition at line 226 of file ElectronCollectionSettingsButton.cxx.

227 {
228  if (m_d->dim == dim)
229  return;
230  m_d->dim = dim;
231  updateButton();
232 }

◆ setHelperClassName()

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

Definition at line 59 of file VP1HelperClassBase.h.

59 { m_helpername = n; }

◆ setMaterial()

bool ElectronCollectionSettingsButton::setMaterial ( SoMaterial *  mat)
virtual

Implements VP1MaterialButtonBase.

Definition at line 245 of file ElectronCollectionSettingsButton.cxx.

246 {
247  // std::cout<<"ElectronCollectionSettingsButton::setMaterial with mat="<<mat<<std::endl;
248  if (!m_d->matButton) m_d->initEditWindow();
250  return true;
251 }

◆ setMaterialText

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

Definition at line 110 of file ElectronCollectionSettingsButton.cxx.

111 {
112  if (m_d->editwindow)
113  m_d->editwindow->setWindowTitle(t);
114  setToolTip(t);
115 }

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

◆ showEditMaterialDialog

void ElectronCollectionSettingsButton::showEditMaterialDialog ( )
slot

Definition at line 234 of file ElectronCollectionSettingsButton.cxx.

235 {
236  if (!m_d->editwindow)
237  m_d->initEditWindow();
238 
239  if (m_d->editwindow->isHidden())
240  m_d->editwindow->show();
241  else
242  m_d->editwindow->hide();
243 }

◆ showParameters()

bool ElectronCollectionSettingsButton::showParameters ( ) const

Returns the number of steps to use when interpolating between paramters (0 is no interpolation.)

Definition at line 356 of file ElectronCollectionSettingsButton.cxx.

357 {
358  if (!m_d->editwindow)
359  m_d->initEditWindow();
360  messageVerbose("ElectronCollectionSettingsButton::showParameters returning "+str(m_d->editwindow_ui.checkBox_showparameters->isChecked()));
361  return m_d->editwindow_ui.checkBox_showparameters->isChecked();
362 }

◆ showParametersChanged

void ElectronCollectionSettingsButton::showParametersChanged ( bool  )
signal

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

◆ trackDrawStyle()

SoDrawStyle * ElectronCollectionSettingsButton::trackDrawStyle ( ) const

Definition at line 313 of file ElectronCollectionSettingsButton.cxx.

314 {
315  return m_d->trackDrawStyle;
316 }

◆ trackLightModel()

SoLightModel * ElectronCollectionSettingsButton::trackLightModel ( ) const

Definition at line 318 of file ElectronCollectionSettingsButton.cxx.

319 {
320  return m_d->trackLightModel;
321 }

◆ trackTubeRadius()

double ElectronCollectionSettingsButton::trackTubeRadius ( ) const

Definition at line 274 of file ElectronCollectionSettingsButton.cxx.

275 {
276  return m_d->editwindow_ui.checkBox_trackTubes->isChecked() ?
277  m_d->editwindow_ui.doubleSpinBox_trackTubesRadiusMM->value() : 0.0;
278 }

◆ trackTubeRadiusChanged

void ElectronCollectionSettingsButton::trackTubeRadiusChanged ( const double &  )
signal

◆ updateButton

void ElectronCollectionSettingsButton::updateButton ( )
protectedslot

Definition at line 218 of file ElectronCollectionSettingsButton.cxx.

219 {
220  if (objectName().isEmpty())
221  setObjectName("ElectronCollectionSettingsButton");
222  messageVerbose("setColButtonProperties: color=" + str(m_d->matButton->lastAppliedDiffuseColour()));
224 }

◆ updateHideActualTrackPath

void ElectronCollectionSettingsButton::updateHideActualTrackPath ( bool  hide)
privateslot

Definition at line 307 of file ElectronCollectionSettingsButton.cxx.

308 {
309  emit hideActualTrackPathChanged(hide);
310 }

◆ updateTrackDrawStyle

void ElectronCollectionSettingsButton::updateTrackDrawStyle ( )
privateslot

Definition at line 289 of file ElectronCollectionSettingsButton.cxx.

290 {
291  double val = VP1QtInventorUtils::getValueLineWidthSlider(m_d->editwindow_ui.horizontalSlider_trackWidth);
292  if (m_d->trackDrawStyle->lineWidth.getValue()!=val)
293  m_d->trackDrawStyle->lineWidth = val;
294 }

◆ updateTrackLightModel

void ElectronCollectionSettingsButton::updateTrackLightModel ( bool  base)
privateslot

Definition at line 296 of file ElectronCollectionSettingsButton.cxx.

297 {
298  if (m_d->trackLightModel->model.getValue()!=(base?SoLightModel::BASE_COLOR:SoLightModel::PHONG)) {
299  messageVerbose("TrackLightModel changed (base = "+str(base));
300  if (base)
301  m_d->trackLightModel->model.setValue(SoLightModel::BASE_COLOR);
302  else
303  m_d->trackLightModel->model.setValue(SoLightModel::PHONG);
304  }
305 }

◆ updateTrackTubeRadius

void ElectronCollectionSettingsButton::updateTrackTubeRadius ( )
privateslot

Definition at line 280 of file ElectronCollectionSettingsButton.cxx.

281 {
282  if (m_d->last_trackTubeRadius==trackTubeRadius()) return;
284  messageVerbose("TrackTubeRadius changed to "+str(m_d->last_trackTubeRadius));
286  return;
287 }

◆ useExistingParameters()

bool ElectronCollectionSettingsButton::useExistingParameters ( ) const

Definition at line 323 of file ElectronCollectionSettingsButton.cxx.

323  {
324  return m_d->editwindow_ui.radioButton_existingParameters->isChecked();
325 }

◆ 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* ElectronCollectionSettingsButton::m_d
private

Definition at line 97 of file ElectronCollectionSettingsButton.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
ElectronCollectionSettingsButton::Imp::dragStartPosition
QPoint dragStartPosition
Definition: ElectronCollectionSettingsButton.cxx:68
base
std::string base
Definition: hcg.cxx:78
ElectronCollectionSettingsButton::Imp::trackDrawStyle
SoDrawStyle * trackDrawStyle
Definition: ElectronCollectionSettingsButton.cxx:54
python.SystemOfUnits.second
int second
Definition: SystemOfUnits.py:120
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
ElectronCollectionSettingsButton::updateHideActualTrackPath
void updateHideActualTrackPath(bool)
Definition: ElectronCollectionSettingsButton.cxx:307
VP1MaterialButtonBase::VP1MaterialButtonBase
VP1MaterialButtonBase(QWidget *parent, IVP1System *sys=0, QString helpername="")
Definition: VP1MaterialButton.h:28
VP1QtInventorUtils::getValueLineWidthSlider
static double getValueLineWidthSlider(const QSlider *)
Definition: VP1QtInventorUtils.cxx:1619
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
yodamerge_tmp.dim
dim
Definition: yodamerge_tmp.py:239
VP1Serialise
Definition: VP1Serialise.h:45
ElectronCollectionSettingsButton::cutAllowedPhiChanged
void cutAllowedPhiChanged(const QList< VP1Interval > &)
ElectronCollectionSettingsButton::saveState
QByteArray saveState() const
fill out with the state of the object (used for drag and drop etc)
Definition: ElectronCollectionSettingsButton.cxx:456
max
#define max(a, b)
Definition: cfImp.cxx:41
ElectronCollectionSettingsButton::Imp::last_trackTubeRadius
double last_trackTubeRadius
Definition: ElectronCollectionSettingsButton.cxx:58
RoiUtil::serialise
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
Definition: RoiSerialise.cxx:45
ElectronCollectionSettingsButton::updateTrackTubeRadius
void updateTrackTubeRadius()
Definition: ElectronCollectionSettingsButton.cxx:280
ElectronCollectionSettingsButton::hideActualTrackPathChanged
void hideActualTrackPathChanged(bool)
hist_file_dump.d
d
Definition: hist_file_dump.py:137
ElectronCollectionSettingsButton::cutRequiredNHits
QList< unsigned > cutRequiredNHits() const
Definition: ElectronCollectionSettingsButton.cxx:556
mat
GeoMaterial * mat
Definition: LArDetectorConstructionTBEC.cxx:55
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
skel.it
it
Definition: skel.GENtoEVGEN.py:396
ElectronCollectionSettingsButton::Imp::last_cutOnlyVertexAssocTracks
bool last_cutOnlyVertexAssocTracks
Definition: ElectronCollectionSettingsButton.cxx:64
ElectronCollectionSettingsButton::updateTrackDrawStyle
void updateTrackDrawStyle()
Definition: ElectronCollectionSettingsButton.cxx:289
ElectronCollectionSettingsButton::cutOnlyVertexAssocTracksChanged
void cutOnlyVertexAssocTracksChanged(bool)
VP1Msg::debug
static bool debug()
Definition: VP1Msg.h:32
ElectronCollectionSettingsButton::possibleChange_cutAllowedPt
void possibleChange_cutAllowedPt()
Definition: ElectronCollectionSettingsButton.cxx:572
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
VP1HelperClassBase::m_system
IVP1System * m_system
Definition: VP1HelperClassBase.h:68
ElectronCollectionSettingsButton::possibleChange_parameterColours
void possibleChange_parameterColours()
Definition: ElectronCollectionSettingsButton.cxx:620
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ElectronCollectionSettingsButton::Imp::last_cutAllowedEta
VP1Interval last_cutAllowedEta
Definition: ElectronCollectionSettingsButton.cxx:61
ElectronCollectionSettingsButton::lastAppliedChanged
void lastAppliedChanged()
VP1MaterialButton::lastAppliedDiffuseColour
QColor lastAppliedDiffuseColour() const
Definition: VP1MaterialButton.cxx:167
ElectronCollectionSettingsButton::Imp::initEditWindow
void initEditWindow()
Definition: ElectronCollectionSettingsButton.cxx:74
x
#define x
VP1String::str
static QString str(const QString &s)
Definition: VP1String.h:49
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
ElectronCollectionSettingsButton::Imp::editwindow
QWidget * editwindow
Definition: ElectronCollectionSettingsButton.cxx:46
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
TruthTest.itE
itE
Definition: TruthTest.py:25
ElectronCollectionSettingsButton::cutAllowedPhi
QList< VP1Interval > cutAllowedPhi() const
Definition: ElectronCollectionSettingsButton.cxx:548
ElectronCollectionSettingsButton::Imp::last_cutAllowedPt
VP1Interval last_cutAllowedPt
Definition: ElectronCollectionSettingsButton.cxx:59
VP1MaterialButton::handledMaterials
QList< SoMaterial * > handledMaterials() const
Definition: VP1MaterialButton.cxx:647
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
ElectronCollectionSettingsButton::cutOnlyVertexAssocTracks
bool cutOnlyVertexAssocTracks() const
Return true if this collection should only should tracks associated to a vertex.
Definition: ElectronCollectionSettingsButton.cxx:373
VP1Msg::prefix_msg
static const char * prefix_msg()
Definition: VP1Msg.h:56
ElectronCollectionSettingsButton::cutAllowedEtaChanged
void cutAllowedEtaChanged(const VP1Interval &)
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
lumiFormat.i
int i
Definition: lumiFormat.py:85
z
#define z
beamspotman.n
n
Definition: beamspotman.py:731
ElectronCollectionSettingsButton::Imp::editwindow_ui
Ui::ElectronCollectionSettingsForm editwindow_ui
Definition: ElectronCollectionSettingsButton.cxx:47
VP1MaterialButton::lastAppliedBrightness
double lastAppliedBrightness() const
Definition: VP1MaterialButton.cxx:173
test_pyathena.parent
parent
Definition: test_pyathena.py:15
IVP1System::name
const QString & name() const
Definition: IVP1System.cxx:50
ElectronCollectionSettingsButton::Imp::trackLightModel
SoLightModel * trackLightModel
Definition: ElectronCollectionSettingsButton.cxx:55
ElectronCollectionSettingsButton::Imp::matButton
VP1MaterialButton * matButton
Definition: ElectronCollectionSettingsButton.cxx:49
ElectronCollectionSettingsButton::trackTubeRadiusChanged
void trackTubeRadiusChanged(const double &)
hist_file_dump.f
f
Definition: hist_file_dump.py:135
ElectronCollectionSettingsButton::cutRequiredNHitsChanged
void cutRequiredNHitsChanged(const QList< unsigned > &)
ElectronCollectionSettingsButton::Imp::dim
int dim
Definition: ElectronCollectionSettingsButton.cxx:67
ElectronCollectionSettingsButton::possibleChange_cutRequiredNHits
void possibleChange_cutRequiredNHits()
Definition: ElectronCollectionSettingsButton.cxx:598
VP1Deserialise
Definition: VP1Deserialise.h:44
ElectronCollectionSettingsButton::possibleChange_cutOnlyVertexAssocTracks
void possibleChange_cutOnlyVertexAssocTracks()
Definition: ElectronCollectionSettingsButton.cxx:606
VP1QtInventorUtils::setValueLineWidthSlider
static void setValueLineWidthSlider(QSlider *, const double &value)
Definition: VP1QtInventorUtils.cxx:1593
min
#define min(a, b)
Definition: cfImp.cxx:40
VP1QtInventorUtils::sbcol2qcol
static QColor sbcol2qcol(const SbColor &)
Definition: VP1QtInventorUtils.cxx:1142
ElectronCollectionSettingsButton::Imp::last_cutAllowedPhi
QList< VP1Interval > last_cutAllowedPhi
Definition: ElectronCollectionSettingsButton.cxx:62
VP1MaterialButton::setMaterial
bool setMaterial(SoMaterial *)
Definition: VP1MaterialButton.cxx:447
ElectronCollectionSettingsButton::colourParametersByTypeChanged
void colourParametersByTypeChanged(bool)
VP1HelperClassBase::systemBase
IVP1System * systemBase() const
Definition: VP1HelperClassBase.h:50
python.selection.number
number
Definition: selection.py:20
ElectronCollectionSettingsButton::Imp::theclass
ElectronCollectionSettingsButton * theclass
Definition: ElectronCollectionSettingsButton.cxx:45
ElectronCollectionSettingsButton::updateTrackLightModel
void updateTrackLightModel(bool)
Definition: ElectronCollectionSettingsButton.cxx:296
ElectronCollectionSettingsButton::showParametersChanged
void showParametersChanged(bool)
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
ElectronCollectionSettingsButton::cutAllowedEta
VP1Interval cutAllowedEta() const
Definition: ElectronCollectionSettingsButton.cxx:540
VP1Msg::prefix_debug
static const char * prefix_debug()
Definition: VP1Msg.h:57
ElectronCollectionSettingsButton::possibleChange_cutAllowedEta
void possibleChange_cutAllowedEta()
Definition: ElectronCollectionSettingsButton.cxx:582
VP1MaterialButton::lastAppliedShininess
double lastAppliedShininess() const
Definition: VP1MaterialButton.cxx:172
ElectronCollectionSettingsButton::updateButton
void updateButton()
Definition: ElectronCollectionSettingsButton.cxx:218
python.PyAthena.v
v
Definition: PyAthena.py:154
ElectronCollectionSettingsButton::m_d
Imp * m_d
Definition: ElectronCollectionSettingsButton.h:96
VP1Msg::prefix_verbose
static const char * prefix_verbose()
Definition: VP1Msg.h:59
VP1Interval
Definition: VP1Interval.h:23
ElectronCollectionSettingsButton::Imp::defaultParametersMatButton
VP1MaterialButton * defaultParametersMatButton
Definition: ElectronCollectionSettingsButton.cxx:50
y
#define y
ElectronCollectionSettingsButton::cutAllowedPtChanged
void cutAllowedPtChanged(const VP1Interval &)
ElectronCollectionSettingsButton::possibleChange_showParameters
void possibleChange_showParameters()
Definition: ElectronCollectionSettingsButton.cxx:614
VP1QtInventorUtils::setLimitsLineWidthSlider
static void setLimitsLineWidthSlider(QSlider *)
Definition: VP1QtInventorUtils.cxx:1563
ElectronCollectionSettingsButton::Imp::parameterTypeMatButtons
QList< VP1MaterialButton * > parameterTypeMatButtons
Definition: ElectronCollectionSettingsButton.cxx:52
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
ElectronCollectionSettingsButton::cutAllowedPt
VP1Interval cutAllowedPt() const
Definition: ElectronCollectionSettingsButton.cxx:504
ElectronCollectionSettingsButton::showEditMaterialDialog
void showEditMaterialDialog()
Definition: ElectronCollectionSettingsButton.cxx:234
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
ElectronCollectionSettingsButton::possibleChange_cutAllowedPhi
void possibleChange_cutAllowedPhi()
Definition: ElectronCollectionSettingsButton.cxx:590
ElectronCollectionSettingsButton::Imp::last_cutRequiredNHits
QList< unsigned > last_cutRequiredNHits
Definition: ElectronCollectionSettingsButton.cxx:63
ElectronCollectionSettingsButton::restoreFromState
void restoreFromState(const QByteArray &)
Definition: ElectronCollectionSettingsButton.cxx:478
VP1MaterialButton::lastAppliedTransparency
double lastAppliedTransparency() const
Definition: VP1MaterialButton.cxx:171
python.compressB64.c
def c
Definition: compressB64.py:93
IVP1System::message
void message(const QString &) const
Definition: IVP1System.cxx:336
ElectronCollectionSettingsButton::propagationOptionsChanged
void propagationOptionsChanged()
ElectronCollectionSettingsButton::trackTubeRadius
double trackTubeRadius() const
Definition: ElectronCollectionSettingsButton.cxx:274