#include <MyParticle.h>
Inheritance diagram for MyParticle:
Definition at line 30 of file MyParticle.h.
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.
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().
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] |
Int_t MyParticle::GetStatus | ( | ) | [inline] |
Definition at line 55 of file MyParticle.h.
References fStatus.
Referenced by RootShower::Produce().
Int_t MyParticle::GetDecayType | ( | ) | [inline] |
TVector3* MyParticle::GetpLocation | ( | ) | [inline] |
TVector3 MyParticle::GetvLocation | ( | ) | [inline] |
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] |
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 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] |
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().
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] |
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().
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().
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] |
void MyParticle::AddELoss | ( | Double_t | eloss | ) | [inline] |
void MyParticle::SetDecayLength | ( | Double_t | len | ) | [inline] |
Definition at line 86 of file MyParticle.h.
References fDecayLength.
Referenced by MyEvent::DefineDecay().
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] |
virtual void MyParticle::SetLineAttributes | ( | ) | [inline, virtual] |
virtual void MyParticle::SetDrawOption | ( | Option_t * | ) | [inline, virtual] |
Int_t MyParticle::fId [private] |
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] |
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().