Message: Re: Double_t against G4double Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Double_t against G4double 

Keywords: ROOT casting
Forum: Analysis
Re: Question Double_t against G4double (Sara Vecchio)
Date: 08 Jan, 2006
From: Klaus Grimm <Klaus Grimm>

A simple solution would be if you divide your Geant4 variables by their units, e.g.
 
// get total Energy of hit 
G4double   TotalEnergy     = aStep->GetTrack()->GetTotalEnergy();
Double_t  RTotalEnergy     = (Double_t) TotalEnergy/MeV;

  |{laus






Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 More: Re: Double_t against G4double   (Sara Vecchio - 09 Jan, 2006)
(_ Warning: Re: Double_t against G4double   (Sara Vecchio - 09 Jan, 2006)
 Add Message Add Message
to: "Re: Double_t against G4double"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]