ATLAS Offline Software
Loading...
Searching...
No Matches
CaloClusterCollectionSettingsButton.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#ifndef VP1AODSYSTEMS_CALOCLUSTERCOLLSETTINGSBUTTON_H
6#define VP1AODSYSTEMS_CALOCLUSTERCOLLSETTINGSBUTTON_H
7
10
11// FWD declarations
13//class SoDrawStyle;
14//class SoLightModel;
15
17
18 Q_OBJECT
19
20public:
21
22 CaloClusterCollectionSettingsButton(QWidget * parent = 0, int dim = 25);//dim<=0 => Won't change sizepolicy
24
26 void setDimension(int dim);
27
28
29 // The below are necessary to fulfill the interface, but will just be passed onto the VP1MaterialButton owned by the CaloClusterCollectionSettingsButton form
30 virtual bool setMaterial(SoMaterial*);
31 virtual void copyValuesFromMaterial(SoMaterial*);
32 virtual double lastAppliedTransparency() const ;
33 virtual double lastAppliedShininess() const ;
34 virtual double lastAppliedBrightness() const;
35
36// // GUI for track lines...
37// double trackTubeRadius() const;//0 => don't show tubes for tracks
38// bool hideActualTrackPath() const;
39
40// // GUI for parameters
41// bool showParameters() const;
42// bool colourParametersByType() const;
43 double lengthOf10GeV();
44
45
46 //Scale:
47 //The bool indicates if it is logscale(true) or linear scale(false).
48 //The double is a parameter, p, used to get the length as a function
49 //of energy: Either p*|energy| or p*log(1+|energy|)
50 QPair<bool,double> scale() const;
51
52
53// bool randomJetColours() const;
54// double maxR(); //!< Returns -1 if disabled in GUI, or value in m if enabled.
55
56 // GUI for cuts
59 QList<VP1Interval> cutAllowedPhi() const;//All off: empty list. All on: list with one entry: ]-inf,inf[
60 bool isTransverseEnergy() const;
61
62public Q_SLOTS:
64
65
66// bool cutOnlyVertexAssocTracks() const; //!< Return true if this collection should only should tracks associated to a vertex
67// //Cuts for number of hits per subsystem:
68// QList<unsigned> cutRequiredNHits() const;//Empty list: no requirements. Otherwise a list
69// // with a length of four (pixel,sct,trt,muon)
70
71// //Overall drawstyles, complexities and light models:
72// SoDrawStyle * trackDrawStyle() const;
73// SoLightModel * trackLightModel() const;
74
75// // Parameters
76// SoMaterial* defaultParameterMaterial() const;
77// SoMaterial* parameterMaterial( xAOD::ParameterPosition) const;
78
79 QByteArray saveState() const;
80 void restoreFromState( const QByteArray& );
81
82signals:
83// void lastAppliedChanged(); // emitted when something related to material changes
86 void cutAllowedPhiChanged(const QList<VP1Interval>&);
87
88 void scaleChanged(const QPair<bool,double>& scale);
89
91
92// void randomJetColoursChanged(const bool& ra);
93// void rerandomise();
94// void maxRChanged(const double& maxR);
95
96// void bTaggingEnabledChanged(const bool&);
97// void bTaggingTaggerChanged(const QString &);
98// void bTaggingCutChanged (const double&);
99// void bTaggingRenderingMaterialChanged(const bool&);
100// void bTaggingMaterialChanged();
101// void bTaggingRenderingSkinChanged(bool);
102
103
104public Q_SLOTS:
106 void setMaterialText(const QString&);
107
108protected Q_SLOTS:
109 void updateButton();
110
111protected:
112 // void initEditWindow();//!< Make sure that edit window is constructed
113 void mousePressEvent(QMouseEvent *event);
114 void mouseMoveEvent(QMouseEvent *event);
115 void dropEvent(QDropEvent *event);
116 void dragEnterEvent(QDragEnterEvent *event);
117private:
118
119 class Imp;
121
122private Q_SLOTS:
123// void updateTrackDrawStyle();
124// void updateTrackLightModel(bool);
125// void updateTrackTubeRadius();
126// void updateHideActualTrackPath(bool);
127// void possibleChange_cutRequiredNHits();
128// void possibleChange_cutOnlyVertexAssocTracks();
129// void possibleChange_showParameters();
130// void possibleChange_parameterColours();
131
135
139
140// void possibleChange_randomJetColours();
141// void possibleChange_maxR();
142
143// void possibleChange_bTaggingEnabled(bool);
144// void possibleChange_bTaggingTagger();
145// void possibleChange_bTaggingCut();
146// void possibleChange_bTaggingRenderingMaterial(bool);
147// ////void possibleChange_bTaggingMaterial(); // not needed...
148// void possibleChange_bTaggingRenderingSkin(bool ok);
149
150
151// void enableMaxR(bool);
152// void enableRandomColours(bool);
153//
154// void emitRerandomise();
155// void emitMaxR();
156
157};
158
159#endif
160
161
void cutAllowedPhiChanged(const QList< VP1Interval > &)
void cutAllowedPtChanged(const VP1Interval &)
void cutAllowedEtaChanged(const VP1Interval &)
QByteArray saveState() const
fill out with the state of the object (used for drag and drop etc)
void setCollHandle(IParticleCollHandle_CaloCluster *coll)
void scaleChanged(const QPair< bool, double > &scale)
CaloClusterCollectionSettingsButton(QWidget *parent=0, int dim=25)
VP1CollectionSettingsButtonBase(QWidget *parent=0, int dim=25)