ATLAS Offline Software
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
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. More...
 
virtual void clear3DObjects ()
 Delete objects. More...
 
virtual SoNode * nodes ()
 Returns the 3Dobjects. More...
 
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. More...
 
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. More...
 
const xAOD::IParticleiParticle () const
 
SoGenericBoxgenericBox ()
 
virtual double charge () const
 Returns unknown() in case of trouble. More...
 
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?) More...
 
QString shortInfo () const
 This returns the information shown about the object in the object browser. More...
 
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. More...
 
virtual QStringList baseInfo () const
 
virtual Amg::Vector3D momentum () const
 
virtual double mass () const
 Returns unknown() in case of trouble. More...
 
bool hasCharge () const
 
bool hasMass () const
 
const AODSysCommonDatacommon () const
 
void setVisible (bool)
 use by the collection handle. More...
 
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. More...
 
virtual void rebuild3DObjects ()
 
virtual void attach3DObjects ()
 Connect to the scene graph. More...
 
virtual void detach3DObjects ()
 Remove from the scene graph. More...
 
SoMaterial * currentMaterial () const
 Returns the current material of the handle. More...
 
void updateObjectBrowser ()
 Update object browser QTreeWidgetItem. More...
 
QTreeWidgetItem * browserTreeItem () const
 Return the QTreeWidgetItem;. More...
 

Static Public Member Functions

static int numberOfInstances ()
 
static double unknown ()
 

Protected Member Functions

virtual void visibleStateChanged ()
 Dummy implementation does nothing. More...
 
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 }

◆ ~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 
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 );
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 }

◆ 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 }

◆ 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 
195  if (!m_currentmaterial)
196  return;//Can never have been attached!
197  if (has3DObjects() && m_collhandle->sepHelper()) {
199  }
200 
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 }

◆ 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 }

◆ 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 }

◆ 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(); }

◆ hasMass()

bool IParticleHandleBase::hasMass ( ) const
inlineinherited

Definition at line 60 of file IParticleHandleBase.h.

60 { return mass()!=unknown(); }

◆ 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_TrackParticle, and IParticleHandle_Muon.

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 }

◆ 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) {
144  detach3DObjects();
145  }
146 
147  clear3DObjects();
148  nodes(); // rebuilds the 3D shapes
149 
150  //Attach if visible:
151  if (m_visible) {
152  attach3DObjects();
153  }
154 }

◆ 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) {
110 
111  if (!has3DObjects())
112  rebuild3DObjects();//The call to rebuild also fixes attached state.
113  else
114  attach3DObjects();
115  } else {
117  detach3DObjects();
118  }
119 
121 }

◆ 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()

static 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.
131  clear3DObjects();
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 }

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:
xAOD::CaloCluster_v1::phi
virtual double phi() const
The azimuthal angle ( ) of the particle.
Definition: CaloCluster_v1.cxx:256
AODHandleBase::visible
bool visible() const
Definition: AODHandleBase.h:54
GeV
#define GeV
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
sendEI_SPB.ch
ch
Definition: sendEI_SPB.py:35
DeMoUpdate.tmp2
string tmp2
Definition: DeMoUpdate.py:1168
AODHandleBase::unknown
static double unknown()
Definition: AODHandleBase.h:93
VP1StdCollection::material
SoMaterial * material() const
Definition: VP1StdCollection.cxx:220
AODHandleBase::detach3DObjects
virtual void detach3DObjects()
Remove from the scene graph.
Definition: AODHandleBase.cxx:191
IParticleHandle_CaloCluster::Imp::m_cluster
const xAOD::CaloCluster * m_cluster
Definition: IParticleHandle_CaloCluster.cxx:54
IParticleHandle_CaloCluster::Imp::eta
double eta() const
Definition: IParticleHandle_CaloCluster.cxx:66
IParticleHandle_CaloCluster::shortInfo
QString shortInfo() const
This returns the information shown about the object in the object browser.
Definition: IParticleHandle_CaloCluster.cxx:478
VP1ExtraSepLayerHelper::addNodeUnderMaterial
void addNodeUnderMaterial(SoNode *, SoMaterial *)
Definition: VP1ExtraSepLayerHelper.cxx:190
AODHandleBase::m_collhandle
AODCollHandleBase * m_collhandle
Definition: AODHandleBase.h:126
xAOD::CaloCluster_v1::m
virtual double m() const
The invariant mass of the particle.
Definition: CaloCluster_v1.cxx:261
xAOD::CaloCluster_v1::et
double et() const
Definition: CaloCluster_v1.h:856
AODHandleBase::collHandle
const AODCollHandleBase * collHandle() const
Definition: AODHandleBase.h:55
AODHandleBase::determineMaterial
virtual SoMaterial * determineMaterial()=0
Should be implemented by children, in order to change the material depending on the interface etc.
VP1ExtraSepLayerHelper::removeNodeUnderMaterial
void removeNodeUnderMaterial(SoNode *, SoMaterial *)
Definition: VP1ExtraSepLayerHelper.cxx:216
AODHandleBase::fillObjectBrowser
virtual void fillObjectBrowser(QList< QTreeWidgetItem * > &list)
Create and fill the object browser QTreeWidgetItem.
Definition: AODHandleBase.cxx:288
AODHandleBase::has3DObjects
virtual bool has3DObjects()
Returns true if the 3D objects have been created.
Definition: AODHandleBase.h:57
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
IParticleHandle_CaloCluster::Imp::theclass
IParticleHandle_CaloCluster * theclass
Definition: IParticleHandle_CaloCluster.cxx:51
IParticleHandleBase::charge
virtual double charge() const =0
VP1String::str
static QString str(const QString &s)
Definition: VP1String.h:49
AODHandleBase::currentMaterialChanged
virtual void currentMaterialChanged()
Definition: AODHandleBase.h:111
AODCollHandleBase::common
const AODSysCommonData * common() const
Definition: AODCollHandleBase.h:88
AODCollHandleBase::incrementNShownHandles
void incrementNShownHandles()
Definition: AODCollHandleBase.h:132
VP1LinAlgUtils::phiFromXY
static double phiFromXY(const double &x, const double &y)
Definition: VP1LinAlgUtils.cxx:374
xAOD::CaloCluster_v1::clusterSize
ClusterSize clusterSize() const
Get cluster size.
Definition: CaloCluster_v1.cxx:364
SoGenericBox::initClass
static void initClass()
Definition: SoGenericBox.cxx:62
AODHandleBase::attach3DObjects
virtual void attach3DObjects()
Connect to the scene graph.
Definition: AODHandleBase.cxx:157
IParticleHandle_CaloCluster::Imp::genericBox
SoGenericBox * genericBox()
Definition: IParticleHandle_CaloCluster.cxx:64
xAOD::CaloCluster_v1::inEndcap
bool inEndcap() const
Returns true if at least one clustered cell in the endcap.
Definition: CaloCluster_v1.h:901
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
IParticleCollHandle_CaloCluster
Definition: IParticleCollHandle_CaloCluster.h:35
xAOD::CaloCluster_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition: CaloCluster_v1.cxx:251
IParticleHandle_CaloCluster::Imp::m_genericBox
SoGenericBox * m_genericBox
Definition: IParticleHandle_CaloCluster.cxx:57
IParticleHandle_CaloCluster::Imp::et
double et() const
Definition: IParticleHandle_CaloCluster.cxx:67
AODHandleBase::Imp::nobjhandles
static std::atomic< int > nobjhandles
Definition: AODHandleBase.cxx:56
IParticleHandleBase::momentum
virtual Amg::Vector3D momentum() const
Definition: IParticleHandleBase.h:52
IParticleHandle_CaloCluster::Imp::sep
SoSeparator * sep
Definition: IParticleHandle_CaloCluster.cxx:56
xAOD::CaloCluster_v1::inBarrel
bool inBarrel() const
Returns true if at least one clustered cell in the barrel.
Definition: CaloCluster_v1.h:896
AODHandleBase::visibleStateChanged
virtual void visibleStateChanged()
Dummy implementation does nothing.
Definition: AODHandleBase.cxx:316
AODSysCommonData::deregisterHandle
void deregisterHandle(AODHandleBase *h)
Definition: AODSysCommonData.cxx:67
AODHandleBase::browserTreeItem
QTreeWidgetItem * browserTreeItem() const
Return the QTreeWidgetItem;.
Definition: AODHandleBase.cxx:311
IParticleHandle_CaloCluster::Imp::e
double e() const
Definition: IParticleHandle_CaloCluster.cxx:68
AODCollHandleBase::decrementNShownHandles
void decrementNShownHandles()
Definition: AODCollHandleBase.h:133
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
IParticleHandle_CaloCluster::Imp::createShapeFromParameters
void createShapeFromParameters(const IParticleCollHandle_CaloCluster *coll_handle)
Definition: IParticleHandle_CaloCluster.cxx:236
xAOD::CaloCluster_v1::pt
virtual double pt() const
The transverse momentum ( ) of the particle (negative for negative-energy clusters)
Definition: CaloCluster_v1.cxx:247
python.selection.number
number
Definition: selection.py:20
IParticleHandleBase::IParticleHandleBase
IParticleHandleBase(IParticleCollHandleBase *)
Definition: IParticleHandleBase.cxx:59
VP1Msg::messageVerbose
static void messageVerbose(const QString &)
Definition: VP1Msg.cxx:84
AODHandleBase::nodes
virtual SoNode * nodes()=0
Returns the 3Dobjects.
IParticleHandle_CaloCluster::Imp::updateShapePars
void updateShapePars(const IParticleCollHandle_CaloCluster *coll_handle)
Definition: IParticleHandle_CaloCluster.cxx:213
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
AODHandleBase::m_d
Imp * m_d
Definition: AODHandleBase.h:120
AODHandleBase::m_visible
bool m_visible
Definition: AODHandleBase.h:125
AODCollHandleBase::sepHelper
const VP1ExtraSepLayerHelper * sepHelper() const
Definition: AODCollHandleBase.h:90
IParticleHandle_CaloCluster::Imp::energyForLengthAndCuts
double energyForLengthAndCuts(const IParticleCollHandle_CaloCluster *coll_handle)
Definition: IParticleHandle_CaloCluster.cxx:70
IParticleHandle_CaloCluster::m_d
Imp * m_d
Definition: IParticleHandle_CaloCluster.h:103
IParticleHandleBase::mass
virtual double mass() const
Returns unknown() in case of trouble.
Definition: IParticleHandleBase.cxx:78
IParticleCollHandle_CaloCluster::isConsiderTransverseEnergy
bool isConsiderTransverseEnergy() const
Definition: IParticleCollHandle_CaloCluster.cxx:395
VP1Msg::messageDebug
static void messageDebug(const QString &)
Definition: VP1Msg.cxx:39
VP1Msg::message
static void message(const QString &, IVP1System *sys=0)
Definition: VP1Msg.cxx:30
AODHandleBase::rebuild3DObjects
virtual void rebuild3DObjects()
Definition: AODHandleBase.cxx:137
IParticleHandle_CaloCluster::Imp::phi
double phi() const
Definition: IParticleHandle_CaloCluster.cxx:65
AODHandleBase::Imp::m_objBrowseTree
QTreeWidgetItem * m_objBrowseTree
Definition: AODHandleBase.cxx:65
str
Definition: BTagTrackIpAccessor.cxx:11
xAOD::CaloCluster_v1::type
virtual Type::ObjectType type() const
The type of the object as a simple enumeration.
Definition: CaloCluster_v1.cxx:489
AODSysCommonData::registerHandle
void registerHandle(AODHandleBase *h)
Definition: AODSysCommonData.cxx:60
AODHandleBase::m_currentmaterial
SoMaterial * m_currentmaterial
Definition: AODHandleBase.h:127
xAOD::CaloCluster_v1::rapidity
virtual double rapidity() const
The true rapidity (y) of the particle.
Definition: CaloCluster_v1.cxx:461
xAOD::CaloCluster_v1::e
virtual double e() const
The total energy of the particle.
Definition: CaloCluster_v1.cxx:265
AODHandleBase::clear3DObjects
virtual void clear3DObjects()=0
Delete objects.