G4QPartonPair.hh

Go to the documentation of this file.
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 #ifndef G4QPartonPair_h
00027 #define G4QPartonPair_h 1
00028 //
00029 // $Id$
00030 //
00031 // ------------------------------------------------------------
00032 //      GEANT 4 class implementation file
00033 //
00034 //      ---------------- G4QParton ----------------
00035 //             by Mikhail Kossov, Oct 2006.
00036 // class for PartonPair (hadron) used by Parton String Models
00037 // ------------------------------------------------------------
00038 // Short description: Each Quasmon String has a pair of partons
00039 // (quark/diquark-partons) on its ends. During the hadronization
00040 // procedure the rapidity gap between partons shrinks, but the
00041 // parton pair still exists, while it is converted to the final
00042 // meson (quaek-antiquark) or baryon (quark-diquark).
00043 // --------------------------------------------------------------
00044 //
00045 #include "globals.hh"
00046 #include "G4ThreeVector.hh"
00047 #include "G4LorentzVector.hh"
00048 #include "G4QParton.hh"
00049 
00050 class G4QPartonPair 
00051 {
00052  public:
00053   enum { DIFFRACTIVE = 1, SOFT = 2, HARD  = 3};
00054   enum { PROJECTILE = 1, TARGET = -1};
00055  public:
00056   G4QPartonPair(G4QParton* P1, G4QParton* P2, G4int Type=0, G4int Direction=0);
00057   ~G4QPartonPair();
00058   G4int operator==(const G4QPartonPair &right) const
00059   {
00060     return (CollisionType == right.CollisionType &&
00061             *Parton1 == *right.Parton1 && *Parton2 == *right.Parton2) ? 1: 0;
00062   }
00063   G4int operator!=(const G4QPartonPair &right) const
00064   {
00065     return (CollisionType == right.CollisionType &&
00066             *Parton1 == *right.Parton1 && *Parton2 == *right.Parton2) ? 0: 1;
00067   }
00068   // Modifiers
00069   void  SetPartons(G4QParton* P1, G4QParton* P2) {Parton1=P1; Parton2=P2;}
00070   void  SetCollisionType(G4int Type)             {CollisionType = Type;}
00071   // Selectors
00072   G4int      GetCollisionType()                  {return CollisionType;}
00073   G4QParton* GetParton1()                        {return Parton1;}
00074   G4QParton* GetParton2()                        {return Parton2;}
00075   G4int      GetDirection()                      {return Direction;}
00076       
00077  private:
00078   // Body
00079   G4QParton* Parton1;  
00080   G4QParton* Parton2;  
00081   G4int      CollisionType;
00082   G4int      Direction;
00083 };
00084 
00085 #endif

Generated on Mon May 27 17:49:38 2013 for Geant4 by  doxygen 1.4.7