source: trunk/source/processes/hadronic/models/chiral_inv_phase_space/body/include/G4QPartonPair.hh @ 1340

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

update ti head

File size: 3.8 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#ifndef G4QPartonPair_h
27#define G4QPartonPair_h 1
28//
29// $Id: G4QPartonPair.hh,v 1.2 2009/02/23 09:49:24 mkossov Exp $
30// GEANT4 tag $Name: hadr-chips-V09-03-08 $
31//
32// ------------------------------------------------------------
33//      GEANT 4 class implementation file
34//
35//      ---------------- G4QParton ----------------
36//             by Mikhail Kossov, Oct 2006.
37// class for PartonPair (hadron) used by Parton String Models
38// ------------------------------------------------------------
39// Short description: Each Quasmon String has a pair of partons
40// (quark/diquark-partons) on its ends. During the hadronization
41// procedure the rapidity gap between partons shrinks, but the
42// parton pair still exists, while it is converted to the final
43// meson (quaek-antiquark) or baryon (quark-diquark).
44// --------------------------------------------------------------
45//
46#include "globals.hh"
47#include "G4ThreeVector.hh"
48#include "G4LorentzVector.hh"
49#include "G4QParton.hh"
50
51class G4QPartonPair 
52{
53 public:
54  enum { DIFFRACTIVE = 1, SOFT = 2, HARD  = 3};
55  enum { PROJECTILE = 1, TARGET = -1};
56 public:
57  G4QPartonPair(G4QParton* P1, G4QParton* P2, G4int Type=0, G4int Direction=0);
58  ~G4QPartonPair();
59  G4int operator==(const G4QPartonPair &right) const
60  {
61    return (CollisionType == right.CollisionType &&
62            *Parton1 == *right.Parton1 && *Parton2 == *right.Parton2) ? 1: 0;
63  }
64  G4int operator!=(const G4QPartonPair &right) const
65  {
66    return (CollisionType == right.CollisionType &&
67            *Parton1 == *right.Parton1 && *Parton2 == *right.Parton2) ? 0: 1;
68  }
69  // Modifiers
70  void  SetPartons(G4QParton* P1, G4QParton* P2) {Parton1=P1; Parton2=P2;}
71  void  SetCollisionType(G4int Type)             {CollisionType = Type;}
72  // Selectors
73  G4int      GetCollisionType()                  {return CollisionType;}
74  G4QParton* GetParton1()                        {return Parton1;}
75  G4QParton* GetParton2()                        {return Parton2;}
76  G4int      GetDirection()                      {return Direction;}
77     
78 private:
79  // Body
80  G4QParton* Parton1; 
81  G4QParton* Parton2; 
82  G4int      CollisionType;
83  G4int      Direction;
84};
85
86#endif
Note: See TracBrowser for help on using the repository browser.