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.19 by bendavid, Thu Feb 26 17:06:24 2009 UTC vs.
Revision 1.22 by loizides, Mon Jul 13 11:00:18 2009 UTC

# Line 1 | Line 1
1   //--------------------------------------------------------------------------------------------------
2   // $Id$
3   //
4 < // Composite Particle
4 > // CompositeParticle
5   //
6   // A composite particle class that holds other (daughter) particles.
7   //
# Line 11 | Line 11
11   #ifndef MITANA_DATATREE_COMPOSITEPARTICLE_H
12   #define MITANA_DATATREE_COMPOSITEPARTICLE_H
13  
14 #include "MitAna/DataTree/interface/Types.h"
14   #include "MitAna/DataTree/interface/Particle.h"
15   #include "MitAna/DataCont/interface/RefArray.h"
16  
# Line 22 | Line 21 | namespace mithep
21      public:
22        CompositeParticle() {}
23      
24 <      void                      AddDaughter(const Particle *p)    { fDaughters.Add(p); ClearMom(); ClearCharge(); }
25 <      void                      Clear(Option_t *opt="")           { fDaughters.Clear(opt); ClearMom(); ClearCharge(); }
24 >      void                      AddDaughter(const Particle *p)    
25 >                                  { fDaughters.Add(p); ClearMom(); ClearCharge(); }
26 >      void                      Clear(Option_t *opt="")          
27 >                                  { fDaughters.Clear(opt); ClearMom(); ClearCharge(); }
28        const Particle           *Daughter(UInt_t i)    const       { return fDaughters.At(i);     }
29        UInt_t                    NDaughters()          const       { return fDaughters.Entries(); }
30        Bool_t                    HasDaughter(const Particle *p)                const;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines