Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Geant4/G4PartonPair.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 #ifndef G4PartonPair_h
0027 #define G4PartonPair_h 1
0028 
0029 #include "globals.hh"
0030 #include "G4ThreeVector.hh"
0031 #include "G4LorentzVector.hh"
0032 #include "G4Parton.hh"
0033 #include "G4PartonVector.hh"
0034 
0035 class G4PartonPair 
0036 {
0037   public:
0038     enum {
0039        DIFFRACTIVE = 1,
0040        SOFT = 2,
0041        HARD  = 3
0042      };
0043     enum {
0044        PROJECTILE = 1,
0045        TARGET = -1
0046       };
0047   public:
0048     G4PartonPair(G4Parton* P1, G4Parton* P2, G4int Type, G4int Direction);
0049     ~G4PartonPair();
0050 
0051   private:
0052     G4PartonPair(const G4PartonPair &right);
0053     G4bool operator==(const G4PartonPair &right) const;
0054     G4bool operator!=(const G4PartonPair &right) const;
0055 
0056   public:
0057     void  SetPartons(G4Parton* P1, G4Parton* P2);
0058     void  SetCollisionType(G4int Type);
0059     G4int GetCollisionType();
0060     G4Parton* GetParton1(void);
0061     G4Parton* GetParton2(void);
0062     G4int GetDirection();
0063 
0064   private:
0065     G4Parton* Parton1;
0066     G4Parton* Parton2;
0067     G4int     CollisionType;
0068     G4int     Direction;
0069 };
0070 
0071 inline G4Parton* G4PartonPair::GetParton1(void)
0072 {
0073   return Parton1;
0074 }
0075 
0076 inline G4Parton* G4PartonPair::GetParton2(void)
0077 {
0078   return Parton2;
0079 }
0080 
0081 inline void G4PartonPair::SetCollisionType(G4int Type)
0082 {
0083   CollisionType = Type;
0084 }
0085 
0086 inline G4int G4PartonPair::GetCollisionType()
0087 {
0088   return CollisionType;
0089 }
0090 
0091 inline G4int G4PartonPair::GetDirection()
0092 {
0093   return Direction;
0094 }
0095 
0096 #endif
0097