ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/CompositeParticle.h
(Generate patch)

Comparing UserCode/MitAna/DataTree/interface/CompositeParticle.h (file contents):
Revision 1.2 by loizides, Tue Jul 1 08:56:49 2008 UTC vs.
Revision 1.3 by loizides, Wed Jul 2 21:46:01 2008 UTC

# Line 21 | Line 21 | namespace mithep
21    class CompositeParticle : public Particle
22    {
23      public:
24 <      CompositeParticle() {}
24 >      CompositeParticle() { SetBit(14); }
25        ~CompositeParticle() {}
26      
27 <      void                      AddDaughter(Particle *p) { fDaughters.Add(p); }
27 >      void                      AddDaughter(Particle *p) { fDaughters.Add(p); fDaughters.Trim(); }
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(); }
# Line 34 | Line 34 | namespace mithep
34        FourVector                Mom()                 const;
35          
36      protected:
37 +      void                      Clear(Option_t */*option*/="") { fDaughters.Reset(); }
38 +
39        RefArray<Particle>        fDaughters; //references to daughter particles
40        
41      ClassDef(CompositeParticle, 1) // Composite particle class

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines