#include <AODHandleBase.h>
Definition at line 43 of file AODHandleBase.h.
◆ AODHandleBase() [1/2]
Definition at line 73 of file AODHandleBase.cxx.
75{
77}
static std::atomic< int > nobjhandles
SoMaterial * m_currentmaterial
AODCollHandleBase * m_collhandle
◆ ~AODHandleBase()
| AODHandleBase::~AODHandleBase |
( |
| ) |
|
|
virtual |
◆ AODHandleBase() [2/2]
override if need to take action in this case.
◆ attach3DObjects()
| void AODHandleBase::attach3DObjects |
( |
| ) |
|
|
virtual |
Connect to the scene graph.
Definition at line 157 of file AODHandleBase.cxx.
158{
160
165 }
168
170
171
172
174
175
176
178
179 } else {
181 VP1Msg::message(
"AODHandleBase::attach3DObjects() - No 3D objects to attach!");
182 }
184 }
185
186
187
188}
virtual void currentMaterialChanged()
virtual SoNode * nodes()=0
Returns the 3Dobjects.
virtual bool has3DObjects()
Returns true if the 3D objects have been created.
virtual SoMaterial * determineMaterial()=0
Should be implemented by children, in order to change the material depending on the interface etc.
static void messageVerbose(const QString &)
static void message(const QString &, IVP1System *sys=0)
◆ baseInfo()
| QStringList AODHandleBase::baseInfo |
( |
| ) |
const |
|
virtual |
Reimplemented in IParticleHandleBase, and VertexHandle.
Definition at line 247 of file AODHandleBase.cxx.
248{
250
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
281 l <<
"baseInfo : (undefined)";
282
284}
static void messageDebug(const QString &)
l
Printing final latex table to .tex output file.
◆ browserTreeItem()
| QTreeWidgetItem * AODHandleBase::browserTreeItem |
( |
| ) |
const |
Return the QTreeWidgetItem;.
Definition at line 311 of file AODHandleBase.cxx.
311 {
312 return m_d->m_objBrowseTree;
313}
◆ clear3DObjects()
| virtual void AODHandleBase::clear3DObjects |
( |
| ) |
|
|
pure virtual |
◆ clicked()
| virtual QStringList AODHandleBase::clicked |
( |
| ) |
const |
|
pure virtual |
Called when user selects the node (stringlist is displayed in messagebox).
Reimplementations should add info momInfo() to get momentum, eta, phi, pid,charge, mass printed.
Implemented in IParticleHandle_CaloCluster, IParticleHandle_Electron, IParticleHandle_Jet, IParticleHandle_Muon, IParticleHandle_TrackParticle, MissingEtHandle, and VertexHandle.
◆ collHandle()
◆ common()
◆ currentMaterial()
| SoMaterial * AODHandleBase::currentMaterial |
( |
| ) |
const |
|
inline |
Returns the current material of the handle.
Definition at line 76 of file AODHandleBase.h.
◆ currentMaterialChanged()
| virtual void AODHandleBase::currentMaterialChanged |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ detach3DObjects()
| void AODHandleBase::detach3DObjects |
( |
| ) |
|
|
virtual |
Remove from the scene graph.
Definition at line 191 of file AODHandleBase.cxx.
192{
194
196 return;
199 }
200
202
203
204
205}
◆ determineMaterial()
| virtual SoMaterial * AODHandleBase::determineMaterial |
( |
| ) |
|
|
pure virtual |
◆ dumpToJSON()
| virtual void AODHandleBase::dumpToJSON |
( |
std::ofstream & | | ) |
const |
|
inlinevirtual |
◆ fillObjectBrowser()
| void AODHandleBase::fillObjectBrowser |
( |
QList< QTreeWidgetItem * > & | list | ) |
|
|
virtual |
Create and fill the object browser QTreeWidgetItem.
Reimplemented in IParticleHandle_CaloCluster, IParticleHandle_Electron, IParticleHandle_Jet, IParticleHandle_Muon, IParticleHandle_TrackParticle, and MissingEtHandle.
Definition at line 288 of file AODHandleBase.cxx.
288 {
289
291
292 if (
m_d->m_objBrowseTree){
293 VP1Msg::message(
"ERROR: AODHandleBase::fillObjectBrowser - already have m_objBrowseTree. Aborting.");
294 return;
295 }
296
297 m_d->m_objBrowseTree =
new QTreeWidgetItem();
298
300
301 m_d->m_objBrowseTree->setText(0,
type()+QString(QString::number(listOfItems.size())) );
302 m_d->m_objBrowseTree->setText(1, l );
303
305 m_d->m_objBrowseTree->setFlags(Qt::ItemFlags());
306 }
308}
virtual QString type() const
return very short word with type (maybe link with collection type?)
QTreeWidgetItem * browserTreeItem() const
Return the QTreeWidgetItem;.
virtual QString shortInfo() const
returns mom and hit information about track
◆ has3DObjects()
| virtual bool AODHandleBase::has3DObjects |
( |
| ) |
|
|
inlinevirtual |
◆ nodes()
| virtual SoNode * AODHandleBase::nodes |
( |
| ) |
|
|
pure virtual |
◆ numberOfInstances()
| int AODHandleBase::numberOfInstances |
( |
| ) |
|
|
static |
◆ operator=()
◆ rebuild3DObjects()
| void AODHandleBase::rebuild3DObjects |
( |
| ) |
|
|
virtual |
Definition at line 137 of file AODHandleBase.cxx.
138{
141
142
145 }
146
149
150
153 }
154}
virtual void clear3DObjects()=0
Delete objects.
virtual void detach3DObjects()
Remove from the scene graph.
virtual void attach3DObjects()
Connect to the scene graph.
◆ setVisible()
| void AODHandleBase::setVisible |
( |
bool | vis | ) |
|
use by the collection handle.
Definition at line 99 of file AODHandleBase.cxx.
100{
101 QString
tmp = (vis==
true)?
"True":
"False";
103 VP1Msg::messageDebug(QString(
"AODHandleBase calling setVisible with vis=")+tmp+QString(
", and m_visible=")+tmp2 );
105 return;
106
108 if (vis) {
110
113 else
115 } else {
118 }
119
121}
virtual void rebuild3DObjects()
virtual void visibleStateChanged()
Dummy implementation does nothing.
◆ shortInfo()
| virtual QString AODHandleBase::shortInfo |
( |
| ) |
const |
|
inlinevirtual |
◆ type()
| virtual QString AODHandleBase::type |
( |
| ) |
const |
|
inlinevirtual |
◆ unknown()
| double AODHandleBase::unknown |
( |
| ) |
|
|
inlinestatic |
◆ update3DObjects()
| void AODHandleBase::update3DObjects |
( |
| ) |
|
|
virtual |
Called after some configuration changes, or when the object is first created. Must be overloaded by children.
Definition at line 125 of file AODHandleBase.cxx.
126{
129 } else {
130
132 }
133}
◆ updateMaterial()
| void AODHandleBase::updateMaterial |
( |
| ) |
|
Called after some configuration related to material changes.
Definition at line 208 of file AODHandleBase.cxx.
209{
211
212
213
214
215
217 return;
219
221 newmat->ref();
228 } else {
229 newmat->unref();
230 }
231 } else {
232
236 }
237}
◆ updateObjectBrowser()
| void AODHandleBase::updateObjectBrowser |
( |
| ) |
|
|
inline |
◆ visible()
| bool AODHandleBase::visible |
( |
| ) |
const |
|
inline |
◆ visibleStateChanged()
| void AODHandleBase::visibleStateChanged |
( |
| ) |
|
|
protectedvirtual |
Dummy implementation does nothing.
override if need to take action in this case.
Definition at line 316 of file AODHandleBase.cxx.
317{
320 return;
321 }
322
325 } else {
327 }
329 itemFont.setStrikeOut(!
visible());
332}
◆ AssocObjAttachmentHandle
◆ m_collhandle
◆ m_currentmaterial
| SoMaterial* AODHandleBase::m_currentmaterial |
|
private |
◆ m_d
◆ m_visible
| bool AODHandleBase::m_visible |
|
private |
The documentation for this class was generated from the following files: