97 const HepPDT::ParticleDataTable * dataTable =
pps->PDT();
98 const HepPDT::ParticleData * particleData = dataTable->particle(
iabs(theParticle.pdg_id()));
106 std::ostringstream partStream, pidStream, massStream, ptStream, etaStream, phiStream;
111 partStream <<
name.toStdString();
114 partStream <<
"PDG ID = " << theParticle.pdg_id();
118 item->setText(0,partStream.str().c_str());
121 CLHEP::Hep3Vector
mom=CLHEP::Hep3Vector(theParticle.momentum().x(),
122 theParticle.momentum().y(),
123 theParticle.momentum().z());
124 if (
mom.x()!=0 ||
mom.y()!=0) {
132 pidStream << theParticle.pdg_id();
133 item->setText(1,pidStream.str().c_str());
135 massStream << theParticle.generated_mass()/
CLHEP::GeV;
136 item->setText(2,massStream.str().c_str());
139 item->setText(3,ptStream.str().c_str());
142 item->setText(4,etaStream.str().c_str());
145 item->setText(5,phiStream.str().c_str());
150 QBrush brush=
item->foreground(0);
154 int nParents=prodVertex->particles_in_size();
156 brush.setColor(Qt::black);
158 else if (nParents==1){
161 else if (nParents>1) {
166 item->setForeground(0,brush);
167 item->setForeground(1,brush);
168 item->setForeground(2,brush);
169 item->setForeground(3,brush);
170 item->setForeground(4,brush);
177 QTreeWidgetItem *newItem =
new QTreeWidgetItem();
178 item->addChild(newItem);