00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 00030 #ifndef G4QInteraction_h 00031 #define G4QInteraction_h 1 00032 00033 // ------------------------------------------------------------------- 00034 // GEANT 4 class header file 00035 // 00036 // ---------------- G4QInteraction---------------- 00037 // Created by Mikhail Kossov Oct,2006 00038 // class for a storing colliding particles in PartonString Models 00039 // For comparison mirror member functions are taken from G4 class: 00040 // G4InteractionContent 00041 // ------------------------------------------------------------------- 00042 // Short description: Classify the interaction in soft/hard/diffractive 00043 // parts for firther treatment by the QGS algorithm. Pure data class... 00044 // Except for the SplitHadrons, which can be done elsewhere (@@ M.K.) 00045 // --------------------------------------------------------------------- 00046 00047 #include "globals.hh" 00048 #include "G4QHadron.hh" 00049 00050 class G4QInteraction 00051 { 00052 public: 00053 G4QInteraction(G4QHadron* aPrimaryParticipant); 00054 ~G4QInteraction(); 00055 int operator==(const G4QInteraction &right) const {return this==&right;} 00056 int operator!=(const G4QInteraction &right) const {return this!=&right;} 00057 G4QHadron* GetProjectile() const {return theProjectile;} 00058 G4QHadron* GetTarget() const {return theTarget;} 00059 G4int GetNumberOfSoftCollisions() {return theNumberOfSoft;} 00060 G4int GetNumberOfDINRCollisions() {return theNumberOfDINR;} 00061 G4int GetNumberOfHardCollisions() {return theNumberOfHard;} 00062 G4int GetNumberOfDiffractiveCollisions() {return theNumberOfDiffractive;} 00063 void SetTarget(G4QHadron* aTarget) {theTarget = aTarget;} 00064 void SetProjectile(G4QHadron* aProjectile) {theProjectile = aProjectile;} 00065 void SetNumberOfSoftCollisions(G4int nofSoft) {theNumberOfSoft = nofSoft;} 00066 void SetNumberOfDINRCollisions(G4int nofDINR) {theNumberOfDINR = nofDINR;} 00067 void SetNumberOfHardCollisions(G4int nofHard) {theNumberOfHard = nofHard;} 00068 void SetNumberOfDiffractiveCollisions(G4int nofDiff) {theNumberOfDiffractive = nofDiff;} 00069 void SplitHadrons() 00070 {if(theProjectile)theProjectile->SplitUp(); if(theTarget)theTarget->SplitUp();} 00071 public: 00072 G4QInteraction(){} 00073 G4QInteraction(const G4QInteraction &right); 00074 const G4QInteraction & operator=(const G4QInteraction &right); 00075 private: 00076 // Body 00077 G4QHadron* theProjectile; 00078 G4QHadron* theTarget; 00079 G4int theNumberOfDINR; 00080 G4int theNumberOfHard; 00081 G4int theNumberOfSoft; 00082 G4int theNumberOfDiffractive; 00083 }; 00084 00085 #endif