23 |
|
CompositeParticle(UInt_t rsv=0) : fDaughters(rsv) { SetClearBit(); } |
24 |
|
~CompositeParticle() {} |
25 |
|
|
26 |
< |
void AddDaughter(Particle *p) { fDaughters.Add(p); } |
26 |
> |
void AddDaughter(Particle *p) { fDaughters.Add(p); } |
27 |
> |
void Clear(Option_t *opt="") { fDaughters.Clear(opt); } |
28 |
|
Int_t Charge() const; |
29 |
|
const Particle *GetDaughter(UInt_t i) const { return fDaughters.At(i); } |
30 |
|
UInt_t GetNDaughters() const { return fDaughters.GetEntries(); } |
35 |
|
void Trim() { fDaughters.Trim(); } |
36 |
|
|
37 |
|
protected: |
37 |
– |
void Clear(Option_t */*option*/="") { fDaughters.Destroy(); } |
38 |
– |
|
38 |
|
RefArray<Particle> fDaughters; //references to daughter particles |
39 |
|
|
40 |
|
ClassDef(CompositeParticle, 1) // Composite particle class |