ATLAS Offline Software
VP1EtaPhiCutWidget.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Header file for class VP1EtaPhiCutWidget //
9 // //
10 // Description: Widget for setting cuts on eta, phi and, //
11 // possibly, a third variable (E/P/Pt) //
12 // //
13 // Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
14 // Initial version: July 2008 //
15 // //
17 
18 #ifndef VP1ETAPHICUTWIDGET_H
19 #define VP1ETAPHICUTWIDGET_H
20 
22 #include "VP1Base/VP1Interval.h"
23 
24 #include <QWidget>
25 
26 class VP1EtaPhiCutWidget : public QWidget, public VP1HelperClassBase {
27 
28  Q_OBJECT
29 
30 public:
31 
32  VP1EtaPhiCutWidget(QWidget * parent = 0, IVP1System * sys = 0);//sys!=0 for messages in gui
33  virtual ~VP1EtaPhiCutWidget();
34 
35  VP1Interval allowedEta() const;
36  QList<VP1Interval> allowedPhi() const;//All off: empty list. All on: list with one entry: ]-inf,inf[
37 
38  QByteArray saveState() const;
39  void restoreFromState( const QByteArray& );
40 
41  void setEtaCutEnabled(bool);
42  void setEtaCut(const double&);//sets symmetric eta cut
43  void setEtaCut(const double&,const double&);//sets asymmetric eta cut (unless range is symmetric)
44 
45  void showEtaCut(bool b);
46  void showPhiCut(bool b);
47 
48 signals:
50  void allowedPhiChanged(const QList<VP1Interval>&);
51 
52 private:
53 
54  class Imp;
55  Imp * m_d;
56 private Q_SLOTS:
57  void handleEtaCutSymmetry();
60  void togglePhiCheckboxes();
61 };
62 
63 #endif
VP1EtaPhiCutWidget::setEtaCutEnabled
void setEtaCutEnabled(bool)
Definition: VP1EtaPhiCutWidget.cxx:220
VP1EtaPhiCutWidget::possibleChange_allowedPhi
void possibleChange_allowedPhi()
Definition: VP1EtaPhiCutWidget.cxx:202
VP1EtaPhiCutWidget::Imp
Definition: VP1EtaPhiCutWidget.cxx:28
VP1EtaPhiCutWidget::handleEtaCutSymmetry
void handleEtaCutSymmetry()
Definition: VP1EtaPhiCutWidget.cxx:152
VP1EtaPhiCutWidget::~VP1EtaPhiCutWidget
virtual ~VP1EtaPhiCutWidget()
Definition: VP1EtaPhiCutWidget.cxx:70
VP1EtaPhiCutWidget::togglePhiCheckboxes
void togglePhiCheckboxes()
Definition: VP1EtaPhiCutWidget.cxx:190
VP1EtaPhiCutWidget::allowedEta
VP1Interval allowedEta() const
Definition: VP1EtaPhiCutWidget.cxx:76
VP1EtaPhiCutWidget
Definition: VP1EtaPhiCutWidget.h:26
VP1EtaPhiCutWidget::m_d
Imp * m_d
Definition: VP1EtaPhiCutWidget.h:54
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
IVP1System
Definition: IVP1System.h:36
VP1EtaPhiCutWidget::possibleChange_allowedEta
void possibleChange_allowedEta()
Definition: VP1EtaPhiCutWidget.cxx:177
test_pyathena.parent
parent
Definition: test_pyathena.py:15
VP1EtaPhiCutWidget::VP1EtaPhiCutWidget
VP1EtaPhiCutWidget(QWidget *parent=0, IVP1System *sys=0)
Definition: VP1EtaPhiCutWidget.cxx:41
VP1EtaPhiCutWidget::showEtaCut
void showEtaCut(bool b)
Definition: VP1EtaPhiCutWidget.cxx:236
VP1EtaPhiCutWidget::allowedPhi
QList< VP1Interval > allowedPhi() const
Definition: VP1EtaPhiCutWidget.cxx:106
VP1Interval.h
python.L1.Config.LegacyTopoMergerMap.signals
signals
Definition: LegacyTopoMergerMap.py:13
VP1HelperClassBase
Definition: VP1HelperClassBase.h:28
VP1EtaPhiCutWidget::allowedEtaChanged
void allowedEtaChanged(const VP1Interval &)
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
VP1EtaPhiCutWidget::restoreFromState
void restoreFromState(const QByteArray &)
Definition: VP1EtaPhiCutWidget.cxx:301
VP1HelperClassBase.h
VP1EtaPhiCutWidget::setEtaCut
void setEtaCut(const double &)
Definition: VP1EtaPhiCutWidget.cxx:229
VP1EtaPhiCutWidget::saveState
QByteArray saveState() const
Definition: VP1EtaPhiCutWidget.cxx:283
VP1Interval
Definition: VP1Interval.h:23
VP1EtaPhiCutWidget::allowedPhiChanged
void allowedPhiChanged(const QList< VP1Interval > &)
VP1EtaPhiCutWidget::showPhiCut
void showPhiCut(bool b)
Definition: VP1EtaPhiCutWidget.cxx:242