Message: Re: Unused G4VPhysicalVolume variable Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Unused G4VPhysicalVolume variable 

Keywords: geometry unused variable
Forum: Geometry
Re: Question Unused G4VPhysicalVolume variable (Gabriel Barros)
Date: 16 Apr, 2007
From: John Allison <John Allison>

When a physical volume is created it is automatically registered, so you never need the name. To eliminate the warning messages, simply do without the local pointer Cell_phys. Replace

  G4VPhysicalVolume* Cell_phys
    = new G4PVPlacement(0,G4ThreeVector(),Cell_log,"Cell_phys",

simply by

  new G4PVPlacement(0,G4ThreeVector(),Cell_log,"Cell_phys",nwall_log,false,0);

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

 Add Message Add Message
to: "Re: Unused G4VPhysicalVolume variable"

 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 ]