Message: the application of your own me. Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Angry the application of your own me. 

Keywords: field
Forum: Fields: Magnetic and Otherwise
Date: 03 Mar, 2005
From: <yelongchun2005>

Hi,i think i can get your help

 my question is how to use my own field.

class radialEfield is my own electic field,it is not UniformElectricField
the below  is my own field application
#include "radialEfield.hh"
#include "G4RunManager.hh"
  G4VSolid* counterSolid = new G4Tubs("counterTubs",0.,Radius,HalfWidthOfDec,0.,360.*deg);
  radialEfield* myElectricField =new radialEfield(650*volt,4.5*mm,0.02*mm);
  G4EqMagElectricField *myEquation =
                  new G4EqMagElectricField(myElectricField); 
  G4MagIntegratorStepper* myStepper = new G4ClassicalRK4(myEquation,8);
  G4MagInt_Driver* myIntgrDriver =
                  new G4MagInt_Driver(1.0e-3*mm, myStepper,
  G4ChordFinder* myChordFinder =
                  new G4ChordFinder(myIntgrDriver);
  G4FieldManager* pFieldMgr =
                  new G4FieldManager(myField,pChordFinder,true);
  G4LogicalVolume* counterLogical
    = new G4LogicalVolume(counterSolid,He4,"counterLogical",pFieldMgr,0,0);
when compine,
the error message:
in file included from...\geant4\geant4.6.0.p01\source\run\include\G4RunManager.hh 
                                    :69 :error:semicolon missing after declaration of'radialEfield'

in file included from...\geant4\geant4.6.0.p01\source\run\include\G4RunManager.hh
                                    :69:error:multiple types in one declaration
thank you,everyone!

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

1 Question: Re: the application of your own me.   (Peter Gumplinger - 04 Mar, 2005)
(_ Question: Re: the application of your own me.   (yelongchun2005 - 05 Mar, 2005)
(_ Warning: Re: the application of your own me.   (John Apostolakis - 07 Mar, 2005)
 Add Message Add Message
to: "the application of your own me."

 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 ]