Message: Re: Again Tracking help !! Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Again Tracking help !! 

Keywords: TestEm4,energy deposition
Forum: Event and Track Management
Re: None Tracking help !! (vivek)
Re: None Re: Tracking help !! (michel maire)
Date: 29 Jun, 2007
From: vivek <>

hi again,
in stepping action i did
 G4VPhysicalVolume *volume

 G4double EdepStep = aStep->GetTotalEnergyDeposit();

 if (volume==detector->GetTin_tube1())// energy deposition in Tin_det1

   if (EdepStep > 0.) eventAction->addEdep(EdepStep);
where GetTin_tube1() returns the physical volume of tin segment 1.However 
the step
 if (volume==detector->GetTin_tube1())
is not working and it doesn't generate a single event.
All the rest steps are workign fine because if i comment out the above 
volume checking line,then i do get the tootal energy deposited.So there has
to be something wrong with the if statement checking the volumes. Can 
someone quickly help me out on this.
thanks in advance

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

 Add Message Add Message
to: "Re: Again Tracking help !!"

 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 ]