ATLAS Offline Software
Loading...
Searching...
No Matches
IParticleHandle_CaloCluster Class Reference

#include <IParticleHandle_CaloCluster.h>

Inheritance diagram for IParticleHandle_CaloCluster:
Collaboration diagram for IParticleHandle_CaloCluster:

Classes

class  Imp

Public Member Functions

 IParticleHandle_CaloCluster (IParticleCollHandleBase *, const xAOD::CaloCluster *)
virtual ~IParticleHandle_CaloCluster ()
virtual bool has3DObjects ()
 Returns true if the 3D objects have been created.
virtual void clear3DObjects ()
 Delete objects.
virtual SoNode * nodes ()
 Returns the 3Dobjects.
void fillObjectBrowser (QList< QTreeWidgetItem * > &listOfItems)
 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.
void updateShape (IParticleCollHandle_CaloCluster *coll)
void rerandomiseMaterial ()
virtual QStringList clicked () const
 This gives the complete information about the object, shown in the main Message Box.
const xAOD::IParticleiParticle () const
SoGenericBoxgenericBox ()
virtual double charge () const
 Returns unknown() in case of trouble.
double phi () const
double eta () const
double e () const
double et () const
double energyForCuts () const
bool isConsiderTransverseEnergies () const
virtual QString type () const
 return very short word with type (maybe link with collection type?)
QString shortInfo () const
 This returns the information shown about the object in the object browser.
void updateMaterial ()
virtual void dumpToJSON (std::ofstream &) const
SoMaterial * determineMaterial ()
 Should be implemented by children, in order to change the material depending on the interface etc.
virtual QStringList baseInfo () const
virtual Amg::Vector3D momentum () const
virtual double mass () const
 Returns unknown() in case of trouble.
bool hasCharge () const
bool hasMass () const
const AODSysCommonDatacommon () const
void setVisible (bool)
 use by the collection handle.
bool visible () const
const AODCollHandleBasecollHandle () const
virtual void update3DObjects ()
 Called after some configuration changes, or when the object is first created. Must be overloaded by children.
virtual void rebuild3DObjects ()
virtual void attach3DObjects ()
 Connect to the scene graph.
virtual void detach3DObjects ()
 Remove from the scene graph.
SoMaterial * currentMaterial () const
 Returns the current material of the handle.
void updateObjectBrowser ()
 Update object browser QTreeWidgetItem.
QTreeWidgetItem * browserTreeItem () const
 Return the QTreeWidgetItem;.

Static Public Member Functions

static int numberOfInstances ()
static double unknown ()

Protected Member Functions

virtual void visibleStateChanged ()
 Dummy implementation does nothing.
virtual void currentMaterialChanged ()

Private Member Functions

void ensureInitSubSysHitInfo () const

Private Attributes

Impm_d
bool m_visible
AODCollHandleBasem_collhandle
SoMaterial * m_currentmaterial

Detailed Description

Definition at line 42 of file IParticleHandle_CaloCluster.h.

Constructor & Destructor Documentation

◆ IParticleHandle_CaloCluster()

IParticleHandle_CaloCluster::IParticleHandle_CaloCluster ( IParticleCollHandleBase * ch,
const xAOD::CaloCluster * cluster )

Definition at line 80 of file IParticleHandle_CaloCluster.cxx.

81: IParticleHandleBase(ch), m_d(new Imp)
82{
83 // VP1Msg::messageVerbose("IParticleHandle_CaloCluster::IParticleHandle_CaloCluster() - constructor");
84
85 // set the Imp members
86 m_d->theclass = this;
87 m_d->m_cluster = cluster;
88 m_d->sep = 0;
89 m_d->m_genericBox = 0;
90
91 //
93}
IParticleHandleBase(IParticleCollHandleBase *)
static void initClass()

◆ ~IParticleHandle_CaloCluster()

IParticleHandle_CaloCluster::~IParticleHandle_CaloCluster ( )
virtual

Definition at line 99 of file IParticleHandle_CaloCluster.cxx.

100{
101 // VP1Msg::messageVerbose("IParticleHandle_CaloCluster::~IParticleHandle_CaloCluster() - destructor");
102 if (m_d->m_genericBox) m_d->m_genericBox->unref();
103 if (m_d->sep) m_d->sep->unref();
104 delete m_d;
105}

Member Function Documentation

◆ attach3DObjects()

void AODHandleBase::attach3DObjects ( )
virtualinherited

Connect to the scene graph.

