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

Comparing UserCode/MitAna/DataTree/interface/GenericParticle.h (file contents):
Revision 1.6 by loizides, Fri Jun 19 07:41:34 2009 UTC vs.
Revision 1.7 by loizides, Fri Jun 26 14:35:14 2009 UTC

# Line 14 | Line 14
14  
15   #include <TMath.h>
16   #include "MitAna/DataTree/interface/Particle.h"
17 + #include "MitAna/DataTree/interface/Track.h"
18  
19   namespace mithep
20   {
# Line 35 | Line 36 | namespace mithep
36          fMom(m), fQ(c), fObjId(id), fObjType(type) {}
37        GenericParticle(const Particle &p) :
38          fMom(p.Mom()), fQ(p.Charge()), fObjId(p.ObjId()), fObjType(p.ObjType()) {}
39 +      GenericParticle(const Track &t, Double_t mass=0) :
40 +        fMom(t.Mom4(mass)), fQ(t.Charge()), fObjId(t.ObjId()), fObjType(t.ObjType()) {}
41      
42        void               Print(Option_t *opt="")   const;
43        Int_t              ObjId()                   const { return fObjId;           }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines