Message: Re: Still problem with BeamOn Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Still problem with BeamOn 

Forum: Geometry
Re: Question Still problem with BeamOn (Prasanna Rajbhandari)
Date: 09 Jul, 2012
From: John Apostolakis <John Apostolakis>

Dear Prasanna,

It seems that the problem comes from the definition of this replica:

    new G4PVReplica("Hole Layer", logicHoleLayer, logicAbsPlate, kYAxis, holeLayerN, holeLayerW,0);

It uses the following constructor

    G4PVReplica(const G4String& pName,
                      G4LogicalVolume* pLogical,
                      G4LogicalVolume* pMother,
                const EAxis pAxis,
                const G4int nReplicas,
                const G4double width,
                const G4double offset=0);

The definition of G4PVReplica means that
   the volume pMother ( logicAbsPlate => solidAbsPlate ) is sliced into  *nReplicas* pieces
   the size of these pieces in the Axis pAxis (=kYAxis)  must correspond exactly with the dimensions of the solid of pLogical ( = logicHoleLayer ) divided but *nReplicas*.

This does not appear to be the case:
        G4double halfGapX = 1.*m;
        G4double halfGapY = 1.*m;                               //    **********  This is LARGE
        G4double halfGapZ = airThickness/2.0;
G4Box*  solidAirPlate = new G4Box(name2, halfGapX, halfGapY, halfGapZ);

...
                G4double holeLayerN =10;  // 15.*cm*2./(75.*um);
                G4double holeLayerW = 75.*um;
  
The pieces into which you slice the mother volume must fill the replica exactly.  
So in this case 
      ( halfGapY * 2)   * holeLayerN      must equal      halfAbsY j   ( = 1.*m ) 
and it does not.

In case you get a similar error, I suggest to comment out parts of the geometry until you identify which additional volume created it (in case it is not reported.)  Also please include the text of the problem you have experienced in your posting.

I hope that this helps you to correct this issue.

John
===================================================
John Apostolakis, SFT (SoFTware) Group, PH Department, CERN
Email:  john.apostolakis@cern.ch       Office Tel:  +41-22-767-7239
------------------------------------------------------------------------------------------

On Jul 9, 2012, at 5:59 PM, Prasanna Rajbhandari wrote:

> 
> *** Discussion title: Geometry
> 
> This is my Detector Contruction files.
>   Attachment:
>      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2012/07/09/08.59-20295-DetectorConstruction.cc
> 
> Still having this trouble.
> 
>      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2012/07/09/08.59-81288-t_2012-07-06_14.58.07.png
> 
> -------------------------------------------------------------
> Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at: 
> http://hypernews.slac.stanford.edu/HyperNews/geant4/get/geometry/1204.html 

 Add Message Add Message
to: "Re: Still problem with BeamOn"

 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 ]