#include "hparticlesim.h"

HParticleSim


class description - source file - inheritance tree (.pdf)

class HParticleSim : public HParticle

Inheritance Chart:
TObject
<-
TLorentzVector
<-
HParticle
<-
HParticleSim

    public:
HParticleSim(Double_t px = 0., Double_t py = 0., Double_t pz = 0., Double_t m = 0.) HParticleSim(Int_t, Double_t px = 0., Double_t py = 0., Double_t pz = 0.) HParticleSim(Char_t* Pid, Double_t px = 0., Double_t py = 0., Double_t pz = 0.) HParticleSim(const TVector3&, Double_t) HParticleSim(const HParticleSim&) HParticleSim(const HParticleSim*) virtual ~HParticleSim() static TClass* Class() Int_t getMechanism() const Int_t getMedium() const Float_t getWeight() const virtual TClass* IsA() const HParticleSim& operator=(const HParticleSim&) void setMechanism(Int_t sMechanism = 0) void setMedium(Int_t sMedium = 0) void setVect4(const TLorentzVector& v) void setWeight(Float_t sWeight = 0) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) TLorentzVector Vect4() const

Data Members


    protected:
Float_t weight Geant weight Int_t medium Geant medium; Int_t mechanism Geant mechanism;

Class Description


  HParticleSim - Data container for simulated identified particles

  Currently, HParticleSim is simply an HParticle. Geant track number is
  not propagated due to possibility of multiple Geant tracks contributing
  to one particle. Indices to hits/tracks must be used to access Geant info.

  This class derives from HParticle, which in turn derives from
  TLorentzVector, so that all of the functions available to
  TLorentzVector can be performed on HParticle objects:

      HParticleSim *part1 = new HParticleSim(50.,50.,50.,938.);

      HParticleSim *part2 = new HParticleSim(30.,30.,30.,938.);

      Float_t pxSum = part1.Px() + part2.Px()
      .....

 
For more information, see the PhyAna documentation.



HParticleSim(Double_t px, Double_t py, Double_t pz, Double_t m): HParticle(px,py,pz,m)
 Px, Py, Pz (MeV/c), mass (MeV/c**2)

HParticleSim(Int_t Pid, Double_t px, Double_t py, Double_t pz): HParticle(Pid,px,py,pz)
 Particle id, Px, Py, Pz (MeV/c)

HParticleSim(Char_t *Pid, Double_t px, Double_t py, Double_t pz): HParticle(Pid,px,py,pz)

HParticleSim(const TVector3 &p, Double_t e): HParticle(p,e)

HParticleSim(const HParticleSim & p): HParticle()
 copy constructor

HParticleSim(const HParticleSim * p): HParticle( )
 copy constructor



Inline Functions


                  void ~HParticleSim()
               Float_t getWeight() const
                  void setWeight(Float_t sWeight = 0)
                 Int_t getMechanism() const
                 Int_t getMedium() const
                  void setMedium(Int_t sMedium = 0)
                  void setMechanism(Int_t sMechanism = 0)
        TLorentzVector Vect4() const
                  void setVect4(const TLorentzVector& v)
         HParticleSim& operator=(const HParticleSim&)
               TClass* Class()
               TClass* IsA() const
                  void ShowMembers(TMemberInspector& insp, char* parent)
                  void Streamer(TBuffer& b)
                  void StreamerNVirtual(TBuffer& b)


Author: Dan Magestro
Last update: Fri Jan 26 12:20:56 2007


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.