Ignore:
Timestamp:
Feb 16, 2009, 10:14:30 AM (15 years ago)
Author:
garnier
Message:

en test de gl2ps. Problemes de libraries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/global/management/src/G4PhysicsLnVector.cc

    r850 r921  
    2525//
    2626//
    27 // $Id: G4PhysicsLnVector.cc,v 1.15 2006/06/29 19:04:15 gunter Exp $
    28 // GEANT4 tag $Name: HEAD $
     27// $Id: G4PhysicsLnVector.cc,v 1.17 2008/09/22 14:49:57 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-02-cand-01 $
    2929//
    3030//
     
    3434//  G4PhysicsLnVector.cc
    3535//
    36 //  History:
    37 //    27 Apr. 1999, M.G. Pia: Created, copying from G4PhysicsLogVector
    38 //    11 Nov. 2000, H.Kurashige : use STL vector for dataVector and binVector
    39 //    9  Mar. 2001, H.Kurashige : add PhysicsVector type and Retrieve
     36//  27 Apr 1999 - M.G.Pia: Created from G4PhysicsLogVector
    4037//
    4138// --------------------------------------------------------------
     
    4441
    4542G4PhysicsLnVector::G4PhysicsLnVector()
    46   : dBin(0.), baseBin(0.)
     43  : G4PhysicsVector(), dBin(0.), baseBin(0.)
    4744{
    4845  type = T_G4PhysicsLnVector;
     
    5047
    5148G4PhysicsLnVector::G4PhysicsLnVector(size_t theNbin)
    52   : dBin(0.), baseBin(0.)
     49  : G4PhysicsVector(), dBin(0.), baseBin(0.)
    5350{
    5451  type = T_G4PhysicsLnVector;
     
    6158  numberOfBin = theNbin;
    6259
    63   edgeMin = 0.;
    64   edgeMax = 0.;
    65 
    66   lastBin = INT_MAX;
    67   lastEnergy = -DBL_MAX;
    68   lastValue = DBL_MAX;
    69 
    7060  for (size_t i=0; i<=numberOfBin; i++)
    7161  {
     
    7767G4PhysicsLnVector::G4PhysicsLnVector(G4double theEmin,
    7868                                     G4double theEmax, size_t theNbin)
    79   : dBin(std::log(theEmax/theEmin)/theNbin),
     69  : G4PhysicsVector(),
     70    dBin(std::log(theEmax/theEmin)/theNbin),
    8071    baseBin(std::log(theEmin)/dBin)
    8172{
     
    9788  edgeMin = binVector[0];
    9889  edgeMax = binVector[numberOfBin-1];
    99 
    100   lastBin = INT_MAX;
    101   lastEnergy = -DBL_MAX;
    102   lastValue = DBL_MAX;
    10390}
    10491
     
    116103  return success;
    117104}
     105
     106G4PhysicsLnVector::G4PhysicsLnVector(const G4PhysicsLnVector& right)
     107  : G4PhysicsVector(right)
     108{
     109  dBin = right.dBin;
     110  baseBin = right.baseBin;
     111}
     112
     113G4PhysicsLnVector&
     114G4PhysicsLnVector::operator=(const G4PhysicsLnVector& right)
     115{
     116  // Check assignment to self
     117  //
     118  if(this == &right) { return *this; }
     119
     120  DeleteData();
     121  CopyData(right);
     122
     123  dBin    = right.dBin;
     124  baseBin = right.baseBin;
     125  return *this;
     126}
Note: See TracChangeset for help on using the changeset viewer.