MyParticle Class Reference

#include <MyParticle.h>

Inheritance diagram for MyParticle:

TParticle TObject TAttLine TAtt3D TObject TAttLine TAtt3D List of all members.

Public Member Functions

 MyParticle ()
 ~MyParticle ()
 MyParticle (Int_t, Int_t, Int_t, Int_t, const TVector3 &, const TVector3 &, Double_t, Double_t, Double_t)
 MyParticle (Int_t, Int_t, Int_t, Int_t, const TVector3 &, const TVector3 &)
TPolyLine3DAddTrack (const TVector3 &, Int_t)
TPolyLine3DAddTrack (Double_t, Double_t, Double_t, Int_t)
Int_t GetId ()
Int_t GetStatus ()
Int_t GetDecayType ()
TVector3GetpLocation ()
TVector3 GetvLocation ()
TVector3 GetvMoment ()
Double_t GetPassed ()
Double_t GetELoss ()
Double_t GetDecayLength ()
Int_t GetChildId (Int_t id)
Double_t GetTimeOfDecay ()
Int_t GetNChildren ()
Int_t GetNTracks ()
Char_tGetObjectInfo (Int_t px, Int_t py) const
TPolyLine3DGetTrack (Int_t at) const
const Char_tGetName () const
void SetId (Int_t id)
void SetNChildren (Int_t nb)
void SetStatus (Int_t stat)
void SetDecayType (Int_t decay)
void SetTimeOfDecay (Double_t time)
void SetLocation (const TVector3 &loc)
void SetLocation (Double_t lx, Double_t ly, Double_t lz)
void SetMoment (const TVector3 &mom)
void SetMoment (const TVector3 &mom, Double_t energy)
void SetNextPoint (Int_t color)
void SetPassed (Double_t pass)
void AddELoss (Double_t eloss)
void SetDecayLength (Double_t len)
void SetChild (Int_t id, Int_t child_id)
void GenerateTimeOfDecay ()
void HighLight ()
virtual void Delete (Option_t *)
virtual void SetLineAttributes ()
virtual void SetDrawOption (Option_t *)

Private Attributes

Int_t fId
Int_t fStatus
Int_t fDecayType
Int_t fNChildren
TVector3fLocation
Double_t fPassed
Double_t fEloss
Double_t fDecayLength
Double_t fTimeOfDecay
Int_t fChild [6]
Int_t fNtrack
TObjArrayfTracks

Detailed Description

Definition at line 30 of file MyParticle.h.


Constructor & Destructor Documentation

MyParticle::MyParticle (  ) 

MyParticle::~MyParticle (  ) 

Definition at line 226 of file MyParticle.cxx.

References TObjArray::Delete(), fLocation, and fTracks.

MyParticle::MyParticle ( Int_t  ,
Int_t  ,
Int_t  ,
Int_t  ,
const TVector3 ,
const TVector3 ,
Double_t  ,
Double_t  ,
Double_t   
)

Definition at line 53 of file MyParticle.cxx.

References fChild, fDecayLength, fDecayType, fId, fLocation, fNChildren, fNtrack, fPassed, fStatus, fTimeOfDecay, and fTracks.

MyParticle::MyParticle ( Int_t  ,
Int_t  ,
Int_t  ,
Int_t  ,
const TVector3 ,
const TVector3  
)

Definition at line 82 of file MyParticle.cxx.

References fChild, fDecayLength, fDecayType, fEloss, fId, fLocation, fNChildren, fNtrack, fPassed, fStatus, fTimeOfDecay, fTracks, TParticle::GetMass(), TVector3::Mag(), TParticle::SetMomentum(), and TMath::Sqrt().


Member Function Documentation

TPolyLine3D * MyParticle::AddTrack ( const TVector3 ,
Int_t   
)

Definition at line 185 of file MyParticle.cxx.

References TObjArray::Add(), TObjArray::At(), fNtrack, fTracks, TObjArray::GetLast(), TAttLine::SetLineColor(), TPolyLine3D::SetPoint(), TVector3::x(), TVector3::y(), and TVector3::z().

Referenced by MyEvent::AddParticle(), and SetNextPoint().

TPolyLine3D * MyParticle::AddTrack ( Double_t  ,
Double_t  ,
Double_t  ,
Int_t   
)

Definition at line 199 of file MyParticle.cxx.

References TObjArray::Add(), TObjArray::At(), fNtrack, fTracks, TObjArray::GetLast(), TAttLine::SetLineColor(), and TPolyLine3D::SetPoint().

Int_t MyParticle::GetId (  )  [inline]

Definition at line 54 of file MyParticle.h.

References fId.

Int_t MyParticle::GetStatus (  )  [inline]

Definition at line 55 of file MyParticle.h.

References fStatus.

Referenced by RootShower::Produce().

Int_t MyParticle::GetDecayType (  )  [inline]

Definition at line 56 of file MyParticle.h.

References fDecayType.

TVector3* MyParticle::GetpLocation (  )  [inline]

Definition at line 57 of file MyParticle.h.

References fLocation.

TVector3 MyParticle::GetvLocation (  )  [inline]

Definition at line 58 of file MyParticle.h.

References fLocation.

TVector3 MyParticle::GetvMoment (  )  [inline]

Definition at line 59 of file MyParticle.h.

References TParticle::Px(), TParticle::Py(), and TParticle::Pz().

Double_t MyParticle::GetPassed (  )  [inline]

Definition at line 60 of file MyParticle.h.

References fPassed.

Double_t MyParticle::GetELoss (  )  [inline]

Definition at line 61 of file MyParticle.h.

References fEloss.

Referenced by RootShower::OnOpenFile(), and RootShower::OnShowerProduce().

Double_t MyParticle::GetDecayLength (  )  [inline]

Definition at line 62 of file MyParticle.h.

References fDecayLength.

Int_t MyParticle::GetChildId ( Int_t  id  )  [inline]

Definition at line 63 of file MyParticle.h.

References fChild.

Referenced by RootShower::OnOpenFile(), and RootShower::OnShowerProduce().

Double_t MyParticle::GetTimeOfDecay (  )  [inline]

Definition at line 64 of file MyParticle.h.

References fTimeOfDecay.

Referenced by MyEvent::CheckDecayTime().

Int_t MyParticle::GetNChildren (  )  [inline]

Definition at line 65 of file MyParticle.h.

References fNChildren.

Int_t MyParticle::GetNTracks (  )  [inline]

Definition at line 66 of file MyParticle.h.

References fNtrack.

Referenced by RootShower::DistancetoPrimitive(), RootShower::OnOpenFile(), RootShower::OnShowerProduce(), and RootShower::OnShowSelected().

char * MyParticle::GetObjectInfo ( Int_t  px,
Int_t  py 
) const [virtual]

Reimplemented from TObject.

Definition at line 118 of file MyParticle.cxx.

References TParticle::Energy(), GetName(), info, and sprintf().

Referenced by RootShower::DistancetoPrimitive().

TPolyLine3D* MyParticle::GetTrack ( Int_t  at  )  const [inline]

Definition at line 68 of file MyParticle.h.

References TObjArray::At(), and fTracks.

Referenced by RootShower::DistancetoPrimitive(), RootShower::OnOpenFile(), RootShower::OnShowerProduce(), and RootShower::OnShowSelected().

const Char_t * MyParticle::GetName (  )  const [virtual]

Reimplemented from TParticle.

Definition at line 169 of file MyParticle.cxx.

References TParticle::GetPdgCode(), i, name, particle_def, and total_defs.

Referenced by MyEvent::Bremsstrahlung(), MyEvent::Decay(), GetObjectInfo(), RootShower::OnOpenFile(), MyEvent::PairCreation(), and RootShower::ShowInfos().

void MyParticle::SetId ( Int_t  id  )  [inline]

Definition at line 71 of file MyParticle.h.

References fId.

void MyParticle::SetNChildren ( Int_t  nb  )  [inline]

Definition at line 72 of file MyParticle.h.

References fNChildren.

Referenced by MyEvent::Bremsstrahlung(), MyEvent::Decay(), and MyEvent::PairCreation().

void MyParticle::SetStatus ( Int_t  stat  )  [inline]

Definition at line 73 of file MyParticle.h.

References fStatus.

Referenced by MyEvent::DeleteParticle(), and RootShower::Produce().

void MyParticle::SetDecayType ( Int_t  decay  )  [inline]

Definition at line 74 of file MyParticle.h.

References fDecayType.

Referenced by MyEvent::DefineDecay().

void MyParticle::SetTimeOfDecay ( Double_t  time  )  [inline]

Definition at line 75 of file MyParticle.h.

References fTimeOfDecay.

Referenced by MyEvent::Bremsstrahlung().

void MyParticle::SetLocation ( const TVector3 loc  )  [inline]

Definition at line 76 of file MyParticle.h.

References fLocation, TVector3::SetX(), TVector3::SetY(), TVector3::SetZ(), TVector3::x(), TVector3::y(), and TVector3::z().

Referenced by MyEvent::Move().

void MyParticle::SetLocation ( Double_t  lx,
Double_t  ly,
Double_t  lz 
) [inline]

Definition at line 78 of file MyParticle.h.

References fLocation, TVector3::SetX(), TVector3::SetY(), and TVector3::SetZ().

void MyParticle::SetMoment ( const TVector3 mom  ) 

Definition at line 128 of file MyParticle.cxx.

References TParticle::GetMass(), TVector3::Mag(), TParticle::SetMomentum(), and TMath::Sqrt().

Referenced by MyEvent::DEDX(), MyEvent::MagneticField(), and MyEvent::ScatterAngle().

void MyParticle::SetMoment ( const TVector3 mom,
Double_t  energy 
) [inline]

Definition at line 81 of file MyParticle.h.

