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.5 by loizides, Sun Jul 13 08:37:50 2008 UTC vs.
Revision 1.6 by loizides, Mon Jul 14 09:41:59 2008 UTC

# Line 23 | Line 23 | namespace mithep
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(); }
# Line 34 | Line 35 | namespace mithep
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines