seed::TExampleParticle
class description - source file - inheritance tree
public:
seed::TExampleParticle TExampleParticle()
virtual void ~TExampleParticle()
seed::TExampleParticle& AddChild(seed::TExampleParticle* parent)
static TClass* Class()
Bool_t Contains(Int_t particleid, Int_t quarkid) const
void GetChildren(vector<seed::TExampleParticle*>& children) const
Int_t GetGTrkNo() const
seed::TExampleParticle* GetParent() const
Int_t GetPIDcode() const
const seed::TExampleTrack& GetTrack() const
virtual TClass* IsA() const
Bool_t IsBParticle() const
Bool_t IsBQuark() const
Bool_t IsElectron() const
Bool_t IseNeutrino() const
Bool_t IsMuon() const
Bool_t IsW() const
Int_t MadeHit(const vector<seed::THit>& hitvector) const
Int_t MadeHit(const vector<seed::THit>& hitvector, vector<seed::THit>& myhits) const
void SetGTrkNo(Int_t gtrkno)
seed::TExampleParticle& SetParent(seed::TExampleParticle* parent)
void SetPIDcode(Int_t pid)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
public:
TRef fParent TRef to the parent particle
TRefArray fChildren Array of TRef's to the child-particles.
Int_t fGTrkNo Geant track number
Int_t fPid particle ID code (PDG convention, 0 is not initialized)
A TExampleTrack that is able to reference children and parent.
Notes:
- referencing will only work in versions > ~3.03/06 (~June 2002)
Author: Lukas Phaf/Onne Peters <mailto:lphaf@fnal.gov> Feb 2002
@(#) Jun 25, 2002 PB
Modifications:
05-Feb-2002 PB Change tpointers to non-const to work around cint bug (fixed in 3.03/06)
-- This should be changed back!!! (when 3.03/06 becomes available)
Derive from TParticle.
Add fGtrkNo member
17-Apr-2002 PB Remove Reset method (was empty)
Change TMCParticle::contains -> TMCParticle::Contains
25-Jun-2002 PB Derive from TExampleTrack, add fPIDcode.
TExampleParticle() : TExampleTrack(), fParent(0),
fGTrkNo(-1), fPid(0)
Default c'tor.
~TExampleParticle()
Default d'tor.
const TExampleTrack GetTrack() const
return this object casted to its base class
TExampleParticle SetParent(TExampleParticle *parent)
Set the TRef to the parent particle.
TExampleParticle AddChild(TExampleParticle *child)
Add a TRef to the array of TRef's to child-particles.
TExampleParticle* GetParent() const
Get a TExampleParticle pointer to the parent. (null if not or incorrectly set)
void GetChildren(std::vector<TExampleParticle *> &children) const
Fill vector argument with TExampleParticle pointers to children.
Bool_t Contains(Int_t particleid, Int_t quarkid) const
Think about a meson or baryon: Does it contain a quark with PDG ID quarkid?
particleid is the PDG ID of the meson/baryon we're talking about.
Int_t MadeHit( const std::vector<THit>& hitvector ) const
Return number of Geant hits this particle has made out
of the hits in the vector (based on Geant track # of TParticle)
If this particle doesn't know its Geant track number,
return -1.
Int_t MadeHit( const std::vector<THit>& hitvector, std::vector<THit>& myhits ) const
Fill myhits with the hits in hitvector, made by this particle.
Return the number of hits (equal to myhits.size()).
Inline Functions
void SetGTrkNo(Int_t gtrkno)
void SetPIDcode(Int_t pid)
Int_t GetGTrkNo() const
Int_t GetPIDcode() const
Bool_t IsMuon() const
Bool_t IsBQuark() const
Bool_t IsBParticle() const
Bool_t IsW() const
Bool_t IsElectron() const
Bool_t IseNeutrino() const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
Author: Lukas Phaf/Onne Peters Feb 2002
Last update: Jun 25, 2002 PB
ROOT page - Class index - 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.