G4QParton.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 
00027 #ifndef G4QParton_h
00028 #define G4QParton_h 1
00029 
00030 // $Id$
00031 //
00032 // ------------------------------------------------------------
00033 //      GEANT 4 class header file
00034 //
00035 //      ---------------- G4QParton ----------------
00036 //      by Mikhail Kosov, October 2006
00037 //      class for Quark-Parton for quark-level models
00038 //   For comparison mirror member functions are taken from G4 class:
00039 //   G4Parton
00040 // -----------------------------------------------------------------
00041 // Short description: The Quark-Gluon String consists of the partons, which
00042 // are quarks and some times gluons.
00043 // ------------------------------------------------------------------------
00044 
00045 #include "globals.hh"
00046 #include "G4QContent.hh"
00047 #include "G4LorentzVector.hh"
00048 #include "G4ThreeVector.hh"
00049 #include <iostream>
00050 #include "Randomize.hh"
00051 
00052 class G4QParton
00053 {
00054  public:
00055   // Constructors
00056   G4QParton();                                            // Default fullRandom constructor
00057   G4QParton(G4int aPGG);                                  // Collor/Spin are still random
00058   G4QParton(const G4QParton &right);
00059   G4QParton(const G4QParton* right);
00060 
00061   // Destructor
00062   ~G4QParton();
00063 
00064   // Operators
00065   const G4QParton& operator=(const G4QParton &right);
00066   G4int operator==(const G4QParton &right) const      {return this==&right;} 
00067   G4int operator!=(const G4QParton &right) const      {return this!=&right;} 
00068 
00069   // Modifiers
00070   void DefineEPz(G4LorentzVector hadr4Mom){theMomentum+=hadr4Mom*theX;} // CHIPS solution
00071   void DefineMomentumInZ(G4double aLightConeMomentum, G4bool aDirection);
00072   void SetPDGCode(G4int aPDG);
00073   void SetColour(G4int aColour)                       {theColour = aColour;}
00074   void SetX(G4double anX)                             {theX = anX;}
00075   void Set4Momentum(const G4LorentzVector& aMomentum) {theMomentum=aMomentum;}
00076   void SetPosition(const G4ThreeVector& aPosition)    {thePosition=aPosition;}
00077   void SetSpinZ(G4double aSpinZ)                      {theSpinZ = aSpinZ;}
00078   G4bool ReduceDiQADiQ(G4QParton* d1, G4QParton* d2); // Reduce DiQ-aDiQ to Q-aQ (general)
00079 
00080   // Selectors
00081   G4int GetPDGCode() const                            {return PGGCode;}
00082   G4QContent GetQC() const                            {return QCont;}
00083   const G4ThreeVector& GetPosition() const            {return thePosition;}
00084   const G4LorentzVector& Get4Momentum() const         {return theMomentum;} 
00085   G4double GetX()                                     {return theX;}    
00086   G4int GetColour()                                   {return theColour;}    
00087   G4double GetSpinZ()                                 {return theSpinZ;}
00088   const G4int& GetType() const                        {return theType;}
00089  private: 
00090   // Body 
00091   G4int                 PGGCode;
00092   G4QContent            QCont;   // Quark Content of the parton
00093   G4int                 theType; // 0 = gluon, 1 = quark-antiquark, 2 = diquark/antidiquark
00094   G4int                 theColour;
00095   G4double              theSpinZ;
00096   G4double              theX;
00097   G4ThreeVector         thePosition;
00098   G4LorentzVector       theMomentum;
00099 };
00100 
00101 #endif

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