Message: Re: G4VVisPrim in Geant4.7.1 and G4VVisManager in Geant4.8.0 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: G4VVisPrim in Geant4.7.1 and G4VVisManager in Geant4.8.0 

Keywords: G4VVisPrim G4VVisManager
Forum: (Graphical) User Interfaces
Re: None G4VVisPrim in Geant4.7.1 and G4VVisManager in Geant4.8.0
Re: None Re: G4VVisPrim in Geant4.7.1 and G4VVisManager in Geant4.8.0 (John Allison)
Date: 30 Mar, 2006
From: <zhongwl@ihep.ac.cn>

Thank you for your reply.

In the simulation package I have now, there is a class (pmtEllipsoid) inherited from G4CSGSolid. It is used to construct a new ellipsoid solid to describe the geometry of a PMT. In order to create a Polyhedron object in the method G4Polyhedron *CreatPolyhedron() with the new ellipsoid shape:

G4Polyhedron* pmtEllipsoid::CreatePolyhedron () const
{
    return new pmtPolyhedronEllipsoid (fRx, fRy, fRz, fZCut1, fZCut2);
}

Another class which is inherited from G4Polyhedron is defined in class pmtEllipsoid:

class pmtPolyhedronEllipsoid : public G4Polyhedron {
 public:
  pmtPolyhedronEllipsoid(G4double rx, G4double ry, G4double rz, G4double ZCut1,
                        G4double ZCut2);
  virtual G4Visible& operator=(const G4Visible &from)
    { return G4Visible::operator = (from); }
  virtual G4VVisPrim& operator=(const G4VVisPrim &from)
    { return G4VVisPrim::operator = (from); }
};

pmtPolyhedronEllipsoid::pmtPolyhedronEllipsoid(G4double rx, G4double ry,
                                             G4double rz, G4double ZCut1,
                                             G4double ZCut2)
{
........
}

According to your explain, is it enough to get rid of the two lines code?

  virtual G4VVisPrim& operator=(const G4VVisPrim &from)
    { return G4VVisPrim::operator = (from); }

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

1 None: Re: G4VVisPrim in Geant4.7.1 and G4VVisManager in Geant4.8.0   (John Allison - 31 Mar, 2006)
(_ None: Re: G4VVisPrim in Geant4.7.1 and G4VVisManager in Geant4.8.0   (zhongwl@ihep.ac.cn - 31 Mar, 2006)
 Add Message Add Message
to: "Re: G4VVisPrim in Geant4.7.1 and G4VVisManager in Geant4.8.0"

 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 ]