00001 #ifndef PARTICLELIST_H 00002 #define PARTICLELIST_H 00003 00004 #include <TArrayI.h> 00005 #include <TObjArray.h> 00006 00007 #include "NdbParticle.h" 00008 00009 /* ------------ Particle List ---------------- */ 00010 class NdbParticleList : public TObject 00011 { 00012 protected: 00013 TArrayI mult; // How many times each particle occurs 00014 TObjArray part; // Link to particle types 00015 00016 public: 00017 NdbParticleList() : mult(), part() { } 00018 ~NdbParticleList() {} 00019 00020 // --- Access Functions --- 00021 Int_t TotalCharge(); // Total charge 00022 Float_t TotalMass(); // Total mass 00023 TString Name(); // string containing the name 00024 // in a format like 2np 00025 00026 void Add(NdbParticle *p, Int_t n=1); 00027 00028 ClassDef(NdbParticleList,1) 00029 00030 }; // NdbParticleList 00031 00032 #endif