20 |
|
class CompositeParticle : public Particle |
21 |
|
{ |
22 |
|
public: |
23 |
< |
CompositeParticle(UInt_t rsv=0) : fDaughters(rsv) { SetClearBit(); } |
23 |
> |
CompositeParticle() {} |
24 |
|
~CompositeParticle() {} |
25 |
|
|
26 |
|
void AddDaughter(Particle *p) { fDaughters.Add(p); } |
27 |
+ |
Double_t Charge() const; |
28 |
|
void Clear(Option_t *opt="") { fDaughters.Clear(opt); } |
28 |
– |
Int_t Charge() const; |
29 |
|
const Particle *Daughter(UInt_t i) const { return fDaughters.At(i); } |
30 |
|
UInt_t NDaughters() const { return fDaughters.Entries(); } |
31 |
+ |
Bool_t HasDaughter(const Particle *p) const; |
32 |
|
Bool_t HasCommonDaughter(const CompositeParticle *p) const; |
33 |
|
Bool_t HasSameDaughters(const CompositeParticle *p) const; |
33 |
– |
Bool_t IsDaughter(const Particle *p) const; |
34 |
|
FourVector Mom() const; |
35 |
|
|
36 |
|
protected: |
37 |
< |
RefArray<Particle> fDaughters; //references to daughter particles |
37 |
> |
RefArray<Particle> fDaughters; //||references to daughter particles |
38 |
|
|
39 |
|
ClassDef(CompositeParticle, 1) // Composite particle class |
40 |
|
}; |