ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/src/MCParticle.cc
(Generate patch)

Comparing UserCode/MitAna/DataTree/src/MCParticle.cc (file contents):
Revision 1.5 by loizides, Wed Feb 18 15:38:55 2009 UTC vs.
Revision 1.6 by loizides, Tue Mar 17 17:36:53 2009 UTC

# Line 61 | Line 61 | void MCParticle::Print(Option_t *opt) co
61   {
62    // Print particle kinematics. In case option "l" is given then also print info about daughters.
63  
64 <  printf("id=%5d st=%2d nd=%3d gen=%d px=%.3f py=%.3f pz=%.3f e=%.3f\n",
65 <         PdgId(), Status(), NDaughters(), IsGenerated(), Px(), Py(), Pz(), E());
64 >  printf("id=%5d st=%2d nd=%3d gen=%d sim=%d px=%.3f py=%.3f pz=%.3f e=%.3f\n",
65 >         PdgId(), Status(), NDaughters(), IsGenerated(), IsSimulated(), Px(), Py(), Pz(), E());
66  
67    if (opt && opt[0]=='l') {
68      for (UInt_t i=0; i<NDaughters(); ++i) {
69 <      printf("  %2d -> id=%5d st=%2d gen=%d px=%.3f py=%.3f pz=%.3f e=%.3f\n",
70 <             i, Daughter(i)->PdgId(), Daughter(i)->Status(), Daughter(i)->IsGenerated(),
69 >      printf("  %2d -> id=%5d st=%2d gen=%d sim=%d px=%.3f py=%.3f pz=%.3f e=%.3f\n",
70 >             i, Daughter(i)->PdgId(), Daughter(i)->Status(),
71 >             Daughter(i)->IsGenerated(), Daughter(i)->IsSimulated(),
72               Daughter(i)->Px(), Daughter(i)->Py(), Daughter(i)->Pz(), Daughter(i)->E());
73      }
74    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines