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

Warning Re: Double_t against G4double 

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

Sorry for the error: the code was:


if (lifetime > 0.) //list only unstable nuclei!
	 G4double Z = ion->GetAtomicNumber();
         G4double A = ion->GetAtomicMass();
         G4ThreeVector position = track->GetPosition();
	 G4cout<<"Z "<<Z<<", A "<<A<<", position "<<position<<";"<<G4endl;

	 fEvent->Event=(Double_t) (event_id/MeV);     
	 fEvent->Nz = (Double_t) (Z/MeV);
	 fEvent->Na = (Double_t) (A/MeV);
	 fEvent->x  = (Double_t) (position.x()/cm);
	 fEvent->y  = (Double_t) (position.y()/cm);
	 fEvent->z  = (Double_t) (position.z()/cm);



results were the right ones.

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

 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 ]