Definition at line 157 of file AODHandleBase.cxx.

158{
159 VP1Msg::messageVerbose("AODHandleBase::attach3DObjects");
160
161 if (!m_currentmaterial) {
163 m_currentmaterial->ref();
165 }
166 if (has3DObjects() && m_collhandle->sepHelper()) {
167 VP1Msg::messageVerbose("Adding nodes to sep helper...");
168
169 m_collhandle->common()->registerHandle(this);
170
171 // debug
172 // std::cout<<"m_collhandle->sepHelper() = " << m_collhandle->sepHelper()<<std::endl;
173 SoNode* tmp = nodes();
174 // std::cout << "tmp nodes = "<< tmp << std::endl;
175
176 // m_collhandle->sepHelper()->addNodeUnderMaterial( nodes(), m_currentmaterial );
177 m_collhandle->sepHelper()->addNodeUnderMaterial( tmp, m_currentmaterial );
178
179 } else {
180 if (!has3DObjects()) {
181 VP1Msg::message("AODHandleBase::attach3DObjects() - No 3D objects to attach!");
182 }
183 if (!m_collhandle->sepHelper()) VP1Msg::message("AODHandleBase::attach3DObjects() - No sep helper!");
184 }
185 // if (label_sep && theclass->common()->textSep() && theclass->common()->controller()->doTrackLabels())
186 // theclass->common()->textSep()->addChild(label_sep);
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 &)
Definition VP1Msg.cxx:84
static void message(const QString &, IVP1System *sys=0)
Definition VP1Msg.cxx:30

◆ baseInfo()

QStringList IParticleHandleBase::baseInfo ( ) const
virtualinherited

Reimplemented from AODHandleBase.

Definition at line 85 of file IParticleHandleBase.cxx.

86{
87 QStringList l;
88 Amg::Vector3D mom = momentum()/1000;
89 if (mom.mag2()==0.0) {
90 l << "Momentum : 0 (undefined)";
91 } else {
92 l << "Momentum [GeV]: "+VP1Msg::str(mom);
93 l << "|Pt|/|P| [GeV]: "+VP1Msg::str(mom.perp())+" / " + VP1Msg::str(mom.mag());
94 l << VP1Msg::str("(")+QChar(0x03B7)+","+QChar(0x03D5)+VP1Msg::str(")=(")
96
97 l << "Eta: "+VP1Msg::str(mom.eta());
98 l << "Phi: "+VP1Msg::str(VP1LinAlgUtils::phiFromXY(mom.x(), mom.y() ));
99 }
100 // l<<"Hit summary: Pix["+VP1Msg::str(getNPixelHits())+"], SCT["+VP1Msg::str(getNSCTHits())+"], TRT["+VP1Msg::str(getNTRTHits())
101 // +"], MDT["+QString::number(getNMDTHits())+"], RPC["+QString::number(getNRPCHits())+"], TGC["+QString::number(getNTGCHits())+"], CSC["+QString::number(getNCSCHits())+"].";
102 //
103 // return l;
104 // int pdg = pdgCode();
105 // if (pdg) {
106 // bool ok;
107 // QString name = VP1ParticleData::particleName(pdg,ok);
108 // if (ok)
109 // l << "pdg: "+QString::number(pdg)+" ["+name+"]";
110 // else
111 // l << "pdg: "+QString::number(pdg);
112 // }
113
114 return l;
115}
virtual Amg::Vector3D momentum() const
static double phiFromXY(const double &x, const double &y)
static QString str(const QString &s)
Definition VP1String.h:49
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

Returns unknown() in case of trouble.

Implements IParticleHandleBase.

Definition at line 447 of file IParticleHandle_CaloCluster.cxx.

448{
449 //return m_d->trackparticle->charge(); // TODO: check in Jet interface if a "charge" quantity is defined
450 return 0; // FIXME: dummy value now
451}

◆ clear3DObjects()

void IParticleHandle_CaloCluster::clear3DObjects ( )
virtual

Delete objects.

Implements AODHandleBase.

Definition at line 146 of file IParticleHandle_CaloCluster.cxx.

146 {
147 // VP1Msg::messageVerbose("IParticleHandle_CaloCluster::clear3DObjects()");
148
149 // if (m_d->m_randomMat) {
150 // m_d->m_randomMat->unref();
151 // m_d->m_randomMat = 0;
152 // }
153 if (m_d->m_genericBox) {
154 m_d->m_genericBox->unref();
155 m_d->m_genericBox = 0;
156 }
157 if (m_d->sep) {
158 m_d->sep->unref();
159 m_d->sep = 0;
160 }
161
162}

◆ 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{
407 QStringList l;
408 l << "--CaloCluster:";
409 //l << IParticleHandleBase::baseInfo();
410
411 // info and parameters,
412 // they go in the "Information" column in the Browser window
413 // see: http://acode-browser.usatlas.bnl.gov/lxr/source/atlas/Event/xAOD/xAODCaloEvent/xAODCaloEvent/versions/CaloCluster_v1.h
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
427 return l;
428}

◆ collHandle()

const AODCollHandleBase * AODHandleBase::collHandle ( ) const
inlineinherited

Definition at line 55 of file AODHandleBase.h.

55{ return m_collhandle; }

◆ common()

const AODSysCommonData * AODHandleBase::common ( ) const
inherited

Definition at line 93 of file AODHandleBase.cxx.

94{
95 return std::as_const(m_collhandle)->common();
96}

◆ currentMaterial()

SoMaterial * AODHandleBase::currentMaterial ( ) const
inlineinherited

Returns the current material of the handle.

Definition at line 76 of file AODHandleBase.h.

76{ return m_currentmaterial; }

◆ currentMaterialChanged()

virtual void AODHandleBase::currentMaterialChanged ( )
inlineprotectedvirtualinherited

Definition at line 111 of file AODHandleBase.h.

111{};

◆ detach3DObjects()

void AODHandleBase::detach3DObjects ( )
virtualinherited

Remove from the scene graph.

Definition at line 191 of file AODHandleBase.cxx.

192{
193 VP1Msg::messageVerbose("AODHandleBase::detach3DObjects");
194
196 return;//Can never have been attached!
197 if (has3DObjects() && m_collhandle->sepHelper()) {
198 m_collhandle->sepHelper()->removeNodeUnderMaterial(nodes(),m_currentmaterial);
199 }
200
201 m_collhandle->common()->deregisterHandle(this);
202
203 // if (label_sep && theclass->common()->textSep())
204 // theclass->common()->textSep()->removeChild(label_sep);
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 // By default we use the collection material.
73 // std::cout<<"AODHandleBase::determineMaterial() - collHandle()->material()"<<collHandle()->material()<<std::endl;
74 return collHandle()->material();
75}
const AODCollHandleBase * collHandle() const
SoMaterial * material() const

◆ dumpToJSON()

void IParticleHandle_CaloCluster::dumpToJSON ( std::ofstream & str) const
virtual

Reimplemented from AODHandleBase.

Definition at line 593 of file IParticleHandle_CaloCluster.cxx.

593 {
594 str << "\"phi\":" <<m_d->phi() <<", ";
595 str << "\"eta\":" <<m_d->eta() <<", ";
596 str << "\"energy\":" <<m_d->e();
597}

◆ e()

double IParticleHandle_CaloCluster::e ( ) const

Definition at line 542 of file IParticleHandle_CaloCluster.cxx.

542{ return m_d->e(); }

◆ energyForCuts()

double IParticleHandle_CaloCluster::energyForCuts ( ) const

Definition at line 546 of file IParticleHandle_CaloCluster.cxx.

546 {
547 VP1Msg::messageDebug("IParticleHandle_CaloCluster::energyForCuts()");
548 return m_d->energyForLengthAndCuts();
549}
static void messageDebug(const QString &)
Definition VP1Msg.cxx:39

◆ ensureInitSubSysHitInfo()

void IParticleHandle_CaloCluster::ensureInitSubSysHitInfo ( ) const
private

◆ et()

double IParticleHandle_CaloCluster::et ( ) const

Definition at line 553 of file IParticleHandle_CaloCluster.cxx.

553{ return m_d->et(); }

◆ eta()

double IParticleHandle_CaloCluster::eta ( ) const

Definition at line 535 of file IParticleHandle_CaloCluster.cxx.

535 {
536 /*VP1Msg::messageVerbose("eta: " + QString::number(m_cluster->eta()) );*/
537 return m_d->eta();
538}

◆ 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{
510 IParticleHandleBase::fillObjectBrowser(listOfItems); // Obligatory!
511
512 QTreeWidgetItem* TSOSitem = new QTreeWidgetItem(browserTreeItem());
513
514 // Jet "Object" title, in the Browser window
515 TSOSitem->setText(0, QString("CaloCluster Parameters " ) );
516
517 QString dParameters = shortInfo();
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()

SoGenericBox * IParticleHandle_CaloCluster::genericBox ( )

Definition at line 110 of file IParticleHandle_CaloCluster.cxx.

111{
112 return m_d->genericBox();
113}

◆ has3DObjects()

bool IParticleHandle_CaloCluster::has3DObjects ( )
virtual

Returns true if the 3D objects have been created.

Reimplemented from AODHandleBase.

Definition at line 138 of file IParticleHandle_CaloCluster.cxx.

139{
140 // VP1Msg::messageVerbose("IParticleHandle_CaloCluster::has3DObjects()");
141 return 0 != m_d->sep;
142}

◆ hasCharge()

bool IParticleHandleBase::hasCharge ( ) const
inlineinherited

Definition at line 59 of file IParticleHandleBase.h.

59{ return charge()!=unknown(); }
static double unknown()
virtual double charge() const =0

◆ hasMass()

bool IParticleHandleBase::hasMass ( ) const
inlineinherited

Definition at line 60 of file IParticleHandleBase.h.

60{ return mass()!=unknown(); }
virtual double mass() const
Returns unknown() in case of trouble.

◆ iParticle()

const xAOD::IParticle & IParticleHandle_CaloCluster::iParticle ( ) const
virtual

Implements IParticleHandleBase.

Definition at line 440 of file IParticleHandle_CaloCluster.cxx.

441{
442 return *(m_d->m_cluster);
443}

◆ 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

Returns unknown() in case of trouble.

Definition at line 78 of file IParticleHandleBase.cxx.

79{
80 return 0.0;
81}

◆ momentum()

virtual Amg::Vector3D IParticleHandleBase::momentum ( ) const
inlinevirtualinherited

Reimplemented in IParticleHandle_Electron, IParticleHandle_Muon, and IParticleHandle_TrackParticle.

Definition at line 52 of file IParticleHandleBase.h.

52{ return Amg::Vector3D(0,0,0); }

◆ nodes()

SoNode * IParticleHandle_CaloCluster::nodes ( )
virtual

Returns the 3Dobjects.

Implements AODHandleBase.

Definition at line 170 of file IParticleHandle_CaloCluster.cxx.

170 {
171
172 VP1Msg::messageVerbose("IParticleHandle_CaloCluster::nodes()");
173
174 if (m_d->sep) {
175 VP1Msg::messageVerbose("d->sep already defined (" + VP1Msg::str(m_d->sep) + "). Returning d->sep.");
176 return m_d->sep; // FIXME - do we need to check if anything need to be redrawn?
177 }
178 if (!m_d->sep) {
179 VP1Msg::messageVerbose("d->sep not defined. Creating shapes and a new d->sep.");
180 m_d->sep = new SoSeparator();
181 m_d->sep->ref();
182 }
183
184 const IParticleCollHandle_CaloCluster* coll_handle = dynamic_cast<const IParticleCollHandle_CaloCluster*>(collHandle());
185 if (not coll_handle) return m_d->sep;
186 VP1Msg::messageVerbose("creating the shapes");
187
188 /*
189 * Build the 3D objects for the physics object, and update m_d->sep.
190 */
191 // m_d->createShapeFromJetParameters(collHandle, m_d->coneR(), m_d->eta(), m_d->phi(), m_d->energyForLengthAndCuts(), origin);
192 // m_d->createShapeFromParameters(coll_handle, origin);
193 m_d->createShapeFromParameters(coll_handle);
194
195
196 return m_d->sep;
197}

◆ numberOfInstances()

int AODHandleBase::numberOfInstances ( )
staticinherited

Definition at line 87 of file AODHandleBase.cxx.

88{
89 return Imp::nobjhandles;
90}
static std::atomic< int > nobjhandles

◆ phi()

double IParticleHandle_CaloCluster::phi ( ) const

Definition at line 528 of file IParticleHandle_CaloCluster.cxx.

528 {
529 /*VP1Msg::messageVerbose("phi: " + QString::number(m_cluster->phi()) );*/
530 return m_d->phi();
531}

◆ rebuild3DObjects()

void AODHandleBase::rebuild3DObjects ( )
virtualinherited

Definition at line 137 of file AODHandleBase.cxx.

138{
139 QString tmp2 = (m_visible==true)?"True":"False";
140 VP1Msg::messageDebug("AODHandleBase::rebuild3DObjects() - with m_visible="+tmp2 );
141
142 //Ensure we are always detached while updating.
143 if (m_visible) {
145 }
146
148 nodes(); // rebuilds the 3D shapes
149
150 //Attach if visible:
151 if (m_visible) {
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";
102 QString tmp2 = (m_visible==true)?"True":"False";
103 VP1Msg::messageDebug(QString("AODHandleBase calling setVisible with vis=")+tmp+QString(", and m_visible=")+tmp2 );
104 if (vis==m_visible)
105 return;
106
107 m_visible=vis;
108 if (vis) {
109 m_collhandle->incrementNShownHandles();
110
111 if (!has3DObjects())
112 rebuild3DObjects();//The call to rebuild also fixes attached state.
113 else
115 } else {
116 m_collhandle->decrementNShownHandles();
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 // info and parameters,
483 // they go in the "Information" column in the Browser window
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

return very short word with type (maybe link with collection type?)

Reimplemented from AODHandleBase.

Definition at line 88 of file IParticleHandle_CaloCluster.h.

◆ unknown()

double AODHandleBase::unknown ( )
inlinestaticinherited

Definition at line 93 of file AODHandleBase.h.

93{ return -999.0; }

◆ 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{
127 if (m_visible) {
129 } else {
130 //Simply clear the present 3D objects. They will only be recreated if/when the track/jet becomes visible again.
132 }
133}

◆ updateMaterial()

void IParticleHandle_CaloCluster::updateMaterial ( )

Definition at line 561 of file IParticleHandle_CaloCluster.cxx.

562{
563 VP1Msg::messageVerbose("IParticleHandle_CaloCluster::Imp::updateMaterial()");
564
565 // check if we have 3D objects; if not, return
566 if ( m_d->sep == 0 )
567 return;
568
569 // if (!isRandomColors && !m_d->m_randomMat)
570 // return;//m_randomMat can never have been attached
571 //
572 // if (isRandomColors && !m_d->m_randomMat) {
573 // m_d->m_randomMat = new SoMaterial;
574 // m_d->m_randomMat->ref();
575 // rerandomiseMaterial();
576 // }
577
578
579 // int i = m_d->sep->findChild(m_d->m_randomMat);
580
581 // if ( (i>=0) == isRandomColors ) {
582 // VP1Msg::messageVerbose("(i>=0)==isRandomColors. Returning.");
583 // return;
584 // }
585
586 // if (!isRandomColors )
587 // m_d->sep->removeChild(m_d->m_randomMat);
588 // else
589 // m_d->sep->insertChild(m_d->m_randomMat, m_d->sep->getNumChildren()-1);
590}

◆ updateObjectBrowser()

void AODHandleBase::updateObjectBrowser ( )
inlineinherited

Update object browser QTreeWidgetItem.

Definition at line 102 of file AODHandleBase.h.

102{};

◆ updateShape()

void IParticleHandle_CaloCluster::updateShape ( IParticleCollHandle_CaloCluster * coll)

Definition at line 205 of file IParticleHandle_CaloCluster.cxx.

206{
207 VP1Msg::messageDebug("IParticleHandle_CaloCluster::updateShape()");
208 m_d->updateShapePars(coll);
209}

◆ visible()

bool AODHandleBase::visible ( ) const
inlineinherited

Definition at line 54 of file AODHandleBase.h.

54{ return m_visible; }

◆ 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{
318 if ( !browserTreeItem()) {
319 VP1Msg::messageVerbose("visibleStateChanged: No m_objBrowseTree!");
320 return;
321 }
322
323 if (!visible()) {
324 browserTreeItem()->setFlags(Qt::ItemFlags()); // not selectable, not enabled
325 } else {
326 browserTreeItem()->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled); // selectable, enabled
327 }
328 QFont itemFont = browserTreeItem()->font(0);
329 itemFont.setStrikeOut(!visible());
330 browserTreeItem()->setFont(0, itemFont);
331 browserTreeItem()->setFont(1, itemFont);
332}
bool visible() const

Member Data Documentation

◆ m_collhandle

AODCollHandleBase* AODHandleBase::m_collhandle
privateinherited

Definition at line 126 of file AODHandleBase.h.

◆ m_currentmaterial

SoMaterial* AODHandleBase::m_currentmaterial
privateinherited

Definition at line 127 of file AODHandleBase.h.

◆ m_d

Imp* IParticleHandle_CaloCluster::m_d
private

Definition at line 104 of file IParticleHandle_CaloCluster.h.

◆ m_visible

bool AODHandleBase::m_visible
privateinherited

Definition at line 125 of file AODHandleBase.h.


The documentation for this class was generated from the following files: