Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:18

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 
0028 #ifndef G4FTFAnnihilation_h
0029 #define G4FTFAnnihilation_h 1
0030 
0031 // ------------------------------------------------------------
0032 //      GEANT 4 class header file
0033 //
0034 //      ---------------- G4FTFAnnihilation       --------------
0035 //             by Vladimir Uzhinsky, November 2010.
0036 //          Annihilation used by Fritiof (FTF) model
0037 //              Takes a projectile and a target
0038 //              Produces strings (excited hadrons)
0039 // ------------------------------------------------------------
0040 
0041 #include "globals.hh"
0042 #include "G4FTFParameters.hh"
0043 #include "G4ThreeVector.hh"
0044 
0045 class G4VSplitableHadron;
0046 class G4ExcitedString;
0047 
0048 
0049 class G4FTFAnnihilation {
0050   public:
0051     G4FTFAnnihilation();
0052     virtual ~G4FTFAnnihilation();
0053 
0054     virtual G4bool Annihilate( G4VSplitableHadron* aPartner, 
0055                                G4VSplitableHadron* bPartner,
0056                                G4VSplitableHadron*& AdditionalString, 
0057                                G4FTFParameters* theParameters ) const;
0058 
0059   private:
0060     G4FTFAnnihilation( const G4FTFAnnihilation& right );      
0061     const G4FTFAnnihilation& operator=( const G4FTFAnnihilation& right );
0062     G4bool operator==( const G4FTFAnnihilation& right ) const;
0063     G4bool operator!=( const G4FTFAnnihilation& right ) const;
0064 
0065     // The "Annihilate" method uses the following struct and 4 new utility methods:
0066     struct CommonVariables {
0067       G4int AQ[3], Q[3];
0068       G4bool RotateStrings = false;
0069       G4double S = 0.0, SqrtS = 0.0;
0070       G4LorentzVector Pprojectile, Ptarget;
0071       G4LorentzRotation toLab, RandomRotation; 
0072     };
0073     G4bool Create3QuarkAntiQuarkStrings( G4VSplitableHadron* aPartner, 
0074                                          G4VSplitableHadron* bPartner,
0075                                          G4VSplitableHadron*& AdditionalString, 
0076                                          G4FTFParameters* theParameters,
0077                                          CommonVariables& common ) const;
0078     G4int Create1DiquarkAntiDiquarkString( G4VSplitableHadron* aPartner, 
0079                                            G4VSplitableHadron* bPartner,
0080                                            CommonVariables& common ) const;
0081     G4int Create2QuarkAntiQuarkStrings( G4VSplitableHadron* aPartner, 
0082                                         G4VSplitableHadron* bPartner,
0083                                         G4FTFParameters* theParameters,
0084                                         CommonVariables& common ) const;
0085     G4bool Create1QuarkAntiQuarkString( G4VSplitableHadron* aPartner, 
0086                                         G4VSplitableHadron* bPartner,
0087                                         G4FTFParameters* theParameters,
0088                                         CommonVariables& common ) const;
0089 
0090     G4ThreeVector GaussianPt( G4double AveragePt2, G4double maxPtSquare ) const;
0091     G4double ChooseX( G4double Alpha, G4double Beta ) const;
0092     void UnpackBaryon( G4int IdPDG, G4int& Q1, G4int& Q2, G4int& Q3 ) const;
0093 };
0094 
0095 #endif
0096