#include #include #include "NdbParticleList.h" ClassImp(NdbParticleList) /* -------- TotalCharge -------- */ Int_t NdbParticleList::TotalCharge() { Int_t charge = 0; for (int i=0; iCharge() * mult[i]; return charge; } // TotalCharge /* -------- TotalMass -------- */ Float_t NdbParticleList::TotalMass() { Float_t mass = 0.0; for (int i=0; iMass() * mult[i]; return mass; } // TotalMass /* -------- Name -------- */ TString NdbParticleList::Name() { TString nm; for (int i=0; i1) { char num[10]; sprintf(num,"%d",mult[i]); nm.Append(num); } nm.Append(((NdbParticle*)part[i])->Name()); } return nm; } // Name /* --------- Add --------- */ void NdbParticleList::Add(NdbParticle *, Int_t) { cout << "NdbParticleList::add()" << endl; } // Add