Revision 54807d9b7051c0e88d7074c9d2205bbd884e0210 authored by Axel Naumann on 12 April 2022, 16:24:02 UTC, committed by Axel Naumann on 12 April 2022, 16:24:02 UTC
1 parent c67b5e1
Raw File
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
back to top