Ignore:
Timestamp:
Apr 6, 2009, 12:30:29 PM (15 years ago)
Author:
garnier
Message:

update processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/incl/include/G4AblaDataDefs.hh

    r819 r962  
    2424// ********************************************************************
    2525//
    26 // $Id: G4AblaDataDefs.hh,v 1.6 2007/12/03 19:36:06 miheikki Exp $
     26// $Id: G4AblaDataDefs.hh,v 1.9 2008/06/25 17:20:04 kaitanie Exp $
    2727// Translation of INCL4.2/ABLA V3
    2828// Pekka Kaitaniemi, HIP (translation)
     
    7676
    7777  G4double ecnz[EC2SUBROWS][EC2SUBCOLS];
     78
     79  /**
     80   * Dump the contents of the ecnz data table.
     81   */
     82  void dump() {
     83    for(G4int i = 0; i < EC2SUBROWS; i++) {
     84      for(G4int j = 0; j < EC2SUBCOLS; j++) {
     85        G4cout << ecnz[i][j] << " ";
     86      }
     87      G4cout << G4endl;
     88    }
     89  }
    7890};
    7991
     
    8799 
    88100  G4double av,as,ak,optafan;
    89 };
    90 
    91 class G4Ablamain {
    92 public:
    93   G4Ablamain() {};
    94   ~G4Ablamain() {};
    95  
    96   G4double ap,zp,at,zt,eap,beta,bmaxnuc,crtot,crnuc,r_0, r_p,r_t,pi,bfpro,snpro,sppro,shell;
    97   G4int imax, inum;
    98101};
    99102
     
    185188};
    186189
    187 #define EMDPARSIZE 1000
    188 /**
    189  * Energies widths and cross sections for em excitation.
    190  */
    191 
    192 class G4Emdpar {
    193 
    194 public:
    195   G4Emdpar() {};
    196   ~G4Emdpar() {};
    197  
    198   G4double egdr,egqr,fwhmgdr,fwhmgqr,cremde1,cremde2;                 
    199   G4double ae1[EMDPARSIZE],be1[EMDPARSIZE],ce1[EMDPARSIZE],ae2[EMDPARSIZE];     
    200   G4double be2[EMDPARSIZE],ce2[EMDPARSIZE],sre1[EMDPARSIZE],sre2[EMDPARSIZE];
    201   G4double xre1[EMDPARSIZE],xre2[EMDPARSIZE],ds1,ds2;                             
    202 };
    203 
    204190//#define VOLANTSIZE 200
    205191#define VOLANTSIZE 2000
     
    211197 
    212198public:
    213   G4Volant() {};
     199  G4Volant()
     200  {
     201    clear();
     202  }
     203
    214204  ~G4Volant() {};
    215205
     206  void clear()
     207  {
     208    for(G4int i = 0; i < VOLANTSIZE; i++) {
     209      copied[i] = false;
     210      acv[i] = 0;
     211      zpcv[i] = 0;
     212      pcv[i] = 0;
     213      xcv[i] = 0;
     214      ycv[i] = 0;
     215      zcv[i] = 0;
     216      iv = 0;
     217    }
     218  }
     219
     220  G4double getTotalMass()
     221  {
     222    G4double total = 0.0;
     223    for(G4int i = 0; i <= iv; i++) {
     224      total += acv[i];
     225    }
     226    return total;
     227  }
     228
    216229  void dump()
    217230  {
     231    G4double totA = 0.0, totZ = 0.0, totP = 0.0;
    218232    G4cout <<"i \t ACV \t ZPCV \t PCV" << G4endl;
    219233    for(G4int i = 0; i <= iv; i++) {
     234      if(i == 0 && acv[i] != 0) {
     235        G4cout <<"G4Volant: Particle stored at index " << i << G4endl;
     236      }
     237      totA += acv[i];
     238      totZ += zpcv[i];
     239      totP += pcv[i];
    220240      G4cout << "volant" << i << "\t" << acv[i] << " \t " << zpcv[i] << " \t " << pcv[i] << G4endl;
    221241    }
     242    G4cout <<"Particle count index (iv) = " << iv << G4endl;
     243    G4cout <<"ABLA Total: A = " << totA << " Z = " << totZ <<  " momentum = " << totP << G4endl;
    222244  }
    223245
    224246  G4double acv[VOLANTSIZE],zpcv[VOLANTSIZE],pcv[VOLANTSIZE],xcv[VOLANTSIZE];
    225247  G4double ycv[VOLANTSIZE],zcv[VOLANTSIZE];
     248  G4bool copied[VOLANTSIZE];
    226249  G4int iv;
    227250};
Note: See TracChangeset for help on using the changeset viewer.