This is tmb_tree, version p16-br-05 | See all available versions

//////////////////////////////////////////////////////////////////////
//  File: TPhysObj.cpp
//
//  Purpose: define a general interface for D0 physics objects
//           Should be inherited by all constructed objects
//           that have a 4-momentum
//
//  Created: 29-AUG-1999  Serban Protopopescu
//
//////////////////////////////////////////////////////////////////////  
#include "tmb_tree/TPhysObj.hpp"

ClassImp(TPhysObj)

 Float_t TPhysObj::pT() const
{
  return sqrt(px()*px()+py()*py());
}

 Float_t TPhysObj::phi() const
{
    return kinem::phi(px(), py());
}

 Float_t TPhysObj::eta() const
{
  return kinem::eta(px(), py(), pz());
}

 Float_t TPhysObj::theta() const
{
  return kinem::theta(px(), py(), pz());
}

 Float_t TPhysObj::p() const
{
  return sqrt(px()*px()+py()*py()+pz()*pz());
}      

 TLorentzVector TPhysObj::lorentz_vector() const
  { 
    return TLorentzVector(px(),py(),pz(),E());
  }


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.