#include <MyEvent.h>
Inheritance diagram for MyEvent:
Definition at line 59 of file MyEvent.h.
MyEvent::MyEvent | ( | ) |
MyEvent::~MyEvent | ( | ) | [virtual] |
MyEvent::MyEvent | ( | ) | [inline] |
Definition at line 22 of file MyTasks.cxx.
MyEvent::MyEvent | ( | const char * | name, | |
const char * | title | |||
) |
virtual MyEvent::~MyEvent | ( | ) | [inline, virtual] |
Definition at line 24 of file MyTasks.cxx.
void MyEvent::Clear | ( | Option_t * | option = "" |
) | [virtual] |
Reimplemented from TObject.
Definition at line 101 of file MyEvent.cxx.
References fMatter, and fNparticles.
Referenced by Init(), and ~MyEvent().
void MyEvent::Reset | ( | Option_t * | option = "" |
) |
Definition at line 111 of file MyEvent.cxx.
References fMatter, and fNparticles.
Referenced by Init().
Definition at line 56 of file MyEvent.cxx.
References TGListTree::AddItem(), AddParticle(), Clear(), MyDetector::ClearELoss(), EMass, fAliveParticles, fB, fDetector, fEThreshold, fId, fLast, fMatter, fNparticles, fParticles, fTotalParticles, gBaseLTI, MyParticle::GenerateTimeOfDecay(), MyDetector::GetMinY(), TObject::GetName(), GetParticle(), gEventListTree, gLTI, gTmpLTI, i, location, Reset(), TGListTree::SetToolTipItem(), TGListTreeItem::SetUserData(), and sprintf().
Referenced by RootShower::OnOpenFile(), RootShower::ProcessMessage(), RootShower::Produce(), and RootShower::RootShower().
void MyEvent::SetB | ( | Double_t | newB | ) | [inline] |
void MyEvent::SetNseg | ( | Int_t | n | ) | [inline] |
Definition at line 121 of file MyEvent.cxx.
References fEvtHdr, and EventHeader::Set().
Referenced by RootShower::Produce().
MyParticle * MyEvent::AddParticle | ( | Int_t | , | |
Int_t | , | |||
const TVector3 & | , | |||
const TVector3 & | ||||
) |
Definition at line 130 of file MyEvent.cxx.
References MyParticle::AddTrack(), CREATED, fLastParticle, fNparticles, fParticles, ParticleColor(), UNDEFINE, TVector3::x(), TVector3::y(), and TVector3::z().
Referenced by Bremsstrahlung(), Decay(), Init(), and PairCreation().
Int_t MyEvent::GetNparticles | ( | ) | const [inline] |
Int_t MyEvent::GetNseg | ( | ) | const [inline] |
Int_t MyEvent::GetNAlives | ( | ) | [inline] |
Definition at line 92 of file MyEvent.h.
References fAliveParticles.
Referenced by RootShower::Produce().
Int_t MyEvent::GetTotal | ( | ) | [inline] |
Definition at line 93 of file MyEvent.h.
References fTotalParticles.
Referenced by RootShower::DistancetoPrimitive(), RootShower::OnOpenFile(), RootShower::OnShowerProduce(), RootShower::OnShowSelected(), RootShower::ProcessMessage(), and RootShower::Produce().
Int_t MyEvent::GetLast | ( | ) | [inline] |
Double_t MyEvent::GetB | ( | ) | [inline] |
Definition at line 95 of file MyEvent.h.
References fB.
Referenced by RootShower::Produce(), and RootShower::ShowInfos().
MyDetector* MyEvent::GetDetector | ( | ) | [inline] |
Definition at line 96 of file MyEvent.h.
References fDetector.
Referenced by RootShower::RootShower(), and RootShower::ShowInfos().
EventHeader* MyEvent::GetHeader | ( | ) | [inline] |
Definition at line 97 of file MyEvent.h.
References fEvtHdr.
Referenced by RootShower::Produce(), and RootShower::ShowInfos().
TClonesArray* MyEvent::GetParticles | ( | ) | [inline] |
MyParticle* MyEvent::GetLastParticle | ( | ) | const [inline] |
MyParticle* MyEvent::GetParticle | ( | Int_t | at | ) | const [inline] |
Definition at line 100 of file MyEvent.h.
References TObjArray::At(), and fParticles.
Referenced by Action(), BremsProb(), Bremsstrahlung(), CheckDecayTime(), CheckMatter(), Decay(), DEDX(), DefineDecay(), DeleteParticle(), RootShower::DistancetoPrimitive(), Init(), MagneticField(), Move(), RootShower::OnOpenFile(), RootShower::OnShowerProduce(), RootShower::OnShowSelected(), PairCreation(), PairProb(), ParticleColor(), RootShower::Produce(), ScatterAngle(), and RootShower::ShowInfos().
Definition at line 149 of file MyEvent.cxx.
References ALIVE, ANTINEUTRINO_E, ANTINEUTRINO_MUON, ANTINEUTRINO_TAU, BREMS, Bremsstrahlung(), CheckDecayTime(), CheckMatter(), CONVERSION, CSpeed, DEAD, Decay(), DEDX(), DefineDecay(), DeleteParticle(), TParticle::Energy(), fAliveParticles, fB, fDetector, fMatter, MyDetector::GetdT(), GetParticle(), MagneticField(), Move(), NEUTRINO_E, NEUTRINO_MUON, NEUTRINO_TAU, PairCreation(), PHOTON, ScatterAngle(), and UNDEFINE.
Referenced by RootShower::Produce().
Definition at line 255 of file MyEvent.cxx.
References fDetector, fMatter, GetParticle(), MyDetector::GetX0(), gRandom, TMath::Log(), p, retval, and TRandom::Uniform().
Referenced by DefineDecay().
Definition at line 272 of file MyEvent.cxx.
References TGListTree::AddItem(), AddParticle(), ALIVE, DEAD, TParticle::Energy(), FindFreeId(), MyParticle::GenerateTimeOfDecay(), TParticle::GetMass(), MyParticle::GetName(), GetParticle(), gEventListTree, gLTI, gTmpLTI, ROOT::Math::Cephes::P, PHOTON, ratio, MyParticle::SetChild(), TParticle::SetFirstMother(), MyParticle::SetNChildren(), MyParticle::SetTimeOfDecay(), TGListTree::SetToolTipItem(), TGListTreeItem::SetUserData(), and sprintf().
Referenced by Action().
Definition at line 333 of file MyEvent.cxx.
References CSpeed, ELECTRON, GetParticle(), MyParticle::GetTimeOfDecay(), PHOTON, and POSITRON.
Referenced by Action().
void MyEvent::CheckMatter | ( | Int_t | id | ) |
Definition at line 352 of file MyEvent.cxx.
References TGeoManager::FindNode(), fMatter, TGeoNode::GetNumber(), GetParticle(), gGeoManager, x, and y.
Referenced by Action().
Definition at line 364 of file MyEvent.cxx.
References TMath::Abs(), TGListTree::AddItem(), AddParticle(), TDecayChannel::BranchingRatio(), CREATED, DEAD, TParticlePDG::DecayChannel(), TParticle::Energy(), FindFreeId(), TGenPhaseSpace::Generate(), MyParticle::GenerateTimeOfDecay(), TGenPhaseSpace::GetDecay(), TParticle::GetMass(), MyParticle::GetName(), GetParticle(), TParticle::GetPDG(), gEventListTree, gLTI, gRandom, gTmpLTI, i, TDecayChannel::NDaughters(), TParticlePDG::NDecayChannels(), p, MyParticle::SetChild(), TGenPhaseSpace::SetDecay(), TParticle::SetFirstMother(), MyParticle::SetNChildren(), TGListTree::SetToolTipItem(), TGListTreeItem::SetUserData(), sprintf(), UNDEFINE, and TRandom::Uniform().
Referenced by Action().
void MyEvent::DefineDecay | ( | Int_t | ) |
Definition at line 442 of file MyEvent.cxx.
References BREMS, BremsProb(), CONVERSION, ELECTRON, GetParticle(), PairProb(), PHOTON, POSITRON, MyParticle::SetDecayLength(), MyParticle::SetDecayType(), and STABLE.
Referenced by Action().
void MyEvent::DeleteParticle | ( | Int_t | ) |
Definition at line 481 of file MyEvent.cxx.
References MyDetector::AddELoss(), DEAD, fAliveParticles, fDetector, GetParticle(), MyParticle::SetNextPoint(), and MyParticle::SetStatus().
Referenced by Action().
Definition at line 499 of file MyEvent.cxx.
References MyParticle::AddELoss(), ALIVE, CSpeed, DEAD, TParticle::Energy(), fDetector, fMatter, ROOT::Math::Cephes::gamma(), MyDetector::GetdT(), MyDetector::GetI(), GetParticle(), MyDetector::GetPreconst(), TMath::Log(), MAX_GAMMA, TParticle::P(), MyParticle::SetMoment(), TParticle::SetMomentum(), and TMath::Sqrt().
Referenced by Action().
Definition at line 565 of file MyEvent.cxx.
References ALIVE, fLast, and fTotalParticles.
Referenced by Bremsstrahlung(), Decay(), and PairCreation().
void MyEvent::MagneticField | ( | Int_t | ) |
Definition at line 576 of file MyEvent.cxx.
References TMath::Abs(), TParticlePDG::Charge(), CSpeed, f2, fB, fDetector, fMatter, MyDetector::GetdT(), GetParticle(), TParticle::GetPDG(), TParticle::P(), TParticle::Px(), TParticle::Py(), TParticle::Pz(), MyParticle::SetMoment(), TMath::Sin(), and v1.
Referenced by Action().
Definition at line 612 of file MyEvent.cxx.
References ALIVE, ANTINEUTRINO_E, ANTINEUTRINO_MUON, ANTINEUTRINO_TAU, DEAD, ROOT::Math::gv_detail::dist(), fDetector, MyDetector::GetMaxX(), MyDetector::GetMaxY(), MyDetector::GetMaxZ(), MyDetector::GetMinX(), MyDetector::GetMinY(), MyDetector::GetMinZ(), GetParticle(), TParticle::GetPdgCode(), NEUTRINO_E, NEUTRINO_MUON, NEUTRINO_TAU, ParticleColor(), PHOTON, MyParticle::SetLocation(), MyParticle::SetNextPoint(), MyParticle::SetPassed(), x, and y.
Referenced by Action().
Definition at line 644 of file MyEvent.cxx.
References EMass, fDetector, fMatter, GetParticle(), MyDetector::GetX0(), gRandom, TMath::Log(), p, and TRandom::Uniform().
Referenced by DefineDecay().
Definition at line 660 of file MyEvent.cxx.
References TGListTree::AddItem(), AddParticle(), ALIVE, DEAD, ELECTRON, EMass, TParticle::Energy(), FindFreeId(), TGenPhaseSpace::Generate(), MyParticle::GenerateTimeOfDecay(), TGenPhaseSpace::GetDecay(), MyParticle::GetName(), GetParticle(), gEventListTree, gLTI, gTmpLTI, p, POSITRON, MyParticle::SetChild(), TGenPhaseSpace::SetDecay(), TParticle::SetFirstMother(), MyParticle::SetNChildren(), TGListTree::SetToolTipItem(), TGListTreeItem::SetUserData(), and sprintf().
Referenced by Action().
Definition at line 733 of file MyEvent.cxx.
References fEThreshold, gColIndex, GetParticle(), and i.
Referenced by AddParticle(), and Move().
void MyEvent::ScatterAngle | ( | Int_t | ) |
Definition at line 746 of file MyEvent.cxx.
References ROOT::Math::Cephes::beta(), TMath::Cos(), TVector3::Cross(), fDetector, fMatter, GetParticle(), MyDetector::GetTheta0(), gRandom, TMath::Log(), ROOT::Math::Cephes::P, TParticle::P(), p1(), p2(), TMath::Pi(), MyParticle::SetMoment(), TMath::Sin(), TMath::Sqrt(), and TRandom::Uniform().
Referenced by Action().
void MyEvent::Exec | ( | Option_t * | option = "" |
) | [virtual] |
Int_t MyEvent::fId [private] |
Int_t MyEvent::fTotalParticles [private] |
Int_t MyEvent::fLast [private] |
Int_t MyEvent::fAliveParticles [private] |
Definition at line 65 of file MyEvent.h.
Referenced by Action(), DeleteParticle(), GetNAlives(), and Init().
Int_t MyEvent::fNparticles [private] |
Definition at line 66 of file MyEvent.h.
Referenced by AddParticle(), Clear(), GetNparticles(), Init(), and Reset().
Int_t MyEvent::fNseg [private] |
Int_t MyEvent::fMatter [private] |
Definition at line 68 of file MyEvent.h.
Referenced by Action(), BremsProb(), CheckMatter(), Clear(), DEDX(), Init(), MagneticField(), PairProb(), Reset(), and ScatterAngle().
EventHeader MyEvent::fEvtHdr [private] |
Double_t MyEvent::fB [private] |
Double_t MyEvent::fEThreshold[16] [private] |
TClonesArray* MyEvent::fParticles [private] |
Definition at line 72 of file MyEvent.h.
Referenced by AddParticle(), GetParticle(), GetParticles(), and Init().
TRef MyEvent::fLastParticle [private] |
MyDetector MyEvent::fDetector [private] |
Definition at line 74 of file MyEvent.h.
Referenced by Action(), BremsProb(), DEDX(), DeleteParticle(), GetDetector(), Init(), MagneticField(), Move(), PairProb(), and ScatterAngle().
TClonesArray* MyEvent::fgParticles [static, private] |