Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 8c86774a3e53d77cc119f53a2b94a57a > files > 469

root-tutorial-5.34.14-2.fc18.noarch.rpm

#ifndef PARTICLELIST_H
#define PARTICLELIST_H

#include <TArrayI.h>
#include <TObjArray.h>

#include "NdbParticle.h"

/* ------------ Particle List ---------------- */
class NdbParticleList : public TObject
{
protected:
	TArrayI		mult;		// How many times each particle occurs
	TObjArray	part;		// Link to particle types

public:
	NdbParticleList() : mult(), part() { }
	~NdbParticleList() {}

	// --- Access Functions ---
	Int_t	TotalCharge();		// Total charge
	Float_t	TotalMass();		// Total mass
	TString	Name();			// string containing the name
					// in a format like 2np

	void	Add(NdbParticle *p, Int_t n=1);

	ClassDef(NdbParticleList,1)

}; // NdbParticleList

#endif