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.18 by loizides, Wed Feb 18 15:38:54 2009 UTC vs.
Revision 1.19 by bendavid, Thu Feb 26 17:06:24 2009 UTC

# Line 22 | Line 22 | namespace mithep
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;
# Line 35 | Line 35 | namespace mithep
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    };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines