MyEvent Class Reference

#include <MyEvent.h>

Inheritance diagram for MyEvent:

TTask TObject TNamed TNamed TObject TObject TObject TObject List of all members.

Public Member Functions

 MyEvent ()
virtual ~MyEvent ()
void Clear (Option_t *option="")
void Reset (Option_t *option="")
void Init (Int_t id, Int_t first_particle, Double_t E_0, Double_t B_0)
void SetB (Double_t newB)
void SetNseg (Int_t n)
void SetHeader (Int_t, Int_t, TDatime, Int_t, Double_t)
MyParticleAddParticle (Int_t, Int_t, const TVector3 &, const TVector3 &)
Int_t Id ()
Int_t GetNparticles () const
Int_t GetNseg () const
Int_t GetNAlives ()
Int_t GetTotal ()
Int_t GetLast ()
Double_t GetB ()
MyDetectorGetDetector ()
EventHeaderGetHeader ()
TClonesArrayGetParticles ()
MyParticleGetLastParticle () const
MyParticleGetParticle (Int_t at) const
Int_t Action (Int_t)
Double_t BremsProb (Int_t)
Int_t Bremsstrahlung (Int_t)
Int_t CheckDecayTime (Int_t id)
void CheckMatter (Int_t id)
Int_t Decay (Int_t id)
void DefineDecay (Int_t)
void DeleteParticle (Int_t)
Int_t DEDX (Int_t)
Int_t FindFreeId (Int_t *)
void MagneticField (Int_t)
Int_t Move (Int_t, TVector3 &)
Double_t PairProb (Int_t)
Int_t PairCreation (Int_t id)
Int_t ParticleColor (Int_t)
void ScatterAngle (Int_t)
 MyEvent ()
 MyEvent (const char *name, const char *title)
virtual ~MyEvent ()
void Exec (Option_t *option="")

Private Attributes

Int_t fId
Int_t fTotalParticles
Int_t fLast
Int_t fAliveParticles
Int_t fNparticles
Int_t fNseg
Int_t fMatter
EventHeader fEvtHdr
Double_t fB
Double_t fEThreshold [16]
TClonesArrayfParticles
TRef fLastParticle
MyDetector fDetector

Static Private Attributes

static TClonesArrayfgParticles

Detailed Description

Definition at line 59 of file MyEvent.h.


Constructor & Destructor Documentation

MyEvent::MyEvent (  ) 

MyEvent::~MyEvent (  )  [virtual]

Definition at line 48 of file MyEvent.cxx.

References Clear().

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.


Member Function Documentation

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().

void MyEvent::Init ( Int_t  id,
Int_t  first_particle,
Double_t  E_0,
Double_t  B_0 
)

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]

Definition at line 84 of file MyEvent.h.

References fB.

void MyEvent::SetNseg ( Int_t  n  )  [inline]

Definition at line 85 of file MyEvent.h.

References fNseg.

void MyEvent::SetHeader ( Int_t  ,
Int_t  ,
TDatime  ,
Int_t  ,
Double_t   
)

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::Id (  )  [inline]

Definition at line 89 of file MyEvent.h.

References fId.

Int_t MyEvent::GetNparticles (  )  const [inline]

Definition at line 90 of file MyEvent.h.

References fNparticles.

Int_t MyEvent::GetNseg (  )  const [inline]

Definition at line 91 of file MyEvent.h.

References fNseg.

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]

Definition at line 94 of file MyEvent.h.

References fLast.

Referenced by RootShower::Produce().

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]

Definition at line 98 of file MyEvent.h.

References fParticles.

MyParticle* MyEvent::GetLastParticle (  )  const [inline]

Definition at line 99 of file MyEvent.h.

References fLastParticle, and TRef::GetObject().

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().

Int_t MyEvent::Action ( Int_t   ) 

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().

Double_t MyEvent::BremsProb ( Int_t   ) 

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().

Int_t MyEvent::Bremsstrahlung ( Int_t   ) 

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().

Int_t MyEvent::CheckDecayTime ( Int_t  id  ) 

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().

Int_t MyEvent::Decay ( Int_t  id  ) 

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().

Int_t MyEvent::DEDX ( Int_t   ) 

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().

Int_t MyEvent::FindFreeId ( Int_t  ) 

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().

Int_t MyEvent::Move ( Int_t  ,
TVector3  
)

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().

Double_t MyEvent::PairProb ( Int_t   ) 

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().

Int_t MyEvent::PairCreation ( Int_t  id  ) 

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().

Int_t MyEvent::ParticleColor ( Int_t   ) 

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]

Reimplemented from TTask.

Definition at line 168 of file MyTasks.cxx.


Member Data Documentation

Int_t MyEvent::fId [private]

Definition at line 62 of file MyEvent.h.

Referenced by Id(), and Init().

Int_t MyEvent::fTotalParticles [private]

Definition at line 63 of file MyEvent.h.

Referenced by FindFreeId(), GetTotal(), and Init().

Int_t MyEvent::fLast [private]

Definition at line 64 of file MyEvent.h.

Referenced by FindFreeId(), GetLast(), and Init().

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]

Definition at line 67 of file MyEvent.h.

Referenced by GetNseg(), and SetNseg().

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]

Definition at line 69 of file MyEvent.h.

Referenced by GetHeader(), and SetHeader().

Double_t MyEvent::fB [private]

Definition at line 70 of file MyEvent.h.

Referenced by Action(), GetB(), Init(), MagneticField(), and SetB().

Double_t MyEvent::fEThreshold[16] [private]

Definition at line 71 of file MyEvent.h.

Referenced by Init(), and ParticleColor().

TClonesArray* MyEvent::fParticles [private]

Definition at line 72 of file MyEvent.h.

Referenced by AddParticle(), GetParticle(), GetParticles(), and Init().

TRef MyEvent::fLastParticle [private]

Definition at line 73 of file MyEvent.h.

Referenced by AddParticle(), and GetLastParticle().

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]

Definition at line 76 of file MyEvent.h.


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