From a7e55c80614a5ac7d23aa5b0e32afb05da8430f9 Mon Sep 17 00:00:00 2001 From: morsch Date: Fri, 6 Dec 2002 12:41:29 +0000 Subject: [PATCH] Mess from last merge cleaned up. --- TFluka/TFluka.cxx | 584 +--------------------------------------------- 1 file changed, 3 insertions(+), 581 deletions(-) diff --git a/TFluka/TFluka.cxx b/TFluka/TFluka.cxx index c3631df5a1e..b2ececcae8e 100644 --- a/TFluka/TFluka.cxx +++ b/TFluka/TFluka.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.8 2002/12/06 12:28:44 morsch +Region to media mapping corrected and improved. + Revision 1.7 2002/12/06 12:21:32 morsch User stepping methods added (E. Futo) @@ -499,589 +502,8 @@ Int_t TFluka::PDGFromId(Int_t id) const Int_t intfluka = GetFlukaIPTOKP(id); //MPKDHA() goes from internal to PDG return mpdgha(intfluka); - -} -<<<<<<< TFluka.cxx - - - -//_____________________________________________________________________________ -// methods for step management -//____________________________________________________________________________ -// -// dynamic properties -// -void TFluka::TrackPosition(TLorentzVector& position) const -{ -// Return the current position in the master reference frame of the -// track being transported -// TRACKR.atrack = age of the particle -// TRACKR.xtrack = x-position of the last point -// TRACKR.ytrack = y-position of the last point -// TRACKR.ztrack = z-position of the last point - position.SetX(TRACKR.xtrack[TRACKR.ntrack]); - position.SetY(TRACKR.ytrack[TRACKR.ntrack]); - position.SetZ(TRACKR.ztrack[TRACKR.ntrack]); - position.SetT(TRACKR.atrack); -} - -void TFluka::TrackMomentum(TLorentzVector& momentum) const -{ -// Return the direction and the momentum (GeV/c) of the track -// currently being transported -// TRACKR.ptrack = momentum of the particle (not always defined, if -// < 0 must be obtained from etrack) -// TRACKR.cx,y,ztrck = direction cosines of the current particle -// TRACKR.etrack = total energy of the particle -// TRACKR.jtrack = identity number of the particle -// PAPROP.am[TRACKR.jtrack] = particle mass in gev - if (TRACKR.ptrack >= 0) { - momentum.SetPx(TRACKR.ptrack*TRACKR.cxtrck); - momentum.SetPy(TRACKR.ptrack*TRACKR.cytrck); - momentum.SetPz(TRACKR.ptrack*TRACKR.cztrck); - momentum.SetE(TRACKR.etrack); - return; - } - else { - Double_t p = sqrt(TRACKR.etrack*TRACKR.etrack - PAPROP.am[TRACKR.jtrack]*PAPROP.am[TRACKR.jtrack]); - momentum.SetPx(p*TRACKR.cxtrck); - momentum.SetPy(p*TRACKR.cytrck); - momentum.SetPz(p*TRACKR.cztrck); - momentum.SetE(TRACKR.etrack); - return; - } -} - -Double_t TFluka::TrackStep() const -{ -// Return the length in centimeters of the current step -// TRACKR.ctrack = total curved path - return TRACKR.ctrack; -} - -Double_t TFluka::TrackLength() const -{ -// It is wrong -// should be the sum of all steps starting from the beginning of the track -// for the time being returns only the length in centimeters of the current step - return TRACKR.ctrack; -} - -Double_t TFluka::TrackTime() const -{ -// Return the current time of flight of the track being transported -// TRACKR.atrack = age of the particle - return TRACKR.atrack; -} - -Double_t TFluka::Edep() const -{ -// Energy deposition -// if TRACKR.ntrack = 0, TRACKR.mtrack = 0: -// -->local energy deposition (the value and the point are not recorded in TRACKR) -// but in the variable "rull" of the procedure "endraw.cxx" -// if TRACKR.ntrack > 0, TRACKR.mtrack = 0: -// -->no energy loss along the track -// if TRACKR.ntrack > 0, TRACKR.mtrack > 0: -// -->energy loss distributed along the track -// TRACKR.dtrack = energy deposition of the jth deposition even - if (TRACKR.ntrack == 0 && TRACKR.mtrack == 0) - return fRull; - else { - Double_t sum = 0; - for ( Int_t j=0;j