Message: Re: New G4NeutroHPPhotonDist.cc G4NeutronHPVectro.cc&hh Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: New G4NeutroHPPhotonDist.cc G4NeutronHPVectro.cc&hh 

Keywords: G4NeutronHPPhotonDist G4NeutronHPVector
Forum: Hadronic Processes
Re: None New G4NeutroHPPhotonDist.cc G4NeutronHPVectro.cc&hh (Enrico Billi)
Re: None Re: New G4NeutroHPPhotonDist.cc G4NeutronHPVectro.cc&hh (Sylvia Studeny)
Date: 28 Feb, 2007
From: Sylvia Studeny <sylvia.studeny@gsf.de>

I found the error already by myself (maybe I should have looked more carefully):

G4NeutronHPVector.cc

*********************************
*********************************
*********************************

// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // // neutron_hp -- source file // J.P. Wellisch, Nov-1996 // A prototype of the low energy neutron transport model.

// ************ Pay attention here!!!!!!!

#include "G4NeutronHPVector.hh"

// ************ Pay attention here!!!!!!!

  // if the ranges do not match, constant extrapolation is used.
  G4NeutronHPVector & operator + (G4NeutronHPVector & left, G4NeutronHPVector & right)
  {
    G4NeutronHPVector * result = new G4NeutronHPVector;
    G4int j=0;
    G4double x;
    G4double y;
    G4int running = 0;
    for(G4int i=0; i<left.GetVectorLength(); i++)
    {
      while(j<right.GetVectorLeng
....

Somehow this editor seems to have "eaten" some carrige-returns, so #include "G4NeutronHPVector.hh" was commented out. When I changed this, everything is fine.

Sorry to have bothered you, Sylvia

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

1 None: Re: New G4NeutroHPPhotonDist.cc G4NeutronHPVectro.cc&hh   (Enrico Billi - 07 Mar, 2007)
 Add Message Add Message
to: "Re: New G4NeutroHPPhotonDist.cc G4NeutronHPVectro.cc&hh"

 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 ]