#include <IParticleHandleBase.h>
Definition at line 42 of file IParticleHandleBase.h.
◆ IParticleHandleBase() [1/2]
◆ ~IParticleHandleBase()
| IParticleHandleBase::~IParticleHandleBase |
( |
| ) |
|
|
virtual |
◆ IParticleHandleBase() [2/2]
◆ attach3DObjects()
| void AODHandleBase::attach3DObjects |
( |
| ) |
|
|
virtualinherited |
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()
SoMaterial * m_currentmaterial
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.
AODCollHandleBase * m_collhandle
static void messageVerbose(const QString &)
static void message(const QString &, IVP1System *sys=0)
◆ baseInfo()
| QStringList IParticleHandleBase::baseInfo |
( |
| ) |
const |
|
virtual |
Reimplemented from AODHandleBase.
Definition at line 85 of file IParticleHandleBase.cxx.
86{
89 if (
mom.mag2()==0.0) {
90 l <<
"Momentum : 0 (undefined)";
91 } else {
96
99 }
100
101
102
103
104
105
106
107
108
109
110
111
112
113
115}
virtual Amg::Vector3D momentum() const
static double phiFromXY(const double &x, const double &y)
static QString str(const QString &s)
Eigen::Matrix< double, 3, 1 > Vector3D
l
Printing final latex table to .tex output file.
◆ browserTreeItem()
| QTreeWidgetItem * AODHandleBase::browserTreeItem |
( |
| ) |
const |
|
inherited |
Return the QTreeWidgetItem;.
Definition at line 311 of file AODHandleBase.cxx.
311 {
312 return m_d->m_objBrowseTree;
313}
◆ charge()
| virtual double IParticleHandleBase::charge |
( |
| ) |
const |
|
pure virtual |
◆ clear3DObjects()
| virtual void AODHandleBase::clear3DObjects |
( |
| ) |
|
|
pure virtualinherited |
◆ clicked()
| virtual QStringList AODHandleBase::clicked |
( |
| ) |
const |
|
pure virtualinherited |
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 |
|
inlineinherited |
Returns the current material of the handle.
Definition at line 76 of file AODHandleBase.h.
◆ currentMaterialChanged()
| virtual void AODHandleBase::currentMaterialChanged |
( |
| ) |
|
|
inlineprotectedvirtualinherited |
◆ detach3DObjects()
| void AODHandleBase::detach3DObjects |
( |
| ) |
|
|
virtualinherited |
Remove from the scene graph.
Definition at line 191 of file AODHandleBase.cxx.
192{
194
196 return;
199 }
200
202
203
204
205}
◆ determineMaterial()
| SoMaterial * IParticleHandleBase::determineMaterial |
( |
| ) |
|
|
virtual |
Should be implemented by children, in order to change the material depending on the interface etc.
This will (by default) return the collection material.
Implements AODHandleBase.
Definition at line 71 of file IParticleHandleBase.cxx.
71 {
72
73
75}
const AODCollHandleBase * collHandle() const
SoMaterial * material() const
◆ dumpToJSON()
| virtual void AODHandleBase::dumpToJSON |
( |
std::ofstream & | | ) |
const |
|
inlinevirtualinherited |
◆ fillObjectBrowser()
| void AODHandleBase::fillObjectBrowser |
( |
QList< QTreeWidgetItem * > & | list | ) |
|
|
virtualinherited |
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
static void messageDebug(const QString &)
◆ has3DObjects()
| virtual bool AODHandleBase::has3DObjects |
( |
| ) |
|
|
inlinevirtualinherited |
◆ hasCharge()
| bool IParticleHandleBase::hasCharge |
( |
| ) |
const |
|
inline |
◆ hasMass()
| bool IParticleHandleBase::hasMass |
( |
| ) |
const |
|
inline |
Definition at line 60 of file IParticleHandleBase.h.
virtual double mass() const
Returns unknown() in case of trouble.
◆ iParticle()
◆ mass()
| double IParticleHandleBase::mass |
( |
| ) |
const |
|
virtual |
◆ momentum()
◆ nodes()
| virtual SoNode * AODHandleBase::nodes |
( |
| ) |
|
|
pure virtualinherited |
◆ numberOfInstances()
| int AODHandleBase::numberOfInstances |
( |
| ) |
|
|
staticinherited |
◆ operator=()
◆ rebuild3DObjects()
| void AODHandleBase::rebuild3DObjects |
( |
| ) |
|
|
virtualinherited |
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 | ) |
|
|
inherited |
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 |
|
inlinevirtualinherited |
◆ type()
| virtual QString AODHandleBase::type |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ unknown()
| double AODHandleBase::unknown |
( |
| ) |
|
|
inlinestaticinherited |
◆ update3DObjects()
| void AODHandleBase::update3DObjects |
( |
| ) |
|
|
virtualinherited |
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 |
( |
| ) |
|
|
inherited |
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 |
( |
| ) |
|
|
inlineinherited |
◆ visible()
| bool AODHandleBase::visible |
( |
| ) |
const |
|
inlineinherited |
◆ visibleStateChanged()
| void AODHandleBase::visibleStateChanged |
( |
| ) |
|
|
protectedvirtualinherited |
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}
◆ m_collhandle
◆ m_currentmaterial
| SoMaterial* AODHandleBase::m_currentmaterial |
|
privateinherited |
◆ m_d
| Imp* IParticleHandleBase::m_d |
|
private |
◆ m_visible
| bool AODHandleBase::m_visible |
|
privateinherited |
The documentation for this class was generated from the following files: