Message: Re: Problem with sensitivity of mother to doughter volumes Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Problem with sensitivity of mother to doughter volumes  

Keywords: Doughter volume is sensitive, but only for last mother volume layer. Problem with pointers?
Forum: Hits, Digitization and Pileup
Re: Question Problem with sensitivity of mother to doughter volumes (Petr Mikes)
Date: 24 Nov, 2005
From: Makoto Asai <Makoto Asai>

Your code looks fine except one line.
> //----------------------------------------------------------
> solidLayerAll = new G4Box("Layer_All", LayerThicknessAll/2, 
> CalorSizeYZ/2,CalorSizeYZ/2);
> logicLayerAll = new G4LogicalVolume(solidLayerAll, 
> defaultMaterial,"Layer_All");
> for (int i = 0; i<NbOfLayers1; i++)
> {
> posLayer = - i*LayerThicknessAll + CalorThickness/2 - 
> LayerThicknessAll/2;
> physiLayerAll = new G4PVPlacement(0,G4ThreeVector(posLayer,0,0),
>                                  logicLayerAll,
>                                  "Layer_All",
>                                  logicCalor,
>                                  false,
>                                  0);
> }
> //--------------------------------------------------------
Here, the last argument should not be zero but "i". This error
might cause your problem when you got the copy number of 
"Layer_All".

If this is not the case, please confirm that :
1) Your geometry is correctly implemented. You may want to
visualize your geometry to see, and/or check any unexpected
overlap with geometry checking tools provided such as DAVID.
2) Check your "EMcalorimeter" implementation. How you could
identify your sensitive detector was set only to the last
layer?

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

1 Question: Re: Problem with sensitivity of mother to doughter volumes   (Petr Mikes - 28 Nov, 2005)
 Add Message Add Message
to: "Re: Problem with sensitivity of mother to doughter volumes "

 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 ]