References TParticle::SetMomentum(), TVector3::x(), TVector3::y(), and TVector3::z().

void MyParticle::SetNextPoint ( Int_t  color  ) 

Definition at line 213 of file MyParticle.cxx.

References AddTrack(), TObjArray::At(), fLocation, fNtrack, fTracks, TAttLine::GetLineColor(), TPolyLine3D::SetNextPoint(), TVector3::x(), TVector3::y(), and TVector3::z().

Referenced by MyEvent::DeleteParticle(), and MyEvent::Move().

void MyParticle::SetPassed ( Double_t  pass  )  [inline]

Definition at line 84 of file MyParticle.h.

References fPassed.

Referenced by MyEvent::Move().

void MyParticle::AddELoss ( Double_t  eloss  )  [inline]

Definition at line 85 of file MyParticle.h.

References fEloss.

Referenced by MyEvent::DEDX().

void MyParticle::SetDecayLength ( Double_t  len  )  [inline]

Definition at line 86 of file MyParticle.h.

References fDecayLength.

Referenced by MyEvent::DefineDecay().

void MyParticle::SetChild ( Int_t  id,
Int_t  child_id 
) [inline]

Definition at line 87 of file MyParticle.h.

References fChild.

Referenced by MyEvent::Bremsstrahlung(), MyEvent::Decay(), and MyEvent::PairCreation().

void MyParticle::GenerateTimeOfDecay (  ) 

Definition at line 141 of file MyParticle.cxx.

References TRandom::Exp(), fTimeOfDecay, TParticle::GetPDG(), TParticle::GetPdgCode(), gRandom, i, TParticlePDG::Lifetime(), particle_def, TMath::Sqrt(), and total_defs.

Referenced by MyEvent::Bremsstrahlung(), MyEvent::Decay(), MyEvent::Init(), and MyEvent::PairCreation().

void MyParticle::HighLight (  ) 

Definition at line 236 of file MyParticle.cxx.

References fTracks, TAttLine::GetLineColor(), gRootShower, gSystem, i, TSystem::ProcessEvents(), TIter::Reset(), TAttLine::SetLineColor(), TAttLine::SetLineWidth(), and RootShower::UpdateDisplay().

virtual void MyParticle::Delete ( Option_t  )  [inline, virtual]

Reimplemented from TObject.

Definition at line 92 of file MyParticle.h.

virtual void MyParticle::SetLineAttributes (  )  [inline, virtual]

Reimplemented from TAttLine.

Definition at line 93 of file MyParticle.h.

virtual void MyParticle::SetDrawOption ( Option_t  )  [inline, virtual]

Reimplemented from TObject.

Definition at line 94 of file MyParticle.h.


Member Data Documentation

Int_t MyParticle::fId [private]

Definition at line 33 of file MyParticle.h.

Referenced by GetId(), MyParticle(), and SetId().

Int_t MyParticle::fStatus [private]

Definition at line 34 of file MyParticle.h.

Referenced by GetStatus(), MyParticle(), and SetStatus().

Int_t MyParticle::fDecayType [private]

Definition at line 35 of file MyParticle.h.

Referenced by GetDecayType(), MyParticle(), and SetDecayType().

Int_t MyParticle::fNChildren [private]

Definition at line 36 of file MyParticle.h.

Referenced by GetNChildren(), MyParticle(), and SetNChildren().

TVector3* MyParticle::fLocation [private]

Definition at line 37 of file MyParticle.h.

Referenced by GetpLocation(), GetvLocation(), MyParticle(), SetLocation(), SetNextPoint(), and ~MyParticle().

Double_t MyParticle::fPassed [private]

Definition at line 38 of file MyParticle.h.

Referenced by GetPassed(), MyParticle(), and SetPassed().

Double_t MyParticle::fEloss [private]

Definition at line 39 of file MyParticle.h.

Referenced by AddELoss(), GetELoss(), and MyParticle().

Double_t MyParticle::fDecayLength [private]

Definition at line 40 of file MyParticle.h.

Referenced by GetDecayLength(), MyParticle(), and SetDecayLength().

Double_t MyParticle::fTimeOfDecay [private]

Definition at line 41 of file MyParticle.h.

Referenced by GenerateTimeOfDecay(), GetTimeOfDecay(), MyParticle(), and SetTimeOfDecay().

Int_t MyParticle::fChild[6] [private]

Definition at line 42 of file MyParticle.h.

Referenced by GetChildId(), MyParticle(), and SetChild().

Int_t MyParticle::fNtrack [private]

Definition at line 44 of file MyParticle.h.

Referenced by AddTrack(), GetNTracks(), MyParticle(), and SetNextPoint().

TObjArray* MyParticle::fTracks [private]

Definition at line 45 of file MyParticle.h.

Referenced by AddTrack(), GetTrack(), HighLight(), MyParticle(), SetNextPoint(), and ~MyParticle().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:31:17 2011 for ROOT_528-00b_version by  doxygen 1.5.1