Fork me on GitHub

Changeset 73 in svn for trunk/interface


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/interface/SmearUtil.h

    r72 r73  
    2323
    2424#include "Utilities/Fastjet/plugins/CDFCones/interface/PhysicsTower.hh"
     25
     26#include <iostream>
     27#include <sstream>
     28#include <fstream>
     29#include <iomanip>
     30
    2531using namespace std;
     32
     33class ParticleUtil {
     34
     35 public:
     36
     37  TLorentzVector TLVector;
     38  int Pid;
     39
     40  ParticleUtil(const TLorentzVector &genMomentum,const int &pid) : TLVector(genMomentum) , Pid(pid) {}
     41
     42  float E() {return TLVector.E();}  // particle energy in GeV
     43  float Px() {return TLVector.Px();}  // particle energy in GeV
     44  float Py() {return TLVector.Py();}  // particle energy in GeV
     45  float Pz() {return TLVector.Pz();}  // particle energy in GeV
     46  float Pt() {return TLVector.Pt();}  // particle energy in GeV
     47  float Eta() {return TLVector.Eta();}  // particle energy in GeV
     48  float Phi() {return TLVector.Phi();}  // particle energy in GeV
     49  float PID() {return Pid;}  // particle energy in GeV
     50
     51 private:
     52
     53};
     54
    2655
    2756class RESOLution
Note: See TracChangeset for help on using the changeset viewer.