Fork me on GitHub

Changeset 318 in svn for trunk/Utilities/ExRootAnalysis


Ignore:
Timestamp:
Mar 10, 2009, 11:58:38 PM (16 years ago)
Author:
Xavier Rouby
Message:

GenParticle(TRootGenparticle) constructor

Location:
trunk/Utilities/ExRootAnalysis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/ExRootAnalysis/interface/BlockClasses.h

    r310 r318  
    176176
    177177//--------------------------------------------------------------------------
    178 
     178class TRootGenParticle;
    179179class GenParticle: public TRootParticle {
    180180
    181181public:
    182182  GenParticle() {};
     183  GenParticle(const TRootGenParticle& p);
    183184  int PID; // particle HEP ID number [RawHepEventParticle::pid()]
    184185  int Status; // particle status [RawHepEventParticle::status()]
  • trunk/Utilities/ExRootAnalysis/src/BlockClasses.cc

    r290 r318  
    9191   Px = PT*cos(Phi);
    9292   Py = PT*sin(Phi);
     93}
     94
     95GenParticle::GenParticle(const TRootGenParticle& p) :
     96 PID(p.PID), Status(p.Status), M1(p.M1), M2(p.M2), D1(p.D1), D2(p.D2), Charge(p.Charge),
     97 T(p.T), X(p.X), Y(p.Y), Z(p.Z), M(p.M) {
    9398}
    9499
Note: See TracChangeset for help on using the changeset viewer.