ATLAS Offline Software
Loading...
Searching...
No Matches
VP1EtaPhiCutWidget Class Reference

#include <VP1EtaPhiCutWidget.h>

Inheritance diagram for VP1EtaPhiCutWidget:
Collaboration diagram for VP1EtaPhiCutWidget:

Classes

class  Imp

Signals

void allowedEtaChanged (const VP1Interval &)
void allowedPhiChanged (const QList< VP1Interval > &)

Public Member Functions

 VP1EtaPhiCutWidget (QWidget *parent=0, IVP1System *sys=0)
virtual ~VP1EtaPhiCutWidget ()
VP1Interval allowedEta () const
QList< VP1IntervalallowedPhi () const
QByteArray saveState () const
void restoreFromState (const QByteArray &)
void setEtaCutEnabled (bool)
void setEtaCut (const double &)
void setEtaCut (const double &, const double &)
void showEtaCut (bool b)
void showPhiCut (bool b)
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 Member Functions

void setHelperClassName (const QString &n)

Private Slots

void handleEtaCutSymmetry ()
void possibleChange_allowedEta ()
void possibleChange_allowedPhi ()
void togglePhiCheckboxes ()

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 26 of file VP1EtaPhiCutWidget.h.

Constructor & Destructor Documentation

◆ VP1EtaPhiCutWidget()

VP1EtaPhiCutWidget::VP1EtaPhiCutWidget ( QWidget * parent = 0,
IVP1System * sys = 0 )

Definition at line 41 of file VP1EtaPhiCutWidget.cxx.

42 : QWidget(parent), VP1HelperClassBase(sys,"VP1EtaPhiCutWidget"), m_d(new Imp)
43{
44 m_d->ui.setupUi(this);
45
46 m_d->last_allowedEta = allowedEta();
47 m_d->last_allowedPhi = allowedPhi();
48
49 // -> allowedEta (a bit special due to the "force symmetric" ability)
50 connect(m_d->ui.checkBox_cut_etarange,SIGNAL(toggled(bool)),this,SLOT(possibleChange_allowedEta()));
51 connect(m_d->ui.checkBox_cut_etarange_forcesymmetric,SIGNAL(toggled(bool)),this,SLOT(handleEtaCutSymmetry()));
52 connect(m_d->ui.doubleSpinBox_cut_etalower,SIGNAL(valueChanged(double)),this,SLOT(handleEtaCutSymmetry()));
53 connect(m_d->ui.doubleSpinBox_cut_etaupper,SIGNAL(valueChanged(double)),this,SLOT(handleEtaCutSymmetry()));
54
55 // -> allowedPhi
56 connect(m_d->ui.checkBox_cut_phi,SIGNAL(toggled(bool)),this,SLOT(possibleChange_allowedPhi()));
57 connect(m_d->ui.phisectionwidget,SIGNAL(enabledPhiRangesChanged(const QList<VP1Interval>&)),
58 this,SLOT(possibleChange_allowedPhi()));
59
60 connect(m_d->ui.checkBox_cut_phi,SIGNAL(toggled(bool)),this,SLOT(togglePhiCheckboxes()));
61 connect(m_d->ui.checkBox_phiCuts,SIGNAL(toggled(bool)),this,SLOT(togglePhiCheckboxes()));
62
63 connect(m_d->ui.checkBox_phiCuts,SIGNAL(toggled(bool)),this,SLOT(possibleChange_allowedPhi()));
64 connect(m_d->ui.dsb_phiCuts_min,SIGNAL(valueChanged(double)),this,SLOT(possibleChange_allowedPhi()));
65 connect(m_d->ui.dsb_phiCuts_max,SIGNAL(valueChanged(double)),this,SLOT(possibleChange_allowedPhi()));
66
67}
QList< VP1Interval > allowedPhi() const
VP1Interval allowedEta() const
VP1HelperClassBase(IVP1System *sys=0, QString helpername="")

◆ ~VP1EtaPhiCutWidget()

VP1EtaPhiCutWidget::~VP1EtaPhiCutWidget ( )
virtual

Definition at line 70 of file VP1EtaPhiCutWidget.cxx.

71{
72 delete m_d;
73}

Member Function Documentation

◆ allowedEta()

VP1Interval VP1EtaPhiCutWidget::allowedEta ( ) const

Definition at line 76 of file VP1EtaPhiCutWidget.cxx.

77{
78 if(VP1Msg::verbose()){
79 messageVerbose("VP1EtaPhiCutWidget::allowedEta()");
80 }
81
82 // if "eta cut" is not set: we return an interval ]-inf,inf[, so all objects will pass the internal eta cut
83 if (!m_d->ui.checkBox_cut_etarange->isChecked()) {
84 return VP1Interval(-std::numeric_limits<double>::infinity(),std::numeric_limits<double>::infinity());
85 }
86
87 const double min = m_d->ui.doubleSpinBox_cut_etalower->value();
88 const double max = m_d->ui.doubleSpinBox_cut_etaupper->value();
89
90 // if max < min: we return what??
91 if (max<min)
92 return VP1Interval();
93
94 // FIXME: checkBox_etacut_excludeRange is not actually used now, check and fix!
95 // if "Exclude Eta range" is selected, we set the "excludeInterval" flag in the instance of the VP1Interval class
96 if (m_d->ui.checkBox_etacut_excludeRange) {
97 if(VP1Msg::verbose()){
98 messageVerbose("excludeRange=true");
99 }
100 return VP1Interval(min, max, true, true, true);
101 }
102 return VP1Interval( min, max );//fixme: closed interval?? Ckeck!
103}
#define min(a, b)
Definition cfImp.cxx:40
#define max(a, b)
Definition cfImp.cxx:41
void messageVerbose(const QString &) const
static bool verbose()
Definition VP1Msg.h:31

◆ allowedEtaChanged

void VP1EtaPhiCutWidget::allowedEtaChanged ( const VP1Interval & )
signal

◆ allowedPhi()

QList< VP1Interval > VP1EtaPhiCutWidget::allowedPhi ( ) const

Definition at line 106 of file VP1EtaPhiCutWidget.cxx.

107{
108 QList<VP1Interval> l;
109
110 if (!m_d->ui.checkBox_cut_phi && !m_d->ui.checkBox_phiCuts)
111 return l;
112
113
114 if ( !m_d->ui.checkBox_cut_phi->isChecked() && !m_d->ui.checkBox_phiCuts->isChecked() ) {
115 l << VP1Interval(-std::numeric_limits<double>::infinity(),std::numeric_limits<double>::infinity());
116 return l;
117 }
118
119 if ( m_d->ui.checkBox_cut_phi->isChecked() && ( !m_d->ui.phisectionwidget || m_d->ui.phisectionwidget->allSectorsOff() ) )
120 return l;
121
122 if ( m_d->ui.checkBox_cut_phi->isChecked() && m_d->ui.phisectionwidget->allSectorsOn() ) {
123 l << VP1Interval(-std::numeric_limits<double>::infinity(),std::numeric_limits<double>::infinity());
124 return l;
125 } else if ( m_d->ui.checkBox_cut_phi->isChecked() ) {
126 return m_d->ui.phisectionwidget->enabledPhiRanges();
127 }
128 if ( m_d->ui.checkBox_phiCuts->isChecked() ) {
129 double phi_min = m_d->ui.dsb_phiCuts_min->value();
130 double phi_max = m_d->ui.dsb_phiCuts_max->value();
131 return m_d->ui.phisectionwidget->enabledPhiRanges(phi_min, phi_max);
132 }
133
134 return l; // we should not get here
135
136}
l
Printing final latex table to .tex output file.

◆ allowedPhiChanged

void VP1EtaPhiCutWidget::allowedPhiChanged ( const QList< VP1Interval > & )
signal

◆ handleEtaCutSymmetry

void VP1EtaPhiCutWidget::handleEtaCutSymmetry ( )
privateslot

Definition at line 152 of file VP1EtaPhiCutWidget.cxx.

153{
154 if (!m_d->ui.checkBox_cut_etarange_forcesymmetric)
155 return;
156 if (sender()==m_d->ui.checkBox_cut_etarange_forcesymmetric) {
157 //update allowed ranges, change values if necessary.
158 m_d->adaptSpinBoxRangesForSymmetry(m_d->ui.checkBox_cut_etarange_forcesymmetric->isChecked());
159 if (m_d->ui.checkBox_cut_etarange_forcesymmetric->isChecked()) {
160 //Enforce symmetry:
161 const double eta = std::max(fabs(m_d->ui.doubleSpinBox_cut_etalower->value()),fabs(m_d->ui.doubleSpinBox_cut_etaupper->value()));
162 m_d->ui.doubleSpinBox_cut_etalower->setValue(-eta);
163 m_d->ui.doubleSpinBox_cut_etaupper->setValue(eta);
164 }
165 } else if (m_d->ui.checkBox_cut_etarange_forcesymmetric->isChecked()) {
166 //Update other value:
167 if (sender()==m_d->ui.doubleSpinBox_cut_etalower) {
168 m_d->ui.doubleSpinBox_cut_etaupper->setValue(-m_d->ui.doubleSpinBox_cut_etalower->value());
169 } else if (sender()==m_d->ui.doubleSpinBox_cut_etaupper) {
170 m_d->ui.doubleSpinBox_cut_etalower->setValue(-m_d->ui.doubleSpinBox_cut_etaupper->value());
171 }
172 }
174}
Scalar eta() const
pseudorapidity method

◆ helperClassName()

const QString & VP1HelperClassBase::helperClassName ( ) const
inlineinherited

Definition at line 51 of file VP1HelperClassBase.h.

51{ return m_helpername; }

◆ 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)
53 m_system->message(str);
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}
static const char * prefix_msg()
Definition VP1Msg.h:56
static QString str(const QString &s)
Definition VP1String.h:49

◆ 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}
void message(const QString &) const

◆ 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}
static bool debug()
Definition VP1Msg.h:32
static const char * prefix_debug()
Definition VP1Msg.h:57

◆ 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}
void messageDebug(const QString &) const

◆ 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}
static const char * prefix_verbose()
Definition VP1Msg.h:59

◆ 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)
124 } else {
125 for (const QString& s : l)
126 messageVerbose(s+addtoend);
127 }
128}

◆ possibleChange_allowedEta

void VP1EtaPhiCutWidget::possibleChange_allowedEta ( )
privateslot

Definition at line 177 of file VP1EtaPhiCutWidget.cxx.

178{
179 VP1Interval newAllowedEta = allowedEta();
180 if ( m_d->last_allowedEta == newAllowedEta )
181 return;
182 m_d->last_allowedEta = newAllowedEta;
183 if(VP1Msg::verbose()){
184 messageVerbose("Emitting allowedEtaChanged("+newAllowedEta.toString()+")");
185 }
186 emit allowedEtaChanged(newAllowedEta);
187}
void allowedEtaChanged(const VP1Interval &)
QString toString() const

◆ possibleChange_allowedPhi

void VP1EtaPhiCutWidget::possibleChange_allowedPhi ( )
privateslot

Definition at line 202 of file VP1EtaPhiCutWidget.cxx.

203{
204
205
206 QList<VP1Interval> newAllowedPhi = allowedPhi();
207 if ( m_d->last_allowedPhi == newAllowedPhi )
208 return;
209 m_d->last_allowedPhi = newAllowedPhi;
210 if(VP1Msg::verbose()){
211 QString s;
212 for(int i=0;i<newAllowedPhi.count();++i)
213 s+= newAllowedPhi.at(i).toString()+(i==newAllowedPhi.count()-1?"":", ");
214 messageVerbose("Emitting allowedPhiChanged("+s+")");
215 }
216 emit allowedPhiChanged(newAllowedPhi);
217}
void allowedPhiChanged(const QList< VP1Interval > &)

◆ restoreFromState()

void VP1EtaPhiCutWidget::restoreFromState ( const QByteArray & ba)

Definition at line 301 of file VP1EtaPhiCutWidget.cxx.

302{
303 //NB: We can't use the VP1Deserialise::restore(VP1EtaPhiCutWidget*) here
304 //(that would give infinite recursion).
305
306 VP1Deserialise state(ba,systemBase());
307 if (state.version()<0||state.version()>1)
308 return;//Ignore silently
309
310 state.restore(m_d->ui.checkBox_cut_etarange);
311 state.restore(m_d->ui.checkBox_cut_etarange_forcesymmetric);
312 state.restore(m_d->ui.doubleSpinBox_cut_etalower);
313 state.restore(m_d->ui.doubleSpinBox_cut_etaupper);
314 state.restore(m_d->ui.checkBox_cut_phi);
315 if (state.version()==0) {
316 state.ignoreObsoletePhiSectionWidgetState();
317 state.ignoreWidget(m_d->ui.phisectionwidget);
318 } else {
319 state.restore(m_d->ui.phisectionwidget);
320 }
321 state.widgetHandled(this);
322 state.warnUnrestored(this);
323
326}
IVP1System * systemBase() const

◆ saveState()

QByteArray VP1EtaPhiCutWidget::saveState ( ) const

Definition at line 283 of file VP1EtaPhiCutWidget.cxx.

284{
285 //NB: We can't use the VP1Serialise::save(VP1EtaPhiCutWidget*) here
286 //(that would give infinite recursion).
287
288 VP1Serialise serialise(1/*version*/,systemBase());
289 serialise.save(m_d->ui.checkBox_cut_etarange);
290 serialise.save(m_d->ui.checkBox_cut_etarange_forcesymmetric);
291 serialise.save(m_d->ui.doubleSpinBox_cut_etalower);
292 serialise.save(m_d->ui.doubleSpinBox_cut_etaupper);
293 serialise.save(m_d->ui.checkBox_cut_phi);
294 serialise.save(m_d->ui.phisectionwidget);//Version 0 saved the old-style phisection widget states.
295 serialise.widgetHandled(this);
296 serialise.warnUnsaved(this);
297 return serialise.result();
298}
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors

◆ setEtaCut() [1/2]

void VP1EtaPhiCutWidget::setEtaCut ( const double & e)

Definition at line 229 of file VP1EtaPhiCutWidget.cxx.

230{
231 setEtaCut(-fabs(e),fabs(e));
232}
void setEtaCut(const double &)

◆ setEtaCut() [2/2]

void VP1EtaPhiCutWidget::setEtaCut ( const double & a,
const double & b )

Definition at line 249 of file VP1EtaPhiCutWidget.cxx.

250{
251 double e1(a),e2(b);
252 const double rangemax = m_d->ui.doubleSpinBox_cut_etaupper->maximum();
253 e1 = std::max(-rangemax,e1);
254 e1 = std::min(rangemax,e1);
255 e2 = std::max(-rangemax,e2);
256 e2 = std::min(rangemax,e2);
257 if (e1>=e2||e1!=e1||e2!=e2) {
258 e1 = 0;
259 e2 = 0;
260 }
261
262 bool save = blockSignals(true);
263 bool save1 = m_d->ui.doubleSpinBox_cut_etalower->blockSignals(true);
264 bool save2 = m_d->ui.doubleSpinBox_cut_etaupper->blockSignals(true);
265 bool save3 = m_d->ui.checkBox_cut_etarange->blockSignals(true);
266 bool save4 = m_d->ui.checkBox_cut_etarange_forcesymmetric->blockSignals(true);
267
268 m_d->ui.checkBox_cut_etarange->setChecked(true);
269 m_d->ui.checkBox_cut_etarange_forcesymmetric->setChecked(e1==-e2);
270 m_d->adaptSpinBoxRangesForSymmetry(e1==-e2);
271 m_d->ui.doubleSpinBox_cut_etalower->setValue(e1);
272 m_d->ui.doubleSpinBox_cut_etaupper->setValue(e2);
273
274 blockSignals(save);
275 m_d->ui.doubleSpinBox_cut_etalower->blockSignals(save1);
276 m_d->ui.doubleSpinBox_cut_etaupper->blockSignals(save2);
277 m_d->ui.checkBox_cut_etarange->blockSignals(save3);
278 m_d->ui.checkBox_cut_etarange_forcesymmetric->blockSignals(save4);
280}
static Double_t a
double e2(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 2nd sampling
double e1(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 1st sampling

◆ setEtaCutEnabled()

void VP1EtaPhiCutWidget::setEtaCutEnabled ( bool b)

Definition at line 220 of file VP1EtaPhiCutWidget.cxx.

221{
222 if (b==m_d->ui.checkBox_cut_etarange->isChecked())
223 return;
224 m_d->ui.checkBox_cut_etarange->setChecked(b);
226}

◆ setHelperClassName()

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

Definition at line 59 of file VP1HelperClassBase.h.

◆ 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}
static std::map< VP1HelperClassBase *, QString > vp1helperclassbase_instanceMap

◆ showEtaCut()

void VP1EtaPhiCutWidget::showEtaCut ( bool b)

Definition at line 236 of file VP1EtaPhiCutWidget.cxx.

237{
238 m_d->ui.checkBox_cut_etarange->setChecked(b);
239 m_d->ui.widget_etacut->setVisible(b);
240}

◆ showPhiCut()

void VP1EtaPhiCutWidget::showPhiCut ( bool b)

Definition at line 242 of file VP1EtaPhiCutWidget.cxx.

243{
244 m_d->ui.checkBox_cut_phi->setChecked(b);
245 m_d->ui.widget_phicut->setVisible(b);
246}

◆ str() [1/30]

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]

QString VP1String::str ( const bool b)
inlinestaticinherited

Definition at line 53 of file VP1String.h.

53{ return b?"True":"False"; }

◆ str() [3/30]

QString VP1String::str ( const char * c)
inlinestaticinherited

Definition at line 50 of file VP1String.h.

50{ return c; }

◆ str() [4/30]

QString VP1String::str ( const double & d)
inlinestaticinherited

Definition at line 81 of file VP1String.h.

81{ return QString::number(d); }

◆ str() [5/30]

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>
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>
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>
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]

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}
static QColor sbcol2qcol(const SbColor &)

◆ 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)+")"; }
#define y
#define x

◆ 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)+")"; }
#define 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>
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]

QString VP1String::str ( int n)
inlinestaticinherited

Definition at line 77 of file VP1String.h.

77{ return QString::number(n); }

◆ str() [24/30]

QString VP1String::str ( long n)
inlinestaticinherited

Definition at line 75 of file VP1String.h.

75{ return QString::number(n); }

◆ str() [25/30]

QString VP1String::str ( qlonglong n)
inlinestaticinherited

Definition at line 79 of file VP1String.h.

79{ return QString::number(n); }

◆ str() [26/30]

QString VP1String::str ( qulonglong n)
inlinestaticinherited

Definition at line 80 of file VP1String.h.

80{ return QString::number(n); }

◆ str() [27/30]

QString VP1String::str ( short int n)
inlinestaticinherited

Definition at line 73 of file VP1String.h.

73{ return QString::number(n); }

◆ str() [28/30]

QString VP1String::str ( uint n)
inlinestaticinherited

Definition at line 78 of file VP1String.h.

78{ return QString::number(n); }

◆ str() [29/30]

QString VP1String::str ( ulong n)
inlinestaticinherited

Definition at line 76 of file VP1String.h.

76{ return QString::number(n); }

◆ str() [30/30]

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

◆ togglePhiCheckboxes

void VP1EtaPhiCutWidget::togglePhiCheckboxes ( )
privateslot

Definition at line 190 of file VP1EtaPhiCutWidget.cxx.

190 {
191
192 // If 'range' is checked, then 'cuts' must be unchecked; and viceversa
193 // We only use one option at a time: or we use the dots/ranges, or the numerical values
194 if (sender()==m_d->ui.checkBox_phiCuts) {
195 if ( m_d->ui.checkBox_phiCuts->isChecked() ) m_d->ui.checkBox_cut_phi->setChecked(false);
196 } else if (sender()==m_d->ui.checkBox_cut_phi) {
197 if ( m_d->ui.checkBox_cut_phi->isChecked() ) m_d->ui.checkBox_phiCuts->setChecked(false);
198 }
199}

◆ verbose()

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
static const bool s_vp1verbose

◆ warnUndeletedInstances()

void VP1HelperClassBase::warnUndeletedInstances ( )
staticinherited

Definition at line 183 of file VP1HelperClassBase.cxx.

184{
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* VP1EtaPhiCutWidget::m_d
private

Definition at line 55 of file VP1EtaPhiCutWidget.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: