#include <IParticleHandle_CaloCluster.h>
◆ IParticleHandle_CaloCluster()
◆ ~IParticleHandle_CaloCluster()
| IParticleHandle_CaloCluster::~IParticleHandle_CaloCluster |
( |
| ) |
|
|
virtual |
◆ 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 |
|
virtualinherited |
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()
| double IParticleHandle_CaloCluster::charge |
( |
| ) |
const |
|
virtual |
◆ clear3DObjects()
| void IParticleHandle_CaloCluster::clear3DObjects |
( |
| ) |
|
|
virtual |
◆ clicked()
| QStringList IParticleHandle_CaloCluster::clicked |
( |
| ) |
const |
|
virtual |
This gives the complete information about the object, shown in the main Message Box.
Implements AODHandleBase.
Definition at line 405 of file IParticleHandle_CaloCluster.cxx.
406{
408 l <<
"--CaloCluster:";
409
410
411
412
413
414
415 l +=
" - pt: " + QString::number(
m_d->m_cluster->pt() / SYSTEM_OF_UNITS::GeV) +
" [GeV]";
416 l +=
" - et: " + QString::number(
m_d->et() / SYSTEM_OF_UNITS::GeV) +
" [GeV]";
417 l +=
" - eta: " + QString::number(
m_d->eta());
418 l +=
" - phi: " + QString::number(
m_d->phi());
419 l +=
" - m: " + QString::number(
m_d->m_cluster->m() / SYSTEM_OF_UNITS::GeV) +
" [GeV] (invariant mass of the particle)";
420 l +=
" - e: " + QString::number(
m_d->m_cluster->e() / SYSTEM_OF_UNITS::GeV) +
" [GeV] (total energy of the particle)";
421 l +=
" - rapidity: " + QString::number(
m_d->m_cluster->rapidity());
422 l +=
" - type: " + QString::number(
m_d->m_cluster->type());
423 l +=
" - ClusterSize: " + QString::number(
m_d->m_cluster->clusterSize());
424 l +=
" - inBarrel: " + QString::number(
m_d->m_cluster->inBarrel());
425 l +=
" - inEndcap: " + QString::number(
m_d->m_cluster->inEndcap());
426
428}
◆ 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 |
( |
| ) |
|
|
virtualinherited |
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()
| void IParticleHandle_CaloCluster::dumpToJSON |
( |
std::ofstream & | str | ) |
const |
|
virtual |
◆ e()
| double IParticleHandle_CaloCluster::e |
( |
| ) |
const |
◆ energyForCuts()
| double IParticleHandle_CaloCluster::energyForCuts |
( |
| ) |
const |
◆ ensureInitSubSysHitInfo()
| void IParticleHandle_CaloCluster::ensureInitSubSysHitInfo |
( |
| ) |
const |
|
private |
◆ et()
| double IParticleHandle_CaloCluster::et |
( |
| ) |
const |
◆ eta()
| double IParticleHandle_CaloCluster::eta |
( |
| ) |
const |
◆ fillObjectBrowser()
| void IParticleHandle_CaloCluster::fillObjectBrowser |
( |
QList< QTreeWidgetItem * > & | listOfItems | ) |
|
|
virtual |
This gives the list of object's properties, shown in the 'Information' field in the Browser, once the user clicked on one particular item (e.g.
'Jet0')
Reimplemented from AODHandleBase.
Definition at line 508 of file IParticleHandle_CaloCluster.cxx.
509{
511
513
514
515 TSOSitem->setText(0, QString("CaloCluster Parameters " ) );
516
518 dParameters += " [more info in the main Message Box]";
519
520 TSOSitem->setText(1, dParameters );
521
522}
QTreeWidgetItem * browserTreeItem() const
Return the QTreeWidgetItem;.
virtual void fillObjectBrowser(QList< QTreeWidgetItem * > &list)
Create and fill the object browser QTreeWidgetItem.
QString shortInfo() const
This returns the information shown about the object in the object browser.
◆ genericBox()
◆ has3DObjects()
| bool IParticleHandle_CaloCluster::has3DObjects |
( |
| ) |
|
|
virtual |
◆ hasCharge()
| bool IParticleHandleBase::hasCharge |
( |
| ) |
const |
|
inlineinherited |
◆ hasMass()
| bool IParticleHandleBase::hasMass |
( |
| ) |
const |
|
inlineinherited |
Definition at line 60 of file IParticleHandleBase.h.
virtual double mass() const
Returns unknown() in case of trouble.
◆ iParticle()
◆ isConsiderTransverseEnergies()
| bool IParticleHandle_CaloCluster::isConsiderTransverseEnergies |
( |
| ) |
const |
Definition at line 117 of file IParticleHandle_CaloCluster.cxx.
118{
119 const IParticleCollHandle_CaloCluster* collHandleJet =
dynamic_cast<const IParticleCollHandle_CaloCluster*
>(
collHandle());
120 if (not collHandleJet) return false;
121 bool Et = collHandleJet->isConsiderTransverseEnergy();
122 VP1Msg::messageDebug(
"IParticleHandle_CaloCluster::isConsiderTransverseEnergies() - " + QString::number(Et));
123 return Et;
124}
◆ mass()
| double IParticleHandleBase::mass |
( |
| ) |
const |
|
virtualinherited |
◆ momentum()
◆ nodes()
| SoNode * IParticleHandle_CaloCluster::nodes |
( |
| ) |
|
|
virtual |
Returns the 3Dobjects.
Implements AODHandleBase.
Definition at line 170 of file IParticleHandle_CaloCluster.cxx.
170 {
171
173
177 }
180 m_d->sep =
new SoSeparator();
182 }
183
184 const IParticleCollHandle_CaloCluster* coll_handle =
dynamic_cast<const IParticleCollHandle_CaloCluster*
>(
collHandle());
185 if (not coll_handle)
return m_d->sep;
187
188
189
190
191
192
193 m_d->createShapeFromParameters(coll_handle);
194
195
197}
◆ numberOfInstances()
| int AODHandleBase::numberOfInstances |
( |
| ) |
|
|
staticinherited |
◆ phi()
| double IParticleHandle_CaloCluster::phi |
( |
| ) |
const |
◆ 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.
◆ rerandomiseMaterial()
| void IParticleHandle_CaloCluster::rerandomiseMaterial |
( |
| ) |
|
◆ 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()
| QString IParticleHandle_CaloCluster::shortInfo |
( |
| ) |
const |
|
virtual |
This returns the information shown about the object in the object browser.
This gives the very short summary for the object's properties, shown in the 'Information' field in the Browser, beside the item number (e.g.
'Jet0')
Reimplemented from AODHandleBase.
Definition at line 478 of file IParticleHandle_CaloCluster.cxx.
479{
480 QString dParameters("(");
481
482
483
484 dParameters +="pt: ";
485 dParameters += QString::number(
m_d->m_cluster->pt() / SYSTEM_OF_UNITS::GeV);
486
487 dParameters +=", et: ";
488 dParameters += QString::number(
m_d->m_cluster->et() / SYSTEM_OF_UNITS::GeV);
489
490 dParameters +=", eta: ";
491 dParameters += QString::number(
m_d->m_cluster->eta());
492
493 dParameters +=", phi: ";
494 dParameters += QString::number(
m_d->m_cluster->phi());
495
496 dParameters+="";
497
498 dParameters+=")" ;
499
500 return dParameters;
501}
◆ type()
| virtual QString IParticleHandle_CaloCluster::type |
( |
| ) |
const |
|
inlinevirtual |
◆ 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 IParticleHandle_CaloCluster::updateMaterial |
( |
| ) |
|
Definition at line 561 of file IParticleHandle_CaloCluster.cxx.
562{
564
565
567 return;
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590}
◆ updateObjectBrowser()
| void AODHandleBase::updateObjectBrowser |
( |
| ) |
|
|
inlineinherited |
◆ updateShape()
◆ 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* IParticleHandle_CaloCluster::m_d |
|
private |
◆ m_visible
| bool AODHandleBase::m_visible |
|
privateinherited |
The documentation for this class was generated from the following files: