ATLAS Offline Software
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 
20 public:
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
57  VP1Interval cutAllowedPt() const;
58  VP1Interval cutAllowedEta() const;
59  QList<VP1Interval> cutAllowedPhi() const;//All off: empty list. All on: list with one entry: ]-inf,inf[
60  bool isTransverseEnergy() const;
61 
62 public Q_SLOTS:
63  void setTransverseEnergy();
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 
82 signals:
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 
104 public Q_SLOTS:
105  void showEditMaterialDialog();
106  void setMaterialText(const QString&);
107 
108 protected Q_SLOTS:
109  void updateButton();
110 
111 protected:
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);
117 private:
118 
119  class Imp;
120  Imp * m_d;
121 
122 private 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 
136  void possibleChange_scale();
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 
CaloClusterCollectionSettingsButton::cutAllowedEtaChanged
void cutAllowedEtaChanged(const VP1Interval &)
CaloClusterCollectionSettingsButton::saveState
QByteArray saveState() const
fill out with the state of the object (used for drag and drop etc)
Definition: CaloClusterCollectionSettingsButton.cxx:450
yodamerge_tmp.dim
dim
Definition: yodamerge_tmp.py:239
CaloClusterCollectionSettingsButton::CaloClusterCollectionSettingsButton
CaloClusterCollectionSettingsButton(QWidget *parent=0, int dim=25)
Definition: CaloClusterCollectionSettingsButton.cxx:219
CaloClusterCollectionSettingsButton::lastAppliedBrightness
virtual double lastAppliedBrightness() const
Definition: CaloClusterCollectionSettingsButton.cxx:366
CaloClusterCollectionSettingsButton::~CaloClusterCollectionSettingsButton
virtual ~CaloClusterCollectionSettingsButton()
Definition: CaloClusterCollectionSettingsButton.cxx:308
AODSystemController.h
CaloClusterCollectionSettingsButton::possibleChange_cutAllowedPt
void possibleChange_cutAllowedPt()
Definition: CaloClusterCollectionSettingsButton.cxx:653
CaloClusterCollectionSettingsButton::cutAllowedPt
VP1Interval cutAllowedPt() const
Definition: CaloClusterCollectionSettingsButton.cxx:589
VP1CollectionSettingsButtonBase.h
CaloClusterCollectionSettingsButton::setMaterial
virtual bool setMaterial(SoMaterial *)
Definition: CaloClusterCollectionSettingsButton.cxx:343
CaloClusterCollectionSettingsButton::Imp
Definition: CaloClusterCollectionSettingsButton.cxx:49
CaloClusterCollectionSettingsButton::possibleChange_cutAllowedPhi
void possibleChange_cutAllowedPhi()
Definition: CaloClusterCollectionSettingsButton.cxx:675
CaloClusterCollectionSettingsButton::restoreFromState
void restoreFromState(const QByteArray &)
Definition: CaloClusterCollectionSettingsButton.cxx:500
CaloClusterCollectionSettingsButton::setMaterialText
void setMaterialText(const QString &)
Definition: CaloClusterCollectionSettingsButton.cxx:187
CaloClusterCollectionSettingsButton::scaleChanged
void scaleChanged(const QPair< bool, double > &scale)
CaloClusterCollectionSettingsButton::updateButton
void updateButton()
Definition: CaloClusterCollectionSettingsButton.cxx:316
CaloClusterCollectionSettingsButton
Definition: CaloClusterCollectionSettingsButton.h:16
CaloClusterCollectionSettingsButton::cutAllowedPhiChanged
void cutAllowedPhiChanged(const QList< VP1Interval > &)
CaloClusterCollectionSettingsButton::setTransverseEnergy
void setTransverseEnergy()
Definition: CaloClusterCollectionSettingsButton.cxx:572
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
IParticleCollHandle_CaloCluster
Definition: IParticleCollHandle_CaloCluster.h:35
CaloClusterCollectionSettingsButton::cutAllowedPhi
QList< VP1Interval > cutAllowedPhi() const
Definition: CaloClusterCollectionSettingsButton.cxx:643
CaloClusterCollectionSettingsButton::cutAllowedPtChanged
void cutAllowedPtChanged(const VP1Interval &)
CaloClusterCollectionSettingsButton::mousePressEvent
void mousePressEvent(QMouseEvent *event)
Definition: CaloClusterCollectionSettingsButton.cxx:375
VP1CollectionSettingsButtonBase
Definition: VP1CollectionSettingsButtonBase.h:17
CaloClusterCollectionSettingsButton::setCollHandle
void setCollHandle(IParticleCollHandle_CaloCluster *coll)
Definition: CaloClusterCollectionSettingsButton.cxx:701
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CaloClusterCollectionSettingsButton::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *event)
Definition: CaloClusterCollectionSettingsButton.cxx:383
CaloClusterCollectionSettingsButton::possibleChange_useTransverseEnergies
void possibleChange_useTransverseEnergies()
Definition: CaloClusterCollectionSettingsButton.cxx:716
python.L1.Config.LegacyTopoMergerMap.signals
signals
Definition: LegacyTopoMergerMap.py:13
CaloClusterCollectionSettingsButton::m_d
Imp * m_d
Definition: CaloClusterCollectionSettingsButton.h:119
CaloClusterCollectionSettingsButton::lengthOf10GeV
double lengthOf10GeV()
Definition: CaloClusterCollectionSettingsButton.cxx:197
CaloClusterCollectionSettingsButton::possibleChange_cutAllowedEta
void possibleChange_cutAllowedEta()
Definition: CaloClusterCollectionSettingsButton.cxx:666
CaloClusterCollectionSettingsButton::energyTypeChanged
void energyTypeChanged()
CaloClusterCollectionSettingsButton::dropEvent
void dropEvent(QDropEvent *event)
Definition: CaloClusterCollectionSettingsButton.cxx:442
CaloClusterCollectionSettingsButton::possibleChange_scale
void possibleChange_scale()
Definition: CaloClusterCollectionSettingsButton.cxx:684
CaloClusterCollectionSettingsButton::showEditMaterialDialog
void showEditMaterialDialog()
Definition: CaloClusterCollectionSettingsButton.cxx:332
CaloClusterCollectionSettingsButton::isTransverseEnergy
bool isTransverseEnergy() const
Definition: CaloClusterCollectionSettingsButton.cxx:566
CaloClusterCollectionSettingsButton::scale
QPair< bool, double > scale() const
Definition: CaloClusterCollectionSettingsButton.cxx:725
VP1Interval
Definition: VP1Interval.h:23
CaloClusterCollectionSettingsButton::possibleChange_showVolumeOutLines
void possibleChange_showVolumeOutLines()
Definition: CaloClusterCollectionSettingsButton.cxx:707
CaloClusterCollectionSettingsButton::lastAppliedTransparency
virtual double lastAppliedTransparency() const
Definition: CaloClusterCollectionSettingsButton.cxx:356
CaloClusterCollectionSettingsButton::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *event)
Definition: CaloClusterCollectionSettingsButton.cxx:390
CaloClusterCollectionSettingsButton::lastAppliedShininess
virtual double lastAppliedShininess() const
Definition: CaloClusterCollectionSettingsButton.cxx:361
CaloClusterCollectionSettingsButton::copyValuesFromMaterial
virtual void copyValuesFromMaterial(SoMaterial *)
Definition: CaloClusterCollectionSettingsButton.cxx:351
CaloClusterCollectionSettingsButton::setDimension
void setDimension(int dim)
Definition: CaloClusterCollectionSettingsButton.cxx:324
CaloClusterCollectionSettingsButton::cutAllowedEta
VP1Interval cutAllowedEta() const
Definition: CaloClusterCollectionSettingsButton.cxx:635