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

Comparing UserCode/Morgan/interface/TRootParticle.h (file contents):
Revision 1.6 by lethuill, Wed Dec 17 16:23:49 2008 UTC vs.
Revision 1.7 by lethuill, Thu Dec 18 18:01:49 2008 UTC

# Line 22 | Line 22 | public:
22                  ,type_(0)
23                  ,charge_(0.)
24                  ,genParticleIndex_(-1)
25 <                ,genParticle_()
25 >                ,genParticle_(0)
26                  {;}
27  
28          TRootParticle(const TRootParticle& particle) :
# Line 40 | Line 40 | public:
40                  ,type_(0)
41                  ,charge_(0.)
42                  ,genParticleIndex_(-1)
43 <                ,genParticle_()
43 >                ,genParticle_(0)
44                  {;}
45  
46          TRootParticle(Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vtx_x, Double_t vtx_y, Double_t vtx_z) :
# Line 49 | Line 49 | public:
49                  ,type_(0)
50                  ,charge_(0.)
51                  ,genParticleIndex_(-1)
52 <                ,genParticle_()
52 >                ,genParticle_(0)
53                  {;}
54  
55          TRootParticle(Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vtx_x, Double_t vtx_y, Double_t vtx_z,Int_t type, Float_t charge) :
# Line 58 | Line 58 | public:
58                  ,type_(type)
59                  ,charge_(charge)
60                  ,genParticleIndex_(-1)
61 <                ,genParticle_()
61 >                ,genParticle_(0)
62                  {;}
63  
64  
# Line 68 | Line 68 | public:
68                  ,type_(0)
69                  ,charge_(0.)
70                  ,genParticleIndex_(-1)
71 <                ,genParticle_()
71 >                ,genParticle_(0)
72                  {;}
73  
74          TRootParticle(const TLorentzVector &momentum, const TVector3 &vertex) :
# Line 77 | Line 77 | public:
77                  ,type_(0)
78                  ,charge_(0.)
79                  ,genParticleIndex_(-1)
80 <                ,genParticle_()
80 >                ,genParticle_(0)
81                  {;}
82  
83          TRootParticle(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge) :
# Line 86 | Line 86 | public:
86                  ,type_(type)
87                  ,charge_(charge)
88                  ,genParticleIndex_(-1)
89 <                ,genParticle_()
89 >                ,genParticle_(0)
90                  {;}
91  
92          ~TRootParticle() {;}
# Line 98 | Line 98 | public:
98          Int_t type() const  { return type_; }
99          Float_t charge() const  { return charge_; }
100          Int_t genParticleIndex() const { return genParticleIndex_; }
101 <        TObject* genParticle() const { return genParticle_.GetObject() ;}
101 >        TRootParticle* genParticle() const { return (TRootParticle*) genParticle_.GetObject() ;}
102          virtual TString typeName() const { return "TRootParticle"; }
103  
104  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines