Files
geant4/source/processes/hadronic/models/parton_string/qgsm/include/G4QGSMSplitableHadron.hh
T
2016-06-09 10:49:58 +02:00

107 lines
3.9 KiB
C++

//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
#ifndef G4QGSMSplitableHadron_h
#define G4QGSMSplitableHadron_h 1
#include "G4VSplitableHadron.hh"
#include "G4PartonVector.hh"
#include "G4MesonSplitter.hh"
#include "G4BaryonSplitter.hh"
#include "Randomize.hh"
#include <deque>
// based on prototype by Maxim Komogorov
// Splitting into methods, and centralizing of model parameters HPW Feb 1999
// continued clean-up of interfaces and algorithms HPW 1999.
// Redesign of data structures and algorithms HPW Feb 1999
class G4QGSMSplitableHadron : public G4VSplitableHadron
{
public:
G4QGSMSplitableHadron();
G4QGSMSplitableHadron(const G4ReactionProduct & aPrimary);
G4QGSMSplitableHadron(const G4ReactionProduct & aPrimary, G4bool Direction);
G4QGSMSplitableHadron(const G4Nucleon & aNucleon);
G4QGSMSplitableHadron(const G4Nucleon & aNucleon, G4bool Direction);
virtual ~G4QGSMSplitableHadron();
const G4QGSMSplitableHadron & operator=(const G4QGSMSplitableHadron &right);
virtual void SplitUp();
virtual G4Parton * GetNextParton();
virtual G4Parton * GetNextAntiParton();
private:
void InitParameters();
void DiffractiveSplitUp();
void SoftSplitUp();
G4ThreeVector GaussianPt(G4double widthSquare, G4double maxPtSquare);
void GetValenceQuarkFlavors(const G4ParticleDefinition * aPart,
G4Parton *& Parton1, G4Parton *& Parton2);
G4Parton * BuildSeaQuark(G4bool isAntiQuark, G4int aPDGCode, G4int nSeaPair);
G4double SampleX(G4double anXmin, G4int nSea, G4int theTotalSea, G4double aBeta);
private:
// aggregated data
G4bool Direction; // FALSE is target. - candidate for more detailed design. @@@@ HPW
std::deque<G4Parton *> Color;
std::deque<G4Parton *> AntiColor;
private:
// associated classes
G4MesonSplitter theMesonSplitter;
G4BaryonSplitter theBaryonSplitter;
private:
// model parameters
G4double alpha;
G4double beta;
G4double theMinPz;
G4double StrangeSuppress;
G4double sigmaPt;
G4double widthOfPtSquare;
G4double minTransverseMass;
};
inline G4Parton* G4QGSMSplitableHadron::GetNextParton()
{
if(Color.size()==0) return 0;
G4Parton * result = Color.back();
Color.pop_back();
return result;
}
inline G4Parton* G4QGSMSplitableHadron::GetNextAntiParton()
{
if(AntiColor.size() == 0) return 0;
G4Parton * result = AntiColor.front();
AntiColor.pop_front();
return result;
}
#endif