Fork me on GitHub

Ignore:
Timestamp:
Dec 3, 2008, 5:22:43 PM (16 years ago)
Author:
uid677
Message:

new PartUtil class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/ExRootAnalysis/src/BlockClasses.cc

    r70 r73  
    1111 *  to preserve mother-dautherlinks between particles.
    1212 *
    13  *  $Date: 2008-12-02 19:50:30 $
    14  *  $Revision: 1.3 $
     13 *  $Date: 2008-12-03 16:22:43 $
     14 *  $Revision: 1.4 $
    1515 *
    1616 * 
     
    2121#include "Utilities/ExRootAnalysis/interface/BlockClasses.h"
    2222#include "Utilities/ExRootAnalysis/interface/BlockCompare.h"
     23
     24#include "TLorentzVector.h"
    2325
    2426TCompare *TRootGenParticle::fgCompare = 0;
     
    4749        Phi = momentum.Phi();
    4850}
     51void TRootParticle::Set(float px,float py,float pz, float e) {
     52        TLorentzVector toFill;
     53        toFill.SetPxPyPzE(px,py,pz,e);
     54        E   = e;
     55        Px  = px;
     56        Py  = py;
     57        Pz  = pz;
     58        PT  = toFill.Pt();
     59        Eta = toFill.Eta();
     60        Phi = toFill.Phi();
     61}
    4962
     63
Note: See TracChangeset for help on using the changeset viewer.