ATLAS Offline Software
Loading...
Searching...
No Matches
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
26class VP1EtaPhiCutWidget : public QWidget, public VP1HelperClassBase {
27
28 Q_OBJECT
29
30public:
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
48signals:
50 void allowedPhiChanged(const QList<VP1Interval>&);
51
52private:
53
54 class Imp;
56private Q_SLOTS:
61};
62
63#endif
VP1EtaPhiCutWidget(QWidget *parent=0, IVP1System *sys=0)
QByteArray saveState() const
QList< VP1Interval > allowedPhi() const
void restoreFromState(const QByteArray &)
VP1Interval allowedEta() const
void setEtaCut(const double &)
void allowedEtaChanged(const VP1Interval &)
void allowedPhiChanged(const QList< VP1Interval > &)
VP1HelperClassBase(IVP1System *sys=0, QString helpername="")