G4PartonPair.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 G4PartonPair_h
00027 #define G4PartonPair_h 1
00028 
00029 #include "globals.hh"
00030 #include "G4ThreeVector.hh"
00031 #include "G4LorentzVector.hh"
00032 #include "G4Parton.hh"
00033 #include "G4PartonVector.hh"
00034 
00035 class G4PartonPair 
00036 {
00037 public:
00038         enum {
00039                 DIFFRACTIVE = 1,
00040                 SOFT = 2,
00041                 HARD  = 3
00042         };
00043         enum
00044         {
00045                 PROJECTILE = 1,
00046                 TARGET = -1
00047         };
00048 public:
00049         G4PartonPair(G4Parton* P1, G4Parton* P2, G4int Type, G4int Direction);
00050         ~G4PartonPair();
00051 
00052 private:
00053         G4PartonPair(const G4PartonPair &right);
00054         int operator==(const G4PartonPair &right) const;
00055         int operator!=(const G4PartonPair &right) const;
00056 
00057 public:
00058         void  SetPartons(G4Parton* P1, G4Parton* P2);
00059         void  SetCollisionType(G4int Type);
00060         G4int GetCollisionType();
00061         G4Parton* GetParton1(void);
00062         G4Parton* GetParton2(void);
00063         G4int GetDirection();
00064 
00065 
00066 private:
00067         G4Parton* Parton1;
00068         G4Parton* Parton2;
00069         G4int     CollisionType;
00070         G4int     Direction;
00071 
00072 };
00073 
00074 inline G4Parton* G4PartonPair::GetParton1(void)
00075 {
00076         return Parton1;
00077 }
00078 
00079 inline G4Parton* G4PartonPair::GetParton2(void)
00080 {
00081         return Parton2;
00082 }
00083 
00084 inline void G4PartonPair::SetCollisionType(G4int Type)
00085 {
00086         CollisionType = Type;
00087 }
00088 
00089 inline G4int G4PartonPair::GetCollisionType()
00090 {
00091         return CollisionType;
00092 }
00093 
00094 inline G4int G4PartonPair::GetDirection()
00095 {
00096         return Direction;
00097 }
00098 
00099 
00100 #endif
00101 
00102 

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