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/G4PhysicsLinearVector.cc

    r850 r921  
    2525//
    2626//
    27 // $Id: G4PhysicsLinearVector.cc,v 1.12 2006/06/29 19:04:13 gunter Exp $
    28 // GEANT4 tag $Name: HEAD $
     27// $Id: G4PhysicsLinearVector.cc,v 1.14 2008/09/22 14:49:57 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-02-cand-01 $
    2929//
    3030//
     
    3434//  G4PhysicsLinearVector.cc
    3535//
    36 //  History:
    37 //    02 Dec. 1995, G.Cosmo : Structure created based on object model
    38 //    15 Feb. 1996, K.Amako : Implemented the 1st version
    39 //    01 Jul. 1996, K.Amako : Cache mechanism and hidden bin from the
    40 //                            user introduced.
    41 //    26 Sep. 1996, K.Amako : Constructor with only 'bin size' added.
    42 //    11 Nov. 2000, H.Kurashige : use STL vector for dataVector and binVector
    43 //    9  Mar. 2001, H.Kurashige : add PhysicsVector type and Retrieve
     36//  15 Feb 1996 - K.Amako : 1st version
    4437//
    4538//--------------------------------------------------------------------
     
    4841
    4942G4PhysicsLinearVector::G4PhysicsLinearVector()
    50   : dBin(0.), baseBin(0.)
     43  : G4PhysicsVector(), dBin(0.), baseBin(0.)
    5144{
    52   edgeMin = 0.0;
    53   edgeMax = 0.0;
    54   numberOfBin = 0;
    5545  type = T_G4PhysicsLinearVector;
    5646}
    5747
    5848G4PhysicsLinearVector::G4PhysicsLinearVector(size_t theNbin)
    59   : dBin(0.), baseBin(0.)
     49  : G4PhysicsVector(), dBin(0.), baseBin(0.)
    6050{
    6151  type = T_G4PhysicsLinearVector;
     
    6858  numberOfBin = theNbin;
    6959
    70   edgeMin = 0.;
    71   edgeMax = 0.;
    72 
    73   lastBin = INT_MAX;
    74   lastEnergy = -DBL_MAX;
    75   lastValue = DBL_MAX;
    76 
    7760  for (size_t i=0; i<=numberOfBin; i++)
    7861  {
     
    8467G4PhysicsLinearVector::G4PhysicsLinearVector(G4double theEmin,
    8568                                             G4double theEmax, size_t theNbin)
    86   : dBin((theEmax-theEmin)/theNbin),
     69  : G4PhysicsVector(),
     70    dBin((theEmax-theEmin)/theNbin),
    8771    baseBin(theEmin/dBin)
    8872{
     
    10589  edgeMax = binVector[numberOfBin-1];
    10690
    107   lastBin = INT_MAX;
    108   lastEnergy = -DBL_MAX;
    109   lastValue = DBL_MAX;
    11091
    11192
     
    123104  return success;
    124105}
     106
     107G4PhysicsLinearVector::G4PhysicsLinearVector(const G4PhysicsLinearVector& right)
     108  : G4PhysicsVector(right)
     109{
     110  dBin = right.dBin;
     111  baseBin = right.baseBin;
     112}
     113
     114G4PhysicsLinearVector&
     115G4PhysicsLinearVector::operator=(const G4PhysicsLinearVector& right)
     116{
     117  // Check assignment to self
     118  //
     119  if(this == &right) { return *this; }
     120
     121  DeleteData();
     122  CopyData(right);
     123
     124  dBin    = right.dBin;
     125  baseBin = right.baseBin;
     126  return *this;
     127}
Note: See TracChangeset for help on using the changeset viewer.