Problem 625 - Allow subclassing of G4VCrossSectionhandler
Summary: Allow subclassing of G4VCrossSectionhandler
Status: CLOSED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/electromagnetic/lowenergy (show other problems)
Version: 6.1
Hardware: All All
: P2 enhancement
Assignee: Maria.Grazia.Pia
URL:
Depends on:
Blocks:
 
Reported: 2004-05-18 07:25 CEST by marcus.h.mendenhall
Modified: 2008-02-27 19:17 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description marcus.h.mendenhall 2004-05-18 07:25:16 CEST
In the process of developing a process for handling screened Coulomb scattering, I needed to use
G4VCrossSectionhandler, but to read data ibto it from another source than the file tree it expects.
When I went to subclass it to override LoadData(), I discovered that the data arrays it generates are
classed as private.  If it would not break anyone else's plans, is there any reason why the last section of
the heasder file G4VCrossSectionhandler.hh cannot be modified to look like:

protected:

  // Hide copy constructor and assignment operator
  G4VCrossSectionHandler(const G4VCrossSectionHandler&);
  G4VCrossSectionHandler & operator=(const G4VCrossSectionHandler &right);

  G4VDataSetAlgorithm* interpolation;

  G4double eMin;
  G4double eMax;
  G4int nBins;

  G4double unit1;
  G4double unit2;

  G4int zMin;
  G4int zMax;

  G4DataVector activeZ;

  std::map<G4int,G4VEMDataSet*,std::less<G4int> > dataMap;

  std::vector<G4VEMDataSet*>* crossSections;

instead of having this stuff all private?

Thanks in advance.

Marcus Mendenhall
Comment 1 Maria.Grazia.Pia 2004-06-25 04:58:59 CEST
Analysis and design is handled in Geant4 Low Energy Electromagnetic Physics
Working Group as a controlled process. If you have new user requirements, that
are not satisfied by the present code, please submit them to us, so that we can
handle them according to a controlled software process. Please note that no
design modifications take place just as quick changes proposed in a Problem
Report, but they are subject to planned design iterations.
Best wishes,
Maria Grazia Pia