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

Last change on this file since 962 was 962, checked in by garnier, 15 years ago

update processes

File size: 3.5 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.1 2006/10/30 10:40:34 mkossov Exp $
30// GEANT4 tag $Name: geant4-09-02-ref-02 $
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//
40#include "globals.hh"
41#include "G4ThreeVector.hh"
42#include "G4LorentzVector.hh"
43#include "G4QParton.hh"
44
45class G4QPartonPair 
46{
47 public:
48  enum { DIFFRACTIVE = 1, SOFT = 2, HARD  = 3};
49  enum { PROJECTILE = 1, TARGET = -1};
50 public:
51  G4QPartonPair(G4QParton* P1, G4QParton* P2, G4int Type=0, G4int Direction=0);
52  ~G4QPartonPair();
53  G4int operator==(const G4QPartonPair &right) const
54  {
55    return (CollisionType == right.CollisionType && *Parton1 == *right.Parton1 &&
56                                                    *Parton2 == *right.Parton2) ? 1: 0;
57  }
58  G4int operator!=(const G4QPartonPair &right) const
59  {
60    return (CollisionType == right.CollisionType && *Parton1 == *right.Parton1 &&
61                                                    *Parton2 == *right.Parton2) ? 0: 1;
62  }
63  // Modifiers
64  void  SetPartons(G4QParton* P1, G4QParton* P2) {Parton1=P1; Parton2=P2;}
65  void  SetCollisionType(G4int Type)             {CollisionType = Type;}
66  // Selectors
67  G4int GetCollisionType()                       {return CollisionType;}
68  G4QParton* GetParton1()                        {return Parton1;}
69  G4QParton* GetParton2()                        {return Parton2;}
70  G4int      GetDirection()                      {return Direction;}
71     
72 private:
73  // Body
74  G4QParton* Parton1; 
75  G4QParton* Parton2; 
76  G4int     CollisionType;
77  G4int     Direction;
78};
79
80#endif
Note: See TracBrowser for help on using the repository browser.