22 |
|
public: |
23 |
|
CompositeParticle() {} |
24 |
|
|
25 |
< |
void AddDaughter(const Particle *p) { fDaughters.Add(p); } |
26 |
< |
void Clear(Option_t *opt="") { fDaughters.Clear(opt); } |
25 |
> |
void AddDaughter(const Particle *p) { fDaughters.Add(p); ClearMom(); ClearCharge(); } |
26 |
> |
void Clear(Option_t *opt="") { fDaughters.Clear(opt); ClearMom(); ClearCharge(); } |
27 |
|
const Particle *Daughter(UInt_t i) const { return fDaughters.At(i); } |
28 |
|
UInt_t NDaughters() const { return fDaughters.Entries(); } |
29 |
|
Bool_t HasDaughter(const Particle *p) const; |
35 |
|
Double_t GetCharge() const; |
36 |
|
void GetMom() const; |
37 |
|
|
38 |
< |
RefArray<Particle,1024> fDaughters; //references to daughter particles |
38 |
> |
RefArray<Particle> fDaughters; //references to daughter particles |
39 |
|
|
40 |
|
ClassDef(CompositeParticle, 1) // Composite particle class |
41 |
|
}; |