Message: Re: Simulation freezes, crashes Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: Simulation freezes, crashes 

Forum: Event and Track Management
Re: None Simulation freezes, crashes (Carlos Carrapico)
Re: None Re: Simulation freezes, crashes (Marc Verderi)
Date: 04 Feb, 2010
From: Carlos Carrapico <Carlos Carrapico>

Thanks for the fast answer.

The code I'm using was indeed wrote by another person.

The sensitive volume is described like this:

In file Crystal.cc

******************************************************* The crystal:

  G4Polyhedra* solidBaF2Pent = new G4Polyhedra("BaF2Pent",.....................);

  G4Tubs* solidShapingBaF2 = new G4Tubs("ShapeBaF2",.............................);

  G4IntersectionSolid* solidShapedBaF2Pent = new G4IntersectionSolid("InterP",solidBaF2Pent , solidShapingBaF2);

  G4LogicalVolume* logicBaF2Pent = new G4LogicalVolume(solidShapedBaF2Pent,BaF2,"BaF2Pent");

******************************************************* The carbon capsule:

  G4Tubs* solidShapingCFiberCapsule = new G4Tubs("ShapeCFiberCapsule",............................);

  G4Polyhedra* solidCFiberCapsulePent = new G4Polyhedra("CFiberCapsulePent",........................);

  G4IntersectionSolid* solidShapedCFiberCapsulePent =  
    new G4IntersectionSolid("InterCFiberCapP",solidCFiberCapsulePent , solidShapingCFiberCapsule, 0, ShapingCFiberCapsuleTrans3);

  G4LogicalVolume *logicCFiberCapsulePent = new G4LogicalVolume(solidShapedCFiberCapsulePent,CFiber,"CFiberCapsulePent");

******************************************************* The Aluminum-Teflon:

  G4Polyhedra* solidAlTeflonCapsulePent = new G4Polyhedra("AlTeflonCapsulePent",..................................);

  G4Tubs* solidShapingAlTeflonCapsule = new G4Tubs("ShapeAlTeflonCapsule",.......................................);

  G4IntersectionSolid* solidShapedAlTeflonCapsulePent =  new G4IntersectionSolid("InterAlTeflonCapP",solidAlTeflonCapsulePent, 
							     solidShapingAlTeflonCapsule, 0, ShapingAlTeflonCapsuleTrans3);

  G4LogicalVolume* logicAlTeflonCapsulePent = new G4LogicalVolume(solidShapedAlTeflonCapsulePent,AlTeflon,"AlTeflonCapsulePent");

******************************************************* The Placement and Assembly:

  new G4PVPlacement(0, positionAlTeflonCapsulePent, logicAlTeflonCapsulePent,"AlTeflonCapCrystalP"
                     , logicCFiberCapsulePent, false, 0, true);

  new G4PVPlacement(0, positionBaF2Pent, logicBaF2Pent,"CrystalP", logicAlTeflonCapsulePent, false, 0, true);

   PentAssemb->AddPlacedVolume(logicCFiberCapsulePent,transPentCryst2,0);

******************************************************* In file DetectorConstruction.cc *******************************************************

G4AssemblyVolume *PentAssemb = new G4AssemblyVolume();

Crystals(PentAssemb, HexaAssemb);

PentAssemb->MakeImprint(logicWorld,....................);

Best regards and thanks for the attention, Carlos Carrapiço

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

1 None: Re: Simulation freezes, crashes   (Marc Verderi - 04 Feb, 2010)
(_ More: Re: Simulation freezes, crashes   (Carlos Carrapico - 04 Feb, 2010)
 Add Message Add Message
to: "Re: Simulation freezes, crashes"

 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 ]