Revision a9d626ed6f8f82fa9af58828d03dbb804c88a28f authored by Axel Naumann on 21 November 2016, 07:43:30 UTC, committed by Axel Naumann on 24 November 2016, 07:21:49 UTC
(cherry picked from commit 294c141c1d21227560b3bfc37a2940be97b275cb)
1 parent b947352
NdbParticleList.h
#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
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...