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

Comparing UserCode/MitAna/DataTree/interface/DaughterData.h (file contents):
Revision 1.2 by bendavid, Tue Sep 30 12:52:52 2008 UTC vs.
Revision 1.5 by loizides, Tue Dec 9 17:46:59 2008 UTC

# Line 3 | Line 3
3   //
4   // DaughterData
5   //
6 < // Additional information on a daughter which is specific to a particular decay
6 > // Daughter decay information: Keep reference to original particle.
7   //
8 //
8   // Authors: J.Bendavid
9   //--------------------------------------------------------------------------------------------------
10  
# Line 21 | Line 20 | namespace mithep
20    {
21      public:
22        DaughterData() {}
23 <      DaughterData(Particle *orig) : fOriginal(orig) {}
24 <      virtual ~DaughterData() {}
23 >      DaughterData(const Particle *orig) : fOriginal(const_cast<Particle*>(orig)) {}
24 >      ~DaughterData() {}
25  
26        Double_t             Charge()    const { return Original()->Charge(); }
27 <      
27 >      EObjType             ObjType()   const { return kDaughterData;        }
28        const Particle      *Original()  const;
29  
30      protected:
31 <      TRef                 fOriginal; //TRef to original particle
31 >      TRef                 fOriginal; //reference to original particle
32  
33 <    ClassDef(DaughterData, 1) // Stable daughter class
33 >    ClassDef(DaughterData, 1) // Daughter data class
34    };
35   }
36  
37 + //--------------------------------------------------------------------------------------------------
38   inline const mithep::Particle *mithep::DaughterData::Original() const
39   {
40 <  // Return global combined track.
40 >  // Return original particle.
41  
42    return static_cast<const Particle*>(fOriginal.GetObject());
43   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines