ATLAS Offline Software
Loading...
Searching...
No Matches
JetCollectionSettingsButton.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef VP1AODSYSTEMS_JETCOLLSETTINGSBUTTON_H
6#define VP1AODSYSTEMS_JETCOLLSETTINGSBUTTON_H
7
10
11//class SoDrawStyle;
12//class SoLightModel;
13
15
16 Q_OBJECT
17
18public:
19
20 JetCollectionSettingsButton(QWidget * parent = 0, int dim = 25, const QString& name = "");//dim<=0 => Won't change sizepolicy
22
23 void setDimension(int dim);
24
26
27
28 // The below are necessary to fulfill the interface, but will just be passed onto the VP1MaterialButton owned by the JetCollectionSettingsButton form
29 virtual bool setMaterial(SoMaterial*);
30 virtual void copyValuesFromMaterial(SoMaterial*);
31 virtual double lastAppliedTransparency() const ;
32 virtual double lastAppliedShininess() const ;
33 virtual double lastAppliedBrightness() const;
34
35 // // GUI for track lines...
36 // double trackTubeRadius() const;//0 => don't show tubes for tracks
37 // bool hideActualTrackPath() const;
38
39 // // GUI for parameters
40 // bool showParameters() const;
41 // bool colourParametersByType() const;
42 double lengthOf100GeV();
43 bool randomJetColours() const;
44 double maxR();
45
46 // GUI for cuts
49 QList<VP1Interval> cutAllowedPhi() const;//All off: empty list. All on: list with one entry: ]-inf,inf[
50
51 // b-tagging
52 bool bTaggingEnabled() const ;
53 QString bTaggingTagger() const;
54 QString bTaggingSkin() const; //
55 double bTaggingCut() const;
56 bool bTaggingRenderingSkin() const;
57 bool bTaggingRenderingMaterial() const;
58 SoMaterial* bTaggingMaterial() const;
59 bool is_bTaggingSkinEnabled() const;
60 bool is_bTaggingMaterialEnabled() const;
61
62
63
64 // bool cutOnlyVertexAssocTracks() const; //!< Return true if this collection should only should tracks associated to a vertex
65 // //Cuts for number of hits per subsystem:
66 // QList<unsigned> cutRequiredNHits() const;//Empty list: no requirements. Otherwise a list
67 // // with a length of four (pixel,sct,trt,muon)
68
69 // //Overall drawstyles, complexities and light models:
70 // SoDrawStyle * trackDrawStyle() const;
71 // SoLightModel * trackLightModel() const;
72
73 // // Parameters
74 // SoMaterial* defaultParameterMaterial() const;
75 // SoMaterial* parameterMaterial( xAOD::ParameterPosition) const;
76
77 QByteArray saveState() const;
78 void restoreFromState( const QByteArray& );
79
80 signals:
81 // void lastAppliedChanged(); // emitted when something related to material changes
84 void cutAllowedPhiChanged(const QList<VP1Interval>&);
85 void scaleChanged(const double& scale);
86 void randomJetColoursChanged(const bool& ra);
88 void maxRChanged(const double& maxR);
89 void bTaggingEnabledChanged(const bool&);
90 void bTaggingTaggerChanged(const QString &);
91 void bTaggingCutChanged (const double&);
95
96
97 public Q_SLOTS:
99 void setMaterialText(const QString&);
100
101
102 protected Q_SLOTS:
103 void updateButton();
104
105protected:
106 // void initEditWindow();//!< Make sure that edit window is constructed
107 void mousePressEvent(QMouseEvent *event);
108 void mouseMoveEvent(QMouseEvent *event);
109 void dropEvent(QDropEvent *event);
110 void dragEnterEvent(QDragEnterEvent *event);
111private:
112
113 class Imp;
115
116 private Q_SLOTS:
117 // void updateTrackDrawStyle();
118 // void updateTrackLightModel(bool);
119 // void updateTrackTubeRadius();
120 // void updateHideActualTrackPath(bool);
121 // void possibleChange_cutRequiredNHits();
122 // void possibleChange_cutOnlyVertexAssocTracks();
123 // void possibleChange_showParameters();
124 // void possibleChange_parameterColours();
125
131 void possibleChange_maxR();
136 // void possibleChange_bTaggingMaterial(); // not needed...
138
139
140 void enableMaxR(bool);
141 void enableRandomColours(bool);
142
143 void emitRerandomise();
144
145 void checkSelection();
146
147
148};
149
150#endif
151
152
void cutAllowedPtChanged(const VP1Interval &)
void scaleChanged(const double &scale)
QByteArray saveState() const
fill out with the state of the object (used for drag and drop etc)
void bTaggingTaggerChanged(const QString &)
void cutAllowedEtaChanged(const VP1Interval &)
void bTaggingEnabledChanged(const bool &)
void randomJetColoursChanged(const bool &ra)
void maxRChanged(const double &maxR)
double maxR()
Returns -1 if disabled in GUI, or value in m if enabled.
void dragEnterEvent(QDragEnterEvent *event)
void bTaggingRenderingMaterialChanged(const bool &)
void cutAllowedPhiChanged(const QList< VP1Interval > &)
void bTaggingRenderingSkinChanged(bool)
QList< VP1Interval > cutAllowedPhi() const
VP1MaterialButton * getMaterialButton() const
JetCollectionSettingsButton(QWidget *parent=0, int dim=25, const QString &name="")
void bTaggingCutChanged(const double &)
virtual void copyValuesFromMaterial(SoMaterial *)
VP1CollectionSettingsButtonBase(QWidget *parent=0, int dim=25)