Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <VP1EtaPhiCutWidget.h>
|
| VP1EtaPhiCutWidget (QWidget *parent=0, IVP1System *sys=0) |
|
virtual | ~VP1EtaPhiCutWidget () |
|
VP1Interval | allowedEta () const |
|
QList< VP1Interval > | allowedPhi () 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 |
|
IVP1System * | systemBase () const |
|
const QString & | helperClassName () const |
|
Definition at line 26 of file VP1EtaPhiCutWidget.h.
◆ VP1EtaPhiCutWidget()
VP1EtaPhiCutWidget::VP1EtaPhiCutWidget |
( |
QWidget * |
parent = 0 , |
|
|
IVP1System * |
sys = 0 |
|
) |
| |
◆ ~VP1EtaPhiCutWidget()
VP1EtaPhiCutWidget::~VP1EtaPhiCutWidget |
( |
| ) |
|
|
virtual |
◆ allowedEta()
Definition at line 76 of file VP1EtaPhiCutWidget.cxx.
83 if (!
m_d->
ui.checkBox_cut_etarange->isChecked()) {
84 return VP1Interval(-std::numeric_limits<double>::infinity(),std::numeric_limits<double>::infinity());
87 const double min =
m_d->
ui.doubleSpinBox_cut_etalower->value();
88 const double max =
m_d->
ui.doubleSpinBox_cut_etaupper->value();
96 if (
m_d->
ui.checkBox_etacut_excludeRange) {
◆ allowedEtaChanged
◆ allowedPhi()
QList< VP1Interval > VP1EtaPhiCutWidget::allowedPhi |
( |
| ) |
const |
Definition at line 106 of file VP1EtaPhiCutWidget.cxx.
108 QList<VP1Interval>
l;
110 if (!
m_d->
ui.checkBox_cut_phi && !
m_d->
ui.checkBox_phiCuts)
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());
119 if (
m_d->
ui.checkBox_cut_phi->isChecked() && ( !
m_d->
ui.phisectionwidget ||
m_d->
ui.phisectionwidget->allSectorsOff() ) )
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());
125 }
else if (
m_d->
ui.checkBox_cut_phi->isChecked() ) {
126 return m_d->
ui.phisectionwidget->enabledPhiRanges();
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);
◆ allowedPhiChanged
◆ handleEtaCutSymmetry
void VP1EtaPhiCutWidget::handleEtaCutSymmetry |
( |
| ) |
|
|
privateslot |
Definition at line 152 of file VP1EtaPhiCutWidget.cxx.
154 if (!
m_d->
ui.checkBox_cut_etarange_forcesymmetric)
156 if (sender()==
m_d->
ui.checkBox_cut_etarange_forcesymmetric) {
159 if (
m_d->
ui.checkBox_cut_etarange_forcesymmetric->isChecked()) {
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);
165 }
else if (
m_d->
ui.checkBox_cut_etarange_forcesymmetric->isChecked()) {
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());
◆ helperClassName()
const QString& VP1HelperClassBase::helperClassName |
( |
| ) |
const |
|
inlineinherited |
◆ message() [1/3]
void VP1HelperClassBase::message |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ message() [2/3]
void VP1HelperClassBase::message |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 131 of file VP1HelperClassBase.cxx.
133 if (addtostart.isEmpty()) {
137 if (addtoend.isEmpty()) {
138 for (
const QString&
s :
l)
141 for (
const QString&
s :
l)
◆ message() [3/3]
void VP1HelperClassBase::message |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 91 of file VP1HelperClassBase.cxx.
93 if (addtoend.isEmpty()) {
94 for (
const QString&
s :
l)
97 for (
const QString&
s :
l)
◆ messageDebug() [1/3]
void VP1HelperClassBase::messageDebug |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageDebug() [2/3]
void VP1HelperClassBase::messageDebug |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 147 of file VP1HelperClassBase.cxx.
151 if (addtostart.isEmpty()) {
155 if (addtoend.isEmpty()) {
156 for (
const QString&
s :
l)
159 for (
const QString&
s :
l)
◆ messageDebug() [3/3]
void VP1HelperClassBase::messageDebug |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 103 of file VP1HelperClassBase.cxx.
107 if (addtoend.isEmpty()) {
108 for (
const QString&
s :
l)
111 for (
const QString&
s :
l)
◆ messageVerbose() [1/3]
void VP1HelperClassBase::messageVerbose |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageVerbose() [2/3]
void VP1HelperClassBase::messageVerbose |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 165 of file VP1HelperClassBase.cxx.
169 if (addtostart.isEmpty()) {
173 if (addtoend.isEmpty()) {
174 for (
const QString&
s :
l)
177 for (
const QString&
s :
l)
◆ messageVerbose() [3/3]
void VP1HelperClassBase::messageVerbose |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 117 of file VP1HelperClassBase.cxx.
121 if (addtoend.isEmpty()) {
122 for (
const QString&
s :
l)
125 for (
const QString&
s :
l)
◆ possibleChange_allowedEta
void VP1EtaPhiCutWidget::possibleChange_allowedEta |
( |
| ) |
|
|
privateslot |
◆ possibleChange_allowedPhi
void VP1EtaPhiCutWidget::possibleChange_allowedPhi |
( |
| ) |
|
|
privateslot |
Definition at line 202 of file VP1EtaPhiCutWidget.cxx.
206 QList<VP1Interval> newAllowedPhi =
allowedPhi();
212 for(
int i=0;
i<newAllowedPhi.count();++
i)
213 s+= newAllowedPhi.at(
i).toString()+(
i==newAllowedPhi.count()-1?
"":
", ");
◆ restoreFromState()
void VP1EtaPhiCutWidget::restoreFromState |
( |
const QByteArray & |
ba | ) |
|
Definition at line 301 of file VP1EtaPhiCutWidget.cxx.
307 if (state.version()<0||state.version()>1)
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);
319 state.restore(
m_d->
ui.phisectionwidget);
321 state.widgetHandled(
this);
322 state.warnUnrestored(
this);
◆ saveState()
QByteArray VP1EtaPhiCutWidget::saveState |
( |
| ) |
const |
◆ setEtaCut() [1/2]
void VP1EtaPhiCutWidget::setEtaCut |
( |
const double & |
e | ) |
|
◆ setEtaCut() [2/2]
void VP1EtaPhiCutWidget::setEtaCut |
( |
const double & |
a, |
|
|
const double & |
b |
|
) |
| |
Definition at line 249 of file VP1EtaPhiCutWidget.cxx.
252 const double rangemax =
m_d->
ui.doubleSpinBox_cut_etaupper->maximum();
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);
268 m_d->
ui.checkBox_cut_etarange->setChecked(
true);
269 m_d->
ui.checkBox_cut_etarange_forcesymmetric->setChecked(
e1==-
e2);
271 m_d->
ui.doubleSpinBox_cut_etalower->setValue(
e1);
272 m_d->
ui.doubleSpinBox_cut_etaupper->setValue(
e2);
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);
◆ setEtaCutEnabled()
void VP1EtaPhiCutWidget::setEtaCutEnabled |
( |
bool |
b | ) |
|
◆ setHelperClassName()
void VP1HelperClassBase::setHelperClassName |
( |
const QString & |
n | ) |
|
|
inlineprotectedinherited |
◆ setSystemBasePointer()
void VP1HelperClassBase::setSystemBasePointer |
( |
IVP1System * |
sys | ) |
|
|
inherited |
◆ showEtaCut()
void VP1EtaPhiCutWidget::showEtaCut |
( |
bool |
b | ) |
|
◆ showPhiCut()
void VP1EtaPhiCutWidget::showPhiCut |
( |
bool |
b | ) |
|
◆ str() [1/30]
◆ str() [2/30]
static QString VP1String::str |
( |
const bool |
b | ) |
|
|
inlinestaticinherited |
Definition at line 53 of file VP1String.h.
53 {
return b?
"True":
"False"; }
◆ str() [3/30]
static QString VP1String::str |
( |
const char * |
c | ) |
|
|
inlinestaticinherited |
◆ str() [4/30]
static QString VP1String::str |
( |
const double & |
d | ) |
|
|
inlinestaticinherited |
◆ str() [5/30]
static QString VP1String::str |
( |
const float & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [6/30]
◆ str() [7/30]
QString VP1String::str |
( |
const QColor & |
c | ) |
|
|
staticinherited |
Definition at line 30 of file VP1String.cxx.
32 return c.isValid() ?
c.name() :
"Invalid";
◆ str() [8/30]
template<class T >
static QString VP1String::str |
( |
const QFlags< T > & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [9/30]
template<class T >
static QString VP1String::str |
( |
const QList< T > & |
t | ) |
|
|
inlinestaticinherited |
◆ str() [10/30]
static QString VP1String::str |
( |
const QString & |
s | ) |
|
|
inlinestaticinherited |
◆ str() [11/30]
QString VP1String::str |
( |
const SbColor & |
c | ) |
|
|
staticinherited |
◆ str() [12/30]
QString VP1String::str |
( |
const SbVec2d & |
v | ) |
|
|
staticinherited |
◆ str() [13/30]
QString VP1String::str |
( |
const SbVec2f & |
v | ) |
|
|
staticinherited |
◆ str() [14/30]
QString VP1String::str |
( |
const SbVec2s & |
v | ) |
|
|
staticinherited |
◆ str() [15/30]
QString VP1String::str |
( |
const SbVec3d & |
v | ) |
|
|
staticinherited |
◆ str() [16/30]
QString VP1String::str |
( |
const SbVec3f & |
v | ) |
|
|
staticinherited |
◆ str() [17/30]
QString VP1String::str |
( |
const SbVec3s & |
v | ) |
|
|
staticinherited |
◆ str() [18/30]
QString VP1String::str |
( |
const SbVec4d & |
v | ) |
|
|
staticinherited |
◆ str() [19/30]
QString VP1String::str |
( |
const SbVec4f & |
v | ) |
|
|
staticinherited |
◆ str() [20/30]
template<class T >
static QString VP1String::str |
( |
const T * |
t | ) |
|
|
inlinestaticinherited |
Definition at line 87 of file VP1String.h.
87 {
return str(
static_cast<const void*
>(
t)); }
◆ str() [21/30]
QString VP1String::str |
( |
const void * |
p | ) |
|
|
staticinherited |
Definition at line 48 of file VP1String.cxx.
54 return QString (
s.str().c_str());
◆ str() [22/30]
◆ str() [23/30]
static QString VP1String::str |
( |
int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [24/30]
static QString VP1String::str |
( |
long |
n | ) |
|
|
inlinestaticinherited |
◆ str() [25/30]
static QString VP1String::str |
( |
qlonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [26/30]
static QString VP1String::str |
( |
qulonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [27/30]
static QString VP1String::str |
( |
short int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [28/30]
static QString VP1String::str |
( |
uint |
n | ) |
|
|
inlinestaticinherited |
◆ str() [29/30]
static QString VP1String::str |
( |
ulong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [30/30]
static QString VP1String::str |
( |
unsigned short int |
n | ) |
|
|
inlinestaticinherited |
◆ systemBase()
IVP1System* VP1HelperClassBase::systemBase |
( |
| ) |
const |
|
inlineinherited |
◆ togglePhiCheckboxes
void VP1EtaPhiCutWidget::togglePhiCheckboxes |
( |
| ) |
|
|
privateslot |
Definition at line 190 of file VP1EtaPhiCutWidget.cxx.
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);
◆ verbose()
static bool VP1HelperClassBase::verbose |
( |
| ) |
|
|
inlinestaticinherited |
◆ warnUndeletedInstances()
void VP1HelperClassBase::warnUndeletedInstances |
( |
| ) |
|
|
staticinherited |
Definition at line 183 of file VP1HelperClassBase.cxx.
185 if (vp1helperclassbase_instanceMap.empty())
187 std::cout <<
"WARNING: Detected "<<vp1helperclassbase_instanceMap.size()<<
" undeleted helper class instances:"<<std::endl;
190 for (
it = vp1helperclassbase_instanceMap.begin();
it!=
itE;++
it) {
191 std::cout <<
" ==> "<<
it->first<<
": "<<
it->first->m_helpername.toStdString()
192 << (
it->second.isEmpty()?QString(
""):
" (in system "+
it->
second+
")").toStdString()<<std::endl;
◆ m_d
Imp* VP1EtaPhiCutWidget::m_d |
|
private |
◆ m_helpername
QString VP1HelperClassBase::m_helpername |
|
privateinherited |
◆ m_system
◆ s_vp1verbose
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
double e1(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 1st sampling
Scalar eta() const
pseudorapidity method
void messageVerbose(const QString &) const
static const bool s_vp1verbose
static QString str(const QString &s)
void messageDebug(const QString &) const
def save(self, fileName="./columbo.out")
static const char * prefix_msg()
const QString & name() const
static QColor sbcol2qcol(const SbColor &)
IVP1System * systemBase() const
static const char * prefix_debug()
static const char * prefix_verbose()
double e2(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 2nd sampling
void message(const QString &) const
VP1HelperClassBase(IVP1System *sys=0, QString helpername="")
void message(const QString &) const