// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // //#define debug //#define pdebug //#include "G4UIterminal.hh" #include "G4ios.hh" #include "G4QEnvironment.hh" int main() { //G4double theEnergyLossPerFermi = 1.*GeV; G4int nop = 152; // clusters (A<6) G4double fractionOfSingleQuasiFreeNucleons = 0.5; // It is A-dependent (C=.85, U=.40) G4double fractionOfPairedQuasiFreeNucleons = 0.05; G4double clusteringCoefficient = 5.; G4double temperature = 180.; G4double halfTheStrangenessOfSee = 0.3; // = s/d = s/u G4double etaToEtaPrime = 0.3; G4double fusionToExchange = 100.; //G4double theInnerCoreDensityCut = 50.; #ifdef debug G4cout<<"G4MulFragTst: nop="<>temperature>>ssin2g>>eteps>>nop>>momb>>enb>>pPDG>>tPDG>>nEvt>>fN>>fD>>cP>>rM>>sA; //G4cout<<"CHIPStest Par's: Temp="<0.) ep=enb; G4double mt=G4QPDGCode(tPDG).GetMass(); // @@ just for the check G4QContent tQC=G4QPDGCode(tPDG).GetQuarkContent(); G4int ct=tQC.GetCharge(); G4int bnt=tQC.GetBaryonNumber(); G4int totC=cp1+cp2+cp3+ct; G4int totBN=bnp1+bnp2+bnp3+bnt; G4LorentzVector preSumLV(0.,0.,0.,mt); preSumLV+=LV1+LV2+LV3; G4double fEvt=nEvents; G4double sumE=0.; G4double sumK=0.; G4double sumG=0.; G4double sumT=0.; G4double sumN=0.; G4double sum0=0.; G4double sumP=0.; G4double sum1N=0.; G4double sumNN=0.; G4double sumPP=0.; G4double sumAL=0.; G4double time=clock()/CLOCKS_PER_SEC; // Main LOOP over events ====================================== for (G4int ir=0; ir0) { vRandCount = G4UniformRand(); iRandCount--; } if(!(ir%1000) && ir) G4cout<<"G4MultFragTst: "<>> Now call Fragment (HadronizeQuasmon) function" << G4endl; #endif G4QHadronVector* output; // Prototype of the output try { output = pan->Fragment();// DESTROYED in the end of the LOOP work space } catch (G4QException& error) { #ifdef pdebug G4cout<<"***CHIPStest: Exception is catched"<>>Now come out of Fragment (HadronizeQuasmon) function"<>> Here the histograms are filled" << G4endl; #endif G4int tNH = output->size(); G4int npt=0; G4int nGamma=0; G4double EGamma=0; G4int nP0=0; G4int nPP=0; G4int nPN=0; G4int nKaons=0; G4int nEta=0; G4int nAlphas=0; G4int nPhotons=0; G4int nProtons=0; G4int nNeutrons=0; G4int nSpNeut=0; G4int nSpAlph=0; G4int nOmega=0; G4int nDec=0; G4int dirN=0; #ifdef pdebug G4cout<<"----------DONE^^^^^^^************^^^^^^^^^^^:ir="<operator[](ind); G4double m = curH->GetMass(); // Mass of the particle G4LorentzVector lorV = curH->Get4Momentum(); // 4-momentum of the particle if(std::fabs(m-lorV.m())>.005) { G4cerr<<"***CHIPStest: m="<90999999; #ifdef pdebug G4cout<<"#"<operator[](indx); G4double m = curH->GetMass(); G4LorentzVector lorV = curH->Get4Momentum(); G4int d=curH->GetNFragments(); G4int c=curH->GetPDGCode(); if(!d) totSum -= lorV; G4cerr<<"#"<begin(), output->end(), DeleteQHadron()); output->clear(); delete output; } time=(clock()/CLOCKS_PER_SEC-time)/fEvt; G4cerr<<"CHIPStest::t="<=" <