Message: Tracking Help. Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Tracking Help.  

Forum: Event and Track Management
Date: 29 Jun, 2007
From: vivek <viveksingh.iitkgp@gmail.com>

Hi, i followed the same source code as given in example N03 and did the following in my code
in stepping action i did
*****************************************************
 G4VPhysicalVolume *volume
   =aStep->GetPreStepPoint()->GetTouchableHandle()->GetVolume();

 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 in the same way as physiAbsorber is returned in N03.
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. Is this beacuse of some class type mismatch 
(like objects and pointers).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: "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 ]