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.4.p3 ] [ 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /processes/hadronic/cross_sections/include/G4ChipsAntiBaryonElasticXS.hh (Version 11.3.0) and /processes/hadronic/cross_sections/include/G4ChipsAntiBaryonElasticXS.hh (Version 9.6)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                         3 // * License and Disclaimer                                           *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th      5 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
  6 // * the Geant4 Collaboration.  It is provided      6 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
  7 // * conditions of the Geant4 Software License      7 // * conditions of the Geant4 Software License,  included in the file *
  8 // * LICENSE and available at  http://cern.ch/      8 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
  9 // * include a list of copyright holders.           9 // * include a list of copyright holders.                             *
 10 // *                                               10 // *                                                                  *
 11 // * Neither the authors of this software syst     11 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     12 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     13 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     14 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file      15 // * use.  Please see the license in the file  LICENSE  and URL above *
 16 // * for the full disclaimer and the limitatio     16 // * for the full disclaimer and the limitation of liability.         *
 17 // *                                               17 // *                                                                  *
 18 // * This  code  implementation is the result      18 // * This  code  implementation is the result of  the  scientific and *
 19 // * technical work of the GEANT4 collaboratio     19 // * technical work of the GEANT4 collaboration.                      *
 20 // * By using,  copying,  modifying or  distri     20 // * By using,  copying,  modifying or  distributing the software (or *
 21 // * any work based  on the software)  you  ag     21 // * any work based  on the software)  you  agree  to acknowledge its *
 22 // * use  in  resulting  scientific  publicati     22 // * use  in  resulting  scientific  publications,  and indicate your *
 23 // * acceptance of all terms of the Geant4 Sof     23 // * acceptance of all terms of the Geant4 Software license.          *
 24 // *******************************************     24 // ********************************************************************
 25 //                                                 25 //
 26 //                                                 26 //
                                                   >>  27 // GEANT4 tag $Name: not supported by cvs2svn $
 27 //                                                 28 //
 28 //                                                 29 //
 29 // GEANT4 physics class: G4ChipsAntiBaryonElas     30 // GEANT4 physics class: G4ChipsAntiBaryonElasticXS -- header file
 30 // M.V. Kossov, ITEP(Moscow), 5-Feb-2010           31 // M.V. Kossov, ITEP(Moscow), 5-Feb-2010
 31 // The last update: M.V. Kossov, CERN/ITEP (Mo     32 // The last update: M.V. Kossov, CERN/ITEP (Moscow) 5-Feb-2010
 32 //                                                 33 //
 33 //                                                 34 //
 34 // -------------------------------------------     35 // -------------------------------------------------------------------------------
 35 // Short description: Interaction cross-sectio     36 // Short description: Interaction cross-sections for the elastic process. 
 36 // Class extracted from CHIPS and integrated i     37 // Class extracted from CHIPS and integrated in Geant4 by W.Pokorski
 37 // -------------------------------------------     38 // -------------------------------------------------------------------------------
 38                                                    39 
 39 #ifndef G4ChipsAntiBaryonElasticXS_h               40 #ifndef G4ChipsAntiBaryonElasticXS_h
 40 #define G4ChipsAntiBaryonElasticXS_h 1             41 #define G4ChipsAntiBaryonElasticXS_h 1
 41                                                    42 
 42 #include <vector>                                  43 #include <vector>
 43 #include "Randomize.hh"                            44 #include "Randomize.hh"
 44 #include "G4VCrossSectionDataSet.hh"               45 #include "G4VCrossSectionDataSet.hh"
 45                                                    46 
 46 class G4ChipsAntiBaryonElasticXS  : public G4V     47 class G4ChipsAntiBaryonElasticXS  : public G4VCrossSectionDataSet
 47 {                                                  48 {
 48                                                    49 
 49 public:                                            50 public:
 50                                                    51 
 51   G4ChipsAntiBaryonElasticXS();                    52   G4ChipsAntiBaryonElasticXS();               // Constructor
 52                                                    53 
 53   ~G4ChipsAntiBaryonElasticXS();                   54   ~G4ChipsAntiBaryonElasticXS();
 54                                                    55 
 55   static const char* Default_Name() {return "C     56   static const char* Default_Name() {return "ChipsAntiBaryonElasticXS";}
 56                                                    57 
 57   virtual void CrossSectionDescription(std::os << 
 58                                                << 
 59   virtual G4bool IsIsoApplicable(const G4Dynam     58   virtual G4bool IsIsoApplicable(const G4DynamicParticle* Pt, G4int Z, G4int A,    
 60          const G4Element* elm,                     59          const G4Element* elm,
 61          const G4Material* mat );                  60          const G4Material* mat );
 62                                                    61 
 63   // At present momentum (pMom) in MeV/c, CS i     62   // At present momentum (pMom) in MeV/c, CS in mb (@@ Units)
 64   virtual G4double GetIsoCrossSection(const G4     63   virtual G4double GetIsoCrossSection(const G4DynamicParticle*, G4int tgZ, G4int A,  
 65               const G4Isotope* iso = 0,            64               const G4Isotope* iso = 0,
 66               const G4Element* elm = 0,            65               const G4Element* elm = 0,
 67               const G4Material* mat = 0);          66               const G4Material* mat = 0);
 68                                                    67 
 69   virtual G4double GetChipsCrossSection(G4doub     68   virtual G4double GetChipsCrossSection(G4double momentum, G4int Z, G4int N, G4int pdg);
 70                                                    69 
 71   G4double GetExchangeT(G4int tZ, G4int tN, G4     70   G4double GetExchangeT(G4int tZ, G4int tN, G4int pPDG); // Randomizes -t=Q2 (in IU=MeV^2)
 72                                                    71 
 73 private:                                           72 private:
 74                                                    73 
 75   G4double CalculateCrossSection(G4bool CS, G4     74   G4double CalculateCrossSection(G4bool CS, G4int F, G4int I, G4int pPDG, G4int Z, G4int N,
 76                                                    75                                                                               G4double pP);
 77   G4double GetSlope(G4int tZ, G4int tN, G4int      76   G4double GetSlope(G4int tZ, G4int tN, G4int pPDG);     // Slope of the 1st diff. maximum
 78   G4double GetHMaxT();                   // Cu     77   G4double GetHMaxT();                   // Currrent Max(-t=Q2)/2. (in IU=MeV^2)
 79                                                    78 
 80   G4double GetPTables(G4double lpP, G4double l     79   G4double GetPTables(G4double lpP, G4double lPm, G4int PDG, G4int tZ, G4int tN); // newLP
 81   G4double GetTabValues(G4double lp, G4int pPD     80   G4double GetTabValues(G4double lp, G4int pPDG, G4int tgZ, G4int tgN); // return CS(Si/Bi)
 82   G4double GetQ2max(G4int pPDG, G4int tgZ, G4i     81   G4double GetQ2max(G4int pPDG, G4int tgZ, G4int tgN, G4double pP); // return -t=Q2
 83                                                    82 
 84 // Body                                            83 // Body
 85 private:                                           84 private:
 86                                                    85 
 87   // --- Data formating AMDB (define the preca     86   // --- Data formating AMDB (define the precalculated table structure) ---
 88    const G4int nPoints;// #of points in the AM     87    const G4int nPoints;// #of points in the AMDB tables     
 89    const G4int nLast;  // the Last element in      88    const G4int nLast;  // the Last element in the table
 90    G4double    lPMin;  // Min tabulated logari     89    G4double    lPMin;  // Min tabulated logarithmic Momentum  
 91    G4double    lPMax;  // Max tabulated logari     90    G4double    lPMax;  // Max tabulated logarithmic Momentum  
 92    G4double    dlnP;   // Log step in the tabl     91    G4double    dlnP;   // Log step in the table     
 93   // ---- Local (for particular pP, pPDG, tZ,      92   // ---- Local (for particular pP, pPDG, tZ, tN) -----
 94    G4bool    onlyCS;   // flag to calculate on     93    G4bool    onlyCS;   // flag to calculate only CS (not S1/B1,S2/B2,S3/B3)
 95    G4double  lastSIG;  // Last calculated cros     94    G4double  lastSIG;  // Last calculated cross section
 96    G4double  lastLP;   // Last log(mom_of_the_     95    G4double  lastLP;   // Last log(mom_of_the_incident_hadron in GeV)
 97    G4double  lastTM;   // Last t_maximum           96    G4double  lastTM;   // Last t_maximum                       
 98    G4int     lastN;    // The last N of calcul     97    G4int     lastN;    // The last N of calculated nucleus
 99    G4int     lastZ;    // The last Z of calcul     98    G4int     lastZ;    // The last Z of calculated nucleus
100    G4double  lastP;    // Last used in the cro     99    G4double  lastP;    // Last used in the cross section Momentum
101    G4double  lastTH;   // Last value of the Mo    100    G4double  lastTH;   // Last value of the Momentum Threshold
102    G4double  lastCS;   // Last value of the Cr    101    G4double  lastCS;   // Last value of the Cross Section
103    G4int     lastI;    // The last position in    102    G4int     lastI;    // The last position in the DAMDB
104    G4double  theSS;    // The Last squared slo    103    G4double  theSS;    // The Last squared slope of first diffruction 
105    G4double  theS1;    // The Last mantissa of    104    G4double  theS1;    // The Last mantissa of first diffruction 
106    G4double  theB1;    // The Last slope of fi    105    G4double  theB1;    // The Last slope of first diffruction    
107    G4double  theS2;    // The Last mantissa of    106    G4double  theS2;    // The Last mantissa of second diffruction
108    G4double  theB2;    // The Last slope of se    107    G4double  theB2;    // The Last slope of second diffruction   
109    G4double  theS3;    // The Last mantissa of    108    G4double  theS3;    // The Last mantissa of third diffruction 
110    G4double  theB3;    // The Last slope of th    109    G4double  theB3;    // The Last slope of third diffruction    
111    G4double  theS4;    // The Last mantissa of    110    G4double  theS4;    // The Last mantissa of 4-th diffruction 
112    G4double  theB4;    // The Last slope of 4-    111    G4double  theB4;    // The Last slope of 4-th diffruction    
113   // ---- Global (AMBD of P-dependent tables f    112   // ---- Global (AMBD of P-dependent tables for pPDG,tZ,tN) -----
114    G4int     lastTZ;   // Last atomic number o    113    G4int     lastTZ;   // Last atomic number of the target
115    G4int     lastTN;   // Last number of neutr    114    G4int     lastTN;   // Last number of neutrons of the target
116    G4double  lastPIN;  // Last initialized max    115    G4double  lastPIN;  // Last initialized max momentum
117    G4double* lastCST;  // Last cross-section t    116    G4double* lastCST;  // Last cross-section table
118    G4double* lastPAR;  // Last parameters for     117    G4double* lastPAR;  // Last parameters for functional calculation
119    G4double* lastSST;  // E-dep of squared slo    118    G4double* lastSST;  // E-dep of squared slope of the first difruction 
120    G4double* lastS1T;  // E-dep of mantissa of    119    G4double* lastS1T;  // E-dep of mantissa of the first difruction 
121    G4double* lastB1T;  // E-dep of the slope o    120    G4double* lastB1T;  // E-dep of the slope of the first difruction
122    G4double* lastS2T;  // E-dep of mantissa of    121    G4double* lastS2T;  // E-dep of mantissa of the second difruction
123    G4double* lastB2T;  // E-dep of the slope o    122    G4double* lastB2T;  // E-dep of the slope of theSecond difruction
124    G4double* lastS3T;  // E-dep of mantissa of    123    G4double* lastS3T;  // E-dep of mantissa of the third difruction 
125    G4double* lastB3T;  // E-dep of the slope o    124    G4double* lastB3T;  // E-dep of the slope of the third difruction
126    G4double* lastS4T;  // E-dep of mantissa of    125    G4double* lastS4T;  // E-dep of mantissa of the 4-th difruction 
127    G4double* lastB4T;  // E-dep of the slope o    126    G4double* lastB4T;  // E-dep of the slope of the 4-th difruction
128                                                   127 
129    std::vector <G4double*> PAR;   // Vector of    128    std::vector <G4double*> PAR;   // Vector of parameters for functional calculations
130    std::vector <G4double*> CST;   // Vector of    129    std::vector <G4double*> CST;   // Vector of cross-section table
131    std::vector <G4double*> SST;   // Vector of    130    std::vector <G4double*> SST;   // Vector of the first squared slope
132    std::vector <G4double*> S1T;   // Vector of    131    std::vector <G4double*> S1T;   // Vector of the first mantissa
133    std::vector <G4double*> B1T;   // Vector of    132    std::vector <G4double*> B1T;   // Vector of the first slope
134    std::vector <G4double*> S2T;   // Vector of    133    std::vector <G4double*> S2T;   // Vector of the secon mantissa
135    std::vector <G4double*> B2T;   // Vector of    134    std::vector <G4double*> B2T;   // Vector of the second slope
136    std::vector <G4double*> S3T;   // Vector of    135    std::vector <G4double*> S3T;   // Vector of the third mantissa
137    std::vector <G4double*> B3T;   // Vector of    136    std::vector <G4double*> B3T;   // Vector of the third slope
138    std::vector <G4double*> S4T;   // Vector of    137    std::vector <G4double*> S4T;   // Vector of the 4-th mantissa (gloria)
139    std::vector <G4double*> B4T;   // Vector of    138    std::vector <G4double*> B4T;   // Vector of the 4-th slope    (gloria)
140                                                << 
141    std::vector <G4int> colN;  // Vector of N f << 
142    std::vector <G4int> colZ;  // Vector of Z f << 
143    std::vector <G4double> colP;  // Vector of  << 
144    std::vector <G4double> colTH; // Vector of  << 
145    std::vector <G4double> colCS; // Vector of  << 
146                                                << 
147    std::vector <G4double> PIN;   // Vector of  << 
148                                                << 
149  };                                               139  };
150 #endif                                            140 #endif
151                                                   141