source: trunk/source/processes/hadronic/models/chiral_inv_phase_space/body/include/G4QParton.hh @ 1358

Last change on this file since 1358 was 1340, checked in by garnier, 14 years ago

update ti head

File size: 4.7 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26
27#ifndef G4QParton_h
28#define G4QParton_h 1
29
30// $Id: G4QParton.hh,v 1.8 2009/07/17 16:54:57 mkossov Exp $
31// GEANT4 tag $Name: hadr-chips-V09-03-08 $
32//
33// ------------------------------------------------------------
34//      GEANT 4 class header file
35//
36//      ---------------- G4QParton ----------------
37//      by Mikhail Kosov, October 2006
38//      class for Quark-Parton for quark-level models
39//   For comparison mirror member functions are taken from G4 class:
40//   G4Parton
41// -----------------------------------------------------------------
42// Short description: The Quark-Gluon String consists of the partons, which
43// are quarks and some times gluons.
44// ------------------------------------------------------------------------
45
46#include "globals.hh"
47#include "G4QContent.hh"
48#include "G4LorentzVector.hh"
49#include "G4ThreeVector.hh"
50#include <iostream>
51#include "Randomize.hh"
52
53class G4QParton
54{
55 public:
56  // Constructors
57  G4QParton();                                            // Default fullRandom constructor
58  G4QParton(G4int aPGG);                                  // Collor/Spin are still random
59  G4QParton(const G4QParton &right);
60  G4QParton(const G4QParton* right);
61
62  // Destructor
63  ~G4QParton();
64
65  // Operators
66  const G4QParton& operator=(const G4QParton &right);
67  G4int operator==(const G4QParton &right) const      {return this==&right;} 
68  G4int operator!=(const G4QParton &right) const      {return this!=&right;} 
69
70  // Modifiers
71  void DefineEPz(G4LorentzVector hadr4Mom){theMomentum+=hadr4Mom*theX;} // CHIPS solution
72  void DefineMomentumInZ(G4double aLightConeMomentum, G4bool aDirection);
73  void SetPDGCode(G4int aPDG);
74  void SetColour(G4int aColour)                       {theColour = aColour;}
75  void SetX(G4double anX)                             {theX = anX;}
76  void Set4Momentum(const G4LorentzVector& aMomentum) {theMomentum=aMomentum;}
77  void SetPosition(const G4ThreeVector& aPosition)    {thePosition=aPosition;}
78  void SetSpinZ(G4double aSpinZ)                      {theSpinZ = aSpinZ;}
79  G4bool ReduceDiQADiQ(G4QParton* d1, G4QParton* d2); // Reduce DiQ-aDiQ to Q-aQ (general)
80
81  // Selectors
82  G4int GetPDGCode() const                            {return PGGCode;}
83  G4QContent GetQC() const                            {return QCont;}
84  const G4ThreeVector& GetPosition() const            {return thePosition;}
85  const G4LorentzVector& Get4Momentum() const         {return theMomentum;} 
86  G4double GetX()                                     {return theX;}   
87  G4int GetColour()                                   {return theColour;}   
88  G4double GetSpinZ()                                 {return theSpinZ;}
89  const G4int& GetType() const                        {return theType;}
90 private: 
91  // Body
92  G4int                 PGGCode;
93  G4QContent            QCont;   // Quark Content of the parton
94  G4int                 theType; // 0 = gluon, 1 = quark-antiquark, 2 = diquark/antidiquark
95  G4int                 theColour;
96  G4double              theSpinZ;
97  G4double              theX;
98  G4ThreeVector         thePosition;
99  G4LorentzVector       theMomentum;
100};
101
102#endif
Note: See TracBrowser for help on using the repository browser.