Ignore:
Timestamp:
Jun 18, 2010, 11:42:07 AM (14 years ago)
Author:
garnier
Message:

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/cascade/cascade/src/G4CascadeKzeroNChannel.cc

    r962 r1315  
    2828
    2929namespace {
    30 
    31   // Total cross section as a function of kinetic energy
    32   G4double k0ntot[31];
    33  
    34   // Multiplicities as a function of kinetic energy
    35   G4double k0nMultiplicities[6][31];
    36 
    37   const G4int k0nindex[6][2] =
    38     {{0, 1}, {1, 5}, {5,15}, {15,34}, {34,62}, {62,100}};
    39 
    4030  // Outgoing particle types of a given multiplicity
    4131
    42   const G4int k0n2bfs[1][2] =
     32  static const G4int k0n2bfs[1][2] =
    4333    {{2,15}};
    4434
    45   const G4int k0n3bfs[4][3] =
     35  static const G4int k0n3bfs[4][3] =
    4636    {{2,7,15}, {2,5,11}, {1,5,15}, {15,15,21}};
    4737
    48   const G4int k0n4bfs[10][4] =
     38  static const G4int k0n4bfs[10][4] =
    4939    {{2,7,7,15},  {1,5,5,11},  {2,5,7,11},  {1,5,7,15},  {2,3,5,15},
    5040     {1,13,15,15},{2,11,13,15},{2,15,15,17},{7,15,15,21},{5,11,15,21}};
    5141
    52   const G4int k0n5bfs[19][5] =
     42  static const G4int k0n5bfs[19][5] =
    5343    {{2,7,7,7,15},   {1,5,5,7,11},   {2,5,7,7,11},   {2,3,5,5,11},
    5444     {1,5,7,7,15},   {1,3,5,5,15},   {2,3,5,7,15},   {1,7,13,15,15},
     
    5747     {5,5,11,11,21}, {5,7,11,15,21}, {3,5,15,15,21}};
    5848
    59   const G4int k0n6bfs[28][6] =
     49  static const G4int k0n6bfs[28][6] =
    6050    {{2,7,7,7,7,15},   {1,5,5,7,7,11},   {1,3,5,5,5,11},
    6151     {2,5,7,7,7,11},   {2,3,5,5,7,11},   {1,5,7,7,7,15},
     
    6959     {3,5,7,15,15,21}};
    7060 
    71   const G4int k0n7bfs[38][7] =
     61  static const G4int k0n7bfs[38][7] =
    7262    {{2,7,7,7,7,7,15},   {1,3,5,5,5,7,11},   {1,5,5,7,7,7,11},
    7363     {2,5,7,7,7,7,11},   {2,3,5,5,7,7,11},   {2,3,3,5,5,5,11},
     
    9585  // second index: kinetic energy
    9686  //
    97   const G4float k0nCrossSections[100][31] = {
     87  static const G4double k0nCrossSections[100][31] = {
    9888    //
    9989    // multiplicity 2 (1 channel)
     
    613603
    614604G4CascadeKzeroNChannelData::data_t
    615 G4CascadeKzeroNChannelData::data = { k0ntot,
    616                                      k0nMultiplicities,
    617                                      k0nindex,
    618                                      k0n2bfs,
    619                                      k0n3bfs,
    620                                      k0n4bfs,
    621                                      k0n5bfs,
    622                                      k0n6bfs,
    623                                      k0n7bfs,
    624                                      k0nCrossSections };
    625 
    626 namespace {
    627   struct initializer
    628   {
    629     initializer() { G4CascadeKzeroNChannelData::data.initialize(); }
    630   };
    631 
    632   initializer init;
    633 }
     605G4CascadeKzeroNChannelData::data(k0n2bfs, k0n3bfs, k0n4bfs,
     606                                 k0n5bfs, k0n6bfs, k0n7bfs,
     607                                 k0nCrossSections);
Note: See TracChangeset for help on using the changeset viewer.