98 const HepPDT::ParticleDataTable * dataTable =
pps->PDT();
99 const HepPDT::ParticleData * particleData = dataTable->particle(
iabs(theParticle.pdg_id()));
107 std::ostringstream partStream, pidStream, massStream, ptStream, etaStream, phiStream;
112 partStream <<
name.toStdString();
115 partStream <<
"PDG ID = " << theParticle.pdg_id();
119 item->setText(0,partStream.str().c_str());
122 CLHEP::Hep3Vector
mom=CLHEP::Hep3Vector(theParticle.momentum().x(),
123 theParticle.momentum().y(),
124 theParticle.momentum().z());
125 if (
mom.x()!=0 ||
mom.y()!=0) {
133 pidStream << theParticle.pdg_id();
134 item->setText(1,pidStream.str().c_str());
136 massStream << theParticle.generated_mass()/
CLHEP::GeV;
137 item->setText(2,massStream.str().c_str());
140 item->setText(3,ptStream.str().c_str());
143 item->setText(4,etaStream.str().c_str());
146 item->setText(5,phiStream.str().c_str());
151 QBrush brush=
item->foreground(0);
155 int nParents=prodVertex->particles_in_size();
157 brush.setColor(Qt::black);
159 else if (nParents==1){
162 else if (nParents>1) {
167 item->setForeground(0,brush);
168 item->setForeground(1,brush);
169 item->setForeground(2,brush);
170 item->setForeground(3,brush);
171 item->setForeground(4,brush);
178 QTreeWidgetItem *newItem =
new QTreeWidgetItem();
179 item->addChild(newItem);