Message: Negative CopyNoZ in ComputeMaterial using NestedParam and Magnetic Field Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Negative CopyNoZ in ComputeMaterial using NestedParam and Magnetic Field 

Forum: Geometry
Date: 10 Jul, 2012
From: Youming Yang <Youming Yang>

Hello again Geant Community,

My ComputeMaterial portion of my Nested Parameterisation is being called with a negative CopyNoZ. This only occurs when I enable a magnetic field, in an otherwise identical voxelized geometry with the same inputs.

It seems to still have reasonable replicanumbers numbers for the first (planar slab) and second (voxelized rod) replicas, but the very last z'th voxel copyNoZ=-1. This throws off my computematerials mapping by quite a bit.

I am wondering if there is a reason for this occuring that could be related to the magnetic field? I implemented that via:

void ctgeoDetectorConstruction::SetMagField(G4ThreeVector Bfield)
{
  //apply a global uniform magnetic field
  G4FieldManager* fieldMgr 
   = G4TransportationManager::GetTransportationManager()->GetFieldManager();

  if (magField) delete magField;	//delete the existing magn field

      magField = new G4UniformMagField(Bfield*tesla);        
      fieldMgr->SetDetectorField(magField);
      fieldMgr->CreateChordFinder(magField);
}

which is called during Construct()

Thanks, Ming

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

1 None: Re: Negative CopyNoZ in ComputeMaterial using NestedParam and Magnetic Field   (Youming Yang - 13 Jul, 2012)
(_ None: Re: Negative CopyNoZ in ComputeMaterial using NestedParam and Magnetic Field   (John Apostolakis - 15 Jul, 2012)
 Add Message Add Message
to: "Negative CopyNoZ in ComputeMaterial using NestedParam and Magnetic Field"

 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 ]