Message: Re: Hadr03 ->custom scoring volume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Ok Re: Hadr03 ->custom scoring volume 

Forum: Event and Track Management
Re: Question Hadr03 ->custom scoring volume
Re: None Re: Hadr03 ->custom scoring volume (michel maire)
Re: Note Re: Hadr03 ->custom scoring volume
Re: None Re: Hadr03 ->custom scoring volume (michel maire)
Date: 11 Apr, 2017
From: <Synthex>

This is what I implemented in SteppingAction, and seems to work:

  // get volume of the current step
  G4LogicalVolume* volume 
    = aStep->GetPreStepPoint()->GetTouchableHandle()
  G4String volumeN = volume->GetName();
  G4cout<< "Volume de production----------------" << volumeN<< G4endl;  
 G4String scorN = "Exp Box";

 if (volumeN==scorN){

 //   G4cout << "SHOULD COUNT NOW" << G4endl;
  // count processes

scorN is the name of the sensitive logical volume.
I tried the method of example B1, checking if the volume is the fScoringVolume, but I get casting error with the RunManager. Comparing the 2 logical volume names (interaction and scoring) work.

thank you.

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

1 Disagree: Re: Hadr03 ->custom scoring volume   (Synthex - 11 Apr, 2017)
(_ None: Re: Hadr03 ->custom scoring volume   (michel maire - 12 Apr, 2017)
(_ Ok: Re: Hadr03 ->custom scoring volume   (Synthex - 13 Apr, 2017)
 Add Message Add Message
to: "Re: Hadr03 ->custom scoring volume"

 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 ]