Fork me on GitHub

Changeset 73 in svn for trunk/Utilities/ExRootAnalysis


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

new PartUtil class

Location:
trunk/Utilities/ExRootAnalysis
Files:
2 edited

Legend:

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

    r72 r73  
    1313 *  present in the data members of the Block TRoot class.
    1414 *
    15  *  $Date: 2008-12-03 11:01:04 $
    16  *  $Revision: 1.6 $
     15 *  $Date: 2008-12-03 16:22:42 $
     16 *  $Revision: 1.7 $
    1717 *
    1818 * 
     
    159159
    160160  void Set(const TLorentzVector& momentum);
     161  void Set(float px,float py,float pz, float e);
    161162  static TCompare *fgCompare; //!
    162163  const TCompare *GetCompare() const { return fgCompare; }
  • 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.