herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Herwig::GoSamAmplitude Class Reference

GoSamAmplitude implements an interface to GoSam. More...

#include <GoSamAmplitude.h>

Inheritance diagram for Herwig::GoSamAmplitude:

Public Member Functions

 GoSamAmplitude ()
 The default constructor.
 
virtual void fillOrderFile (const map< pair< Process, int >, int > &procs, string OrderFileName)
 
virtual bool isCS () const
 Return true, if one loop corrections are given in the conventions of the integrated dipoles.
 
virtual bool isExpanded () const
 Return true, if one loop corrections are given in the conventions of everything expanded.
 
virtual bool isBDK () const
 Return true, if one loop corrections are given in the conventions of BDK.
 
virtual bool isDR () const
 Return true, if one loop corrections have been calculated in dimensional reduction.
 
virtual bool isDRbar () const
 Return true, if the amplitude is DRbar renormalized, otherwise MSbar is assumed.
 
virtual void signOLP (const string &, const string &)
 Start the one loop provider, if appropriate, giving order and contract files.
 
virtual bool checkOLPContract (string contractFileName)
 
virtual bool hasFinalStateSymmetry () const
 Return true, if this amplitude already includes symmetry factors for identical outgoing particles.
 
virtual bool buildGoSam ()
 
virtual void startOLP (const string &, int &status)
 Start the one loop provider, if appropriate.
 
virtual bool startOLP (const map< pair< Process, int >, int > &procs)
 Return the value of the dimensional regularization parameter.
 
void evalSubProcess () const
 Call OLP_EvalSubProcess and fill in the results.
 
virtual void evalColourCorrelator (pair< int, int > ij) const
 Fill in results for the given colour correlator.
 
virtual LorentzVector< ComplexplusPolarization (const Lorentz5Momentum &p, const Lorentz5Momentum &n, int inc) const
 Return a positive helicity polarization vector for a gluon of momentum p (with reference vector n) to be used when evaluating spin correlations.
 
virtual void evalSpinColourCorrelator (pair< int, int > ij) const
 Fill in results for the given colour/spin correlator.
 
void getids () const
 
int accuracyTargetNegExp () const
 
- Public Member Functions inherited from Herwig::MatchboxOLPME
 MatchboxOLPME ()
 The default constructor.
 
virtual bool canHandle (const PDVector &p, Ptr< MatchboxFactory >::tptr, bool) const
 Return true, if this amplitude can handle the given process.
 
virtual void orderInGs (unsigned int ogs)
 Set the (tree-level) order in \(g_S\) in which this matrix element should be evaluated.
 
virtual unsigned int orderInGs () const
 Return the (tree-level) order in \(g_S\) in which this matrix element is given.
 
virtual void orderInGem (unsigned int oge)
 Set the (tree-level) order in \(g_{EM}\) in which this matrix element should be evaluated.
 
virtual unsigned int orderInGem () const
 Return the (tree-level) order in \(g_{EM}\) in which this matrix element is given.
 
virtual bool isOLPTree () const
 Return true, if this amplitude is handled by a BLHA one-loop provider.
 
virtual bool isOLPLoop () const
 Return true, if this amplitude is handled by a BLHA one-loop provider.
 
virtual bool haveColourFlows () const
 Return true, if the colour basis is capable of assigning colour flows.
 
virtual void setXComb (tStdXCombPtr xc)
 Set the xcomb object.
 
virtual void prepareAmplitudes (Ptr< MatchboxMEBase >::tcptr)
 Calculate the tree level amplitudes for the phasespace point stored in lastXComb.
 
virtual double me2 () const
 Return the matrix element squared.
 
virtual double colourCorrelatedME2 (pair< int, int > ij) const
 Return the colour correlated matrix element.
 
virtual double largeNColourCorrelatedME2 (pair< int, int >, Ptr< ColourBasis >::tptr) const
 Return the large-N colour correlated matrix element.
 
virtual double largeNME2 (Ptr< ColourBasis >::tptr largeNBasis) const
 Return the largeN matrix element squared.
 
virtual double spinColourCorrelatedME2 (pair< int, int > ij, const SpinCorrelationTensor &c) const
 Return the colour and spin correlated matrix element.
 
virtual double spinCorrelatedME2 (pair< int, int > ij, const SpinCorrelationTensor &c) const
 Return the spin correlated matrix element.
 
virtual bool treeAmplitudes () const
 Return true, if tree-level contributions will be evaluated at amplitude level.
 
virtual bool haveOneLoop () const
 Return true, if this amplitude is capable of calculating one-loop (QCD) corrections.
 
virtual bool onlyOneLoop () const
 Return true, if this amplitude only provides one-loop (QCD) corrections.
 
virtual bool oneLoopAmplitudes () const
 Return true, if one-loop contributions will be evaluated at amplitude level.
 
virtual bool isExpanded () const
 Return true, if one loop corrections are given in the conventions of everything expanded.
 
virtual Energy2 mu2 () const
 Return the value of the dimensional regularization parameter.
 
virtual bool hasRunningAlphaS () const
 Indicate that this amplitude is running alphas by itself.
 
virtual bool hasRunningAlphaEW () const
 Indicate that this amplitude is running alphaew by itself.
 
virtual double oneLoopDoublePole () const
 If defined, return the coefficient of the pole in epsilon^2.
 
virtual double oneLoopSinglePole () const
 If defined, return the coefficient of the pole in epsilon.
 
virtual void prepareOneLoopAmplitudes (Ptr< MatchboxMEBase >::tcptr)
 Calculate the one-loop amplitudes for the phasespace point stored in lastXComb, if provided.
 
virtual double oneLoopInterference () const
 Return the one-loop/tree interference.
 
virtual void evalSubProcess () const =0
 Call OLP_EvalSubProcess and fill in the results.
 
virtual void evalColourCorrelator (pair< int, int > ij) const =0
 Fill in results for the given colour correlator.
 
virtual void evalSpinColourCorrelator (pair< int, int > ij) const =0
 Fill in results for the given colour/spin correlator.
 
virtual void evalSpinCorrelator (pair< int, int > ij) const
 Fill in results for the given spin correlator; may not be supported.
 
void persistentOutput (PersistentOStream &os) const
 Function used to write out object persistently.
 
void persistentInput (PersistentIStream &is, int version)
 Function used to read in object persistently.
 
- Public Member Functions inherited from Herwig::MatchboxAmplitude
 MatchboxAmplitude ()
 The default constructor.
 
virtual Complex value (const tcPDVector &particles, const vector< Lorentz5Momentum > &momenta, const vector< int > &helicities)
 Return the amplitude.
 
Ptr< MatchboxFactory >::tptr factory () const
 Return the factory which produced this matrix element.
 
virtual bool canHandle (const PDVector &) const
 Return true, if this amplitude can handle the given process.
 
virtual int nDimAdditional () const
 Return the number of random numbers required to evaluate this amplitude at a fixed phase space point.
 
virtual Ptr< MatchboxMEBase >::ptr makeME (const PDVector &) const
 Return a ME instance appropriate for this amplitude and the given subprocesses.
 
Ptr< StandardModel >::tcptr standardModel ()
 Return the Herwig StandardModel object.
 
virtual bool hasInitialAverage () const
 Return true, if this amplitude already includes averaging over incoming parton's quantum numbers.
 
virtual bool needsOLPCorrelators () const
 Return true, if colour and spin correlated matrix elements should be ordered from the OLP.
 
virtual void olpOrderFileHeader (ostream &) const
 Write the order file header.
 
virtual void olpOrderFileProcesses (ostream &, const map< pair< Process, int >, int > &procs) const
 Write the order file process list.
 
virtual bool isExternal () const
 Return true, if this amplitude needs to initialize an external code.
 
virtual bool initializeExternal ()
 Initialize this amplitude.
 
virtual int externalId (const cPDVector &)
 Return a generic process id for the given process.
 
const map< long, Energy > & reshuffleMasses () const
 Return the map with masses to be used for amplitude evaluation.
 
void checkReshuffling (Ptr< MatchboxPhasespace >::tptr)
 Check if reshuffling is needed at all.
 
virtual bool hasAmplitudeMomenta () const
 Return true, if this amplitude makes use of amplitudeMomenta.
 
virtual Ptr< ColourBasis >::tptr colourBasis () const
 Return the colour basis.
 
virtual Selector< const ColourLines * > colourGeometries (tcDiagPtr diag) const
 Return a Selector with possible colour geometries for the selected diagram weighted by their relative probabilities.
 
const string & colourOrderingString (size_t id) const
 Return an ordering identifier for the current subprocess and colour absis tensor index.
 
const set< vector< size_t > > & colourOrdering (size_t id) const
 Return an ordering identifier for the current subprocess and colour absis tensor index.
 
Lorentz5Momentum amplitudeMomentum (int) const
 Return the momentum as crossed appropriate for this amplitude.
 
virtual void fillCrossingMap (size_t shift=0)
 Perform a normal ordering of external legs and fill the crossing information as.
 
virtual set< vector< int > > generateHelicities () const
 Generate the helicity combinations.
 
virtual vector< unsigned int > physicalHelicities (const vector< int > &) const
 Return the helicity combination of the physical process in the conventions used by the spin correlation algorithm.
 
double colourCharge (tcPDPtr) const
 Return the colour charge of a given leg.
 
double largeNColourCharge (tcPDPtr) const
 Return the large-N charge of a given leg.
 
bool trivialColourLegs () const
 Return true if trivial colour configuration.
 
virtual bool canFillRhoMatrix () const
 Return true, if this amplitude is capable of consistently filling the rho matrices for the spin correllations.
 
virtual Complex evaluate (size_t, const vector< int > &, Complex &)
 Evaluate the amplitude for the given colour tensor id and helicity assignment.
 
virtual Ptr< MatchboxAmplitude >::tptr oneLoopAmplitude () const
 Return the one-loop amplitude, if applicable.
 
virtual void disableOneLoop ()
 Diasble one-loop functionality if not needed.
 
virtual Complex evaluateOneLoop (size_t, const vector< int > &)
 Evaluate the amplitude for the given colour tensor id and helicity assignment.
 
virtual void flushCaches ()
 Flush all cashes.
 
Ptr< MatchboxAmplitude >::ptr cloneMe () const
 Clone this amplitude.
 
virtual void cloneDependencies (const std::string &prefix="", bool slim=false)
 Clone the dependencies, using a given prefix.
 
void persistentOutput (PersistentOStream &os) const
 Function used to write out object persistently.
 
void persistentInput (PersistentIStream &is, int version)
 Function used to read in object persistently.
 
- Public Member Functions inherited from ThePEG::Amplitude
Amplitudeoperator= (const Amplitude &)=delete
 
- Public Member Functions inherited from ThePEG::HandlerBaseT< UseRandom >
double rnd () const
 
double rnd (double xu) const
 
double rnd (double xl, double xu) const
 
bool rndbool () const
 
bool rndbool (double p) const
 
bool rndbool (double p1, double p2) const
 
int rndsign (double p1, double p2, double p3) const
 
int rnd2 (double p0, double p1) const
 
int rnd3 (double p0, double p1, double p2) const
 
int rnd4 (double p0, double p1, double p2, double p3) const
 
long irnd (long xu=2) const
 
long irnd (long xl, long xu) const
 
const StandardModelBaseSM () const
 
tSMPtr standardModel () const
 
- Public Member Functions inherited from ThePEG::Interfaced
virtual bool defaultInit ()
 
PPtr getParticle (PID) const
 
PDPtr getParticleData (PID) const
 
bool used () const
 
void useMe () const
 
tEGPtr generator () const
 
void persistentOutput (PersistentOStream &os) const
 
void persistentInput (PersistentIStream &is, int version)
 
PPtr getParticle (PID) const
 
PDPtr getParticleData (PID) const
 
bool used () const
 
void useMe () const
 
tEGPtr generator () const
 
- Public Member Functions inherited from ThePEG::InterfacedBase
string fullName () const
 
string name () const
 
string path () const
 
string comment () const
 
void setup (istream &is)
 
void update ()
 
void init ()
 
virtual bool preInitialize () const
 
void initrun ()
 
void finish ()
 
void touch ()
 
void reset ()
 
void clear ()
 
InitState state () const
 
bool locked () const
 
bool touched () const
 
virtual IBPtr fullclone () const
 
void persistentOutput (PersistentOStream &os) const
 
void persistentInput (PersistentIStream &is, int version)
 
virtual void debugme () const
 
void update ()
 
void init ()
 
virtual bool preInitialize () const
 
void initrun ()
 
void finish ()
 
void touch ()
 
void reset ()
 
void clear ()
 
InitState state () const
 
bool locked () const
 
bool touched () const
 
virtual IBPtr fullclone () const
 
- Public Member Functions inherited from ThePEG::Base
void debug () const
 
virtual void debugme () const
 
- Public Member Functions inherited from ThePEG::Pointer::ReferenceCounted
CounterType referenceCount () const
 
- Public Member Functions inherited from ThePEG::Named
 Named (const string &newName=string())
 
 Named (const Named &)=default
 
const string & name () const
 
bool operator== (const Named &other) const
 
bool operator< (const Named &other) const
 
- Public Member Functions inherited from ThePEG::LastXCombInfo< StandardXComb >
const XC & lastXComb () const
 
const XC & lastXComb () const
 
tXCPtr lastXCombPtr () const
 
tXCPtr lastXCombPtr () const
 
const XC & lastHeadXComb () const
 
const XC & lastHeadXComb () const
 
tXCPtr lastHeadXCombPtr () const
 
tXCPtr lastHeadXCombPtr () const
 
const EventHandlerlastEventHandler () const
 
const EventHandlerlastEventHandler () const
 
tPExtrPtr lastExtractor () const
 
tPExtrPtr lastExtractor () const
 
PDFT pdf (tcPPtr parton) const
 
PDFT pdf (tcPPtr parton) const
 
const CutslastCuts () const
 
const CutslastCuts () const
 
tCutsPtr lastCutsPtr () const
 
tCutsPtr lastCutsPtr () const
 
const PPairlastParticles () const
 
const PPairlastParticles () const
 
Energy2 lastS () const
 
Energy2 lastS () const
 
const PPairlastPartons () const
 
const PPairlastPartons () const
 
Energy2 lastSHat () const
 
Energy2 lastSHat () const
 
double lastTau () const
 
double lastTau () const
 
double lastY () const
 
double lastY () const
 
double lastP1 () const
 
double lastP1 () const
 
double lastP2 () const
 
double lastP2 () const
 
double lastL1 () const
 
double lastL1 () const
 
double lastL2 () const
 
double lastL2 () const
 
double lastX1 () const
 
double lastX1 () const
 
double lastX2 () const
 
double lastX2 () const
 
double lastE1 () const
 
double lastE1 () const
 
double lastE2 () const
 
double lastE2 () const
 
double lastFL1L2 () const
 
double lastFL1L2 () const
 
Energy2 lastScale () const
 
double lastAlphaS () const
 
double lastAlphaEM () const
 
const vector< Lorentz5Momentum > & meMomenta () const
 
double lastME2 () const
 
double lastPreweight () const
 
double jacobian () const
 
CrossSection lastMECrossSection () const
 
double lastMEPDFWeight () const
 
double lastMECouplings () const
 
tSubProPtr subProcess () const
 
const cPDVectormePartonData () const
 
- Public Member Functions inherited from Herwig::LastMatchboxXCombInfo
 LastMatchboxXCombInfo ()
 Default constructor.
 
MatchboxXCombDatalastMatchboxXComb () const
 Return a pointer to the last selected XComb.
 
MatchboxXCombDatalastHeadMatchboxXComb () const
 If the last selected XComb object belongs to a group of XComb's return a pointer to the head XComb object for this group.
 
const vector< int > & crossingMap () const
 The crossing information as filled by the last call to fillCrossingMap()
 
const map< size_t, size_t > & amplitudeToColourMap () const
 The colour crossing information as filled by the last call to fillCrossingMap()
 
const map< size_t, size_t > & colourToAmplitudeMap () const
 The colour crossing information as filled by the last call to fillCrossingMap()
 
double crossingSign () const
 The crossing sign as filled by the last call to fillCrossingMap()
 
Energy2 lastRenormalizationScale () const
 The last renormalization scale.
 
const cPDVectoramplitudePartonData () const
 The amplitude parton data.
 
const vector< Lorentz5Momentum > & amplitudeMomenta () const
 The crossed momenta.
 
bool calculateTreeAmplitudes () const
 True, if the the tree level amplitudes need to be calculated.
 
const map< vector< int >, CVector > & lastAmplitudes () const
 The amplitude values which have been contributing to the last call of prepareAmplitudes.
 
const map< vector< int >, CVector > & lastLargeNAmplitudes () const
 The leading N amplitude values which have been contributing to the last call of prepareAmplitudes.
 
bool calculateOneLoopAmplitudes () const
 True, if the the one-loop amplitudes need to be calculated.
 
const map< vector< int >, CVector > & lastOneLoopAmplitudes () const
 The one-loop amplitude values which have been contributing to the last call of prepareAmplitudes.
 
bool calculateTreeME2 () const
 True, if the tree-level matrix element squared needs to be calculated.
 
double lastTreeME2 () const
 The last tree-level matrix element squared.
 
bool calculateLargeNME2 () const
 True, if the tree-level matrix element squared needs to be calculated.
 
double lastLargeNME2 () const
 The last tree-level matrix element squared.
 
bool calculateOneLoopInterference () const
 True, if the one-loop/tree-level interference.
 
double lastOneLoopInterference () const
 The last one-loop/tree-level interference.
 
bool calculateOneLoopPoles () const
 True, if the one-loop/tree-level interference.
 
pair< double, double > lastOneLoopPoles () const
 The last one-loop/tree-level interference.
 
bool calculateColourCorrelator (const pair< int, int > &ij) const
 True, if the indexed colour correlated matrix element needs to be calculated.
 
double lastColourCorrelator (const pair< int, int > &ij) const
 The colour correlated matrix element.
 
bool calculateLargeNColourCorrelator (const pair< int, int > &ij) const
 True, if the indexed large-N colour correlated matrix element needs to be calculated.
 
double lastLargeNColourCorrelator (const pair< int, int > &ij) const
 The large-N colour correlated matrix element.
 
bool calculateColourSpinCorrelator (const pair< int, int > &ij) const
 True, if the indexed colour/spin correlated matrix element needs to be calculated.
 
Complex lastColourSpinCorrelator (const pair< int, int > &ij) const
 The colour/spin correlated matrix element.
 
bool calculateSpinCorrelator (const pair< int, int > &ij) const
 True, if the indexed spin correlated matrix element needs to be calculated.
 
Complex lastSpinCorrelator (const pair< int, int > &ij) const
 The spin correlated matrix element.
 
unsigned int nLight () const
 Return the number of light flavours to be considered for this process.
 
vector< long > nLightJetVec () const
 Return the vector that contains the PDG ids of the light flavours, which are contained in the jet particle group.
 
vector< long > nHeavyJetVec () const
 Return the vector that contains the PDG ids of the heavy flavours, which are contained in the jet particle group.
 
vector< long > nLightProtonVec () const
 Return the vector that contains the PDG ids of the light flavours, which are contained in the proton particle group.
 
size_t colourBasisDim () const
 Get the dimensionality of the colour basis for this process.
 
int nDimPhasespace () const
 Return the number of degrees of freedom required by the phase space generator.
 
int nDimAmplitude () const
 Return the number of degrees of freedom required by the amplitude.
 
int nDimInsertions () const
 Return the number of degrees of freedom required by the insertion operators.
 
const vector< double > & amplitudeRandomNumbers () const
 Get the additional random numbers required by the amplitude.
 
const vector< double > & insertionRandomNumbers () const
 Get the additional random numbers required by the insertion operator.
 
const map< int, double > & diagramWeights () const
 Return the diagram weights indexed by diagram id.
 
const set< pair< size_t, size_t > > & singularLimits () const
 Return the singular limits.
 
const set< pair< size_t, size_t > >::const_iterator & lastSingularLimit () const
 Return the last matched singular limit.
 
Ptr< StandardModel >::tcptr hwStandardModel () const
 Get the Herwig StandardModel object.
 
double symmetryFactor () const
 Return the symmetry factor.
 
const vector< int > & olpId () const
 Return the OLP process id.
 
double * olpMomenta () const
 Return the olp momentum vector.
 
void fillOLPMomenta (const vector< Lorentz5Momentum > &mm, const cPDVector &mePartonData, const map< long, Energy > &reshuffleMap) const
 Fill the olp momentum vector.
 

Protected Member Functions

Standard Interfaced functions.
virtual void doinit ()
 Initialize this object after the setup phase before saving an EventGenerator to disk.
 
virtual void doinitrun ()
 Initialize this object.
 
- Protected Member Functions inherited from Herwig::MatchboxOLPME
- Protected Member Functions inherited from Herwig::MatchboxAmplitude
- Protected Member Functions inherited from ThePEG::Interfaced
void reporeg (IBPtr object, string name) const
 
bool setDefaultReference (PtrT &ptr, string classname, string objectname)
 
 Interfaced (const string &newName)
 
 Interfaced (const Interfaced &i)
 
void setGenerator (tEGPtr generator)
 
- Protected Member Functions inherited from ThePEG::InterfacedBase
virtual void readSetup (istream &is)
 
virtual void doupdate ()
 
virtual void doinit ()
 
virtual void doinitrun ()
 
virtual void dofinish ()
 
virtual IVector getReferences ()
 
virtual void rebind (const TranslationMap &)
 
virtual IBPtr clone () const=0
 
 InterfacedBase (string newName)
 
 InterfacedBase (const InterfacedBase &i)
 
virtual void readSetup (istream &is)
 
virtual void doupdate ()
 
virtual void doinit ()
 
virtual void doinitrun ()
 
virtual void dofinish ()
 
virtual IVector getReferences ()
 
virtual void rebind (const TranslationMap &)
 
- Protected Member Functions inherited from ThePEG::Pointer::ReferenceCounted
 ReferenceCounted (const ReferenceCounted &)
 
ReferenceCountedoperator= (const ReferenceCounted &)
 
- Protected Member Functions inherited from ThePEG::Named
const Namedoperator= (const Named &other)
 
const string & name (const string &newName)
 
- Protected Member Functions inherited from Herwig::LastMatchboxXCombInfo
vector< int > & crossingMap ()
 The crossing information as filled by the last call to fillCrossingMap()
 
map< size_t, size_t > & amplitudeToColourMap ()
 The colour crossing information as filled by the last call to fillCrossingMap()
 
map< size_t, size_t > & colourToAmplitudeMap ()
 The colour crossing information as filled by the last call to fillCrossingMap()
 
void crossingSign (double c)
 The crossing sign as filled by the last call to fillCrossingMap()
 
void lastRenormalizationScale (Energy2 lrs)
 The last renormalization scale.
 
cPDVectoramplitudePartonData ()
 The amplitude parton data.
 
vector< Lorentz5Momentum > & amplitudeMomenta ()
 The crossed momenta.
 
void haveTreeAmplitudes (bool f=true)
 True, if the the tree level amplitudes need to be calculated.
 
map< vector< int >, CVector > & lastAmplitudes ()
 The amplitude values which have been contributing to the last call of prepareAmplitudes.
 
map< vector< int >, CVector > & lastLargeNAmplitudes ()
 The leading N amplitude values which have been contributing to the last call of prepareAmplitudes.
 
void haveOneLoopAmplitudes (bool f=true)
 True, if the the one-loop amplitudes need to be calculated.
 
map< vector< int >, CVector > & lastOneLoopAmplitudes ()
 The one-loop amplitude values which have been contributing to the last call of prepareAmplitudes.
 
void lastTreeME2 (double v) const
 The last tree-level matrix element squared.
 
void lastLargeNME2 (double v) const
 The last tree-level matrix element squared.
 
void lastOneLoopInterference (double v) const
 The last one-loop/tree-level interference.
 
void lastOneLoopPoles (pair< double, double > v) const
 The last one-loop/tree-level interference.
 
void lastColourCorrelator (const pair< int, int > &ij, double v) const
 The colour correlated matrix element.
 
void lastLargeNColourCorrelator (const pair< int, int > &ij, double v) const
 The large-N colour correlated matrix element.
 
void lastColourSpinCorrelator (const pair< int, int > &ij, Complex v) const
 The colour/spin correlated matrix element.
 
void lastSpinCorrelator (const pair< int, int > &ij, Complex v) const
 The spin correlated matrix element.
 
void nLight (unsigned int n)
 Set the number of light flavours to be considered for this process.
 
void nLightJetVec (int n)
 Set the elements of the vector that contains the PDG ids of the light flavours, which are contained in the jet particle group.
 
void nHeavyJetVec (int n)
 Set the elements of the vector that contains the PDG ids of the heavy flavours, which are contained in the jet particle group.
 
void nLightProtonVec (int n)
 Set the elements of the vector that contains the PDG ids of the light flavours, which are contained in the proton particle group.
 
void colourBasisDim (size_t d)
 Set the dimensionality of the colour basis for this process.
 
void nDimPhasespace (int d)
 Set the number of degrees of freedom required by the phase space generator.
 
void nDimAmplitude (int d)
 Set the number of degrees of freedom required by the amplitude.
 
void nDimInsertions (int d)
 Set the number of degrees of freedom required by the insertion operators.
 
vector< double > & amplitudeRandomNumbers ()
 Access the additional random numbers required by the amplitude.
 
vector< double > & insertionRandomNumbers ()
 Access the additional random numbers required by the insertion operator.
 
map< int, double > & diagramWeights ()
 Access the diagram weights indexed by diagram id.
 
set< pair< size_t, size_t > > & singularLimits ()
 Access the singular limits.
 
set< pair< size_t, size_t > >::const_iterator & lastSingularLimit ()
 Access the last matched singular limit.
 
void hwStandardModel (Ptr< StandardModel >::tcptr sm)
 Set the Herwig StandardModel object.
 
void symmetryFactor (double f) const
 Set the symmetry factor.
 
void olpId (int pType, int id)
 Set the OLP process id.
 
void lastMatchboxXComb (tStdXCombPtr xc)
 Set the XComb pointer cast to MatchboxXComb.
 

Clone Methods.

vector< double > colourCorrelatorResults
 Store colour correlator results.
 
vector< double > spinColourCorrelatorResults
 Store spin colour correlator results.
 
vector< int > idpair
 first is the olp id from herwig, second the answer from gosam
 
vector< string > idtypepair
 first is the olp id from herwig, second the amplitude type
 
map< int, gosamprocinfoprocessmap
 Map to store all processes handled by this Amplitude.
 
string gosamPathInterface
 
string gosamSetupInFileNameInterface
 
string gosamBuildScript
 
string gosamPath
 
string gosamSourcePath
 
string gosamInstallPath
 
string gosamSetupInFileName
 
string orderFileTitle
 
string contractFileTitle
 
string contractFileName
 
string orderFileName
 
string accuracyFileTitle
 
string accuracyFile
 
int theAccuracyTarget
 
bool theCodeExists
 
bool theFormOpt
 
bool theNinja
 
bool theHiggsEff
 
bool theMassiveLeptons
 
int theLoopInducedOption
 
bool isitDR
 
bool doneGoSamInit
 
bool doneGoSamInitRun
 
vector< int > massiveParticles
 The PDG codes of those quarks with mass.
 
string bindir_
 Location of the installed executables.
 
string pkgdatadir_
 Location of the data files.
 
string GoSamPrefix_
 Location of GOSAM.
 
virtual IBPtr clone () const
 Make a simple clone of this object.
 
virtual IBPtr fullclone () const
 Make a clone of this object, possibly modifying the cloned object to make it sane.
 
GoSamAmplitudeoperator= (const GoSamAmplitude &)=delete
 The assignment operator is private and must never be called.
 
void setupGoSamIn (string setupGoSamInFile)
 Method to create the setup.in file for GoSam.
 

Functions used by the persistent I/O system.

void persistentOutput (PersistentOStream &os) const
 Function used to write out object persistently.
 
void persistentInput (PersistentIStream &is, int version)
 Function used to read in object persistently.
 
static void Init ()
 The standard Init function used to initialize the interfaces.
 

Additional Inherited Members

- Public Types inherited from ThePEG::InterfacedBase
enum  InitState
 
- Public Types inherited from ThePEG::Pointer::ReferenceCounted
typedef unsigned int CounterType
 
- Public Types inherited from ThePEG::LastXCombInfo< StandardXComb >
typedef ThePEG::Ptr< XC >::pointer XCPtr
 
typedef ThePEG::Ptr< XC >::const_pointer cXCPtr
 
typedef ThePEG::Ptr< XC >::transient_pointer tXCPtr
 
typedef ThePEG::Ptr< XC >::transient_const_pointer tcXCPtr
 
- Static Public Member Functions inherited from Herwig::MatchboxOLPME
static void Init ()
 The standard Init function used to initialize the interfaces.
 
- Static Public Member Functions inherited from Herwig::MatchboxAmplitude
static void Init ()
 The standard Init function used to initialize the interfaces.
 
- Static Public Member Functions inherited from ThePEG::Amplitude
static void Init ()
 
- Static Public Member Functions inherited from ThePEG::HandlerBase
static void Init ()
 
- Static Public Member Functions inherited from ThePEG::Interfaced
static void Init ()
 
- Static Public Member Functions inherited from ThePEG::InterfacedBase
static void Init ()
 
- Static Public Member Functions inherited from ThePEG::Base
static void Init ()
 
- Public Attributes inherited from ThePEG::InterfacedBase
 initializing
 
 uninitialized
 
 initialized
 
 runready
 
- Public Attributes inherited from ThePEG::Pointer::ReferenceCounted
const unsigned long uniqueId
 
- Static Public Attributes inherited from ThePEG::Amplitude
static AbstractNoPIOClassDescription< AmplitudeinitAmplitude
 
- Static Protected Member Functions inherited from Herwig::MatchboxOLPME
static string & optionalContractFile ()
 Set an optional contract file name to be used.
 
static bool & didStartOLP ()
 Indicate that the OLP has been started.
 
- Static Protected Member Functions inherited from ThePEG::Interfaced
static void registerRepository (IBPtr)
 
static void registerRepository (IBPtr, string newName)
 
- Protected Attributes inherited from ThePEG::LastXCombInfo< StandardXComb >
XCPtr theLastXComb
 
- Protected Attributes inherited from Herwig::LastMatchboxXCombInfo
MatchboxXCombDatatheLastMatchboxXComb
 The XComb pointer cast to MatchboxXComb.
 
MatchboxXCombDatatheLastHeadMatchboxXComb
 The head XComb pointer cast to MatchboxXComb.
 

Detailed Description

GoSamAmplitude implements an interface to GoSam.

Author
Simon Platzer

Definition at line 60 of file GoSamAmplitude.h.

Member Function Documentation

◆ accuracyTargetNegExp()

int Herwig::GoSamAmplitude::accuracyTargetNegExp ( ) const
inline

Definition at line 139 of file GoSamAmplitude.h.

◆ clone()

virtual IBPtr Herwig::GoSamAmplitude::clone ( ) const
protectedvirtual

Make a simple clone of this object.

Returns
a pointer to the new object.

Implements ThePEG::InterfacedBase.

◆ doinit()

virtual void Herwig::GoSamAmplitude::doinit ( )
protectedvirtual

Initialize this object after the setup phase before saving an EventGenerator to disk.

Exceptions
InitExceptionif object could not be initialized properly.

Reimplemented from Herwig::MatchboxOLPME.

◆ doinitrun()

virtual void Herwig::GoSamAmplitude::doinitrun ( )
protectedvirtual

Initialize this object.

Called in the run phase just before a run begins.

Reimplemented from Herwig::MatchboxOLPME.

◆ evalColourCorrelator()

virtual void Herwig::GoSamAmplitude::evalColourCorrelator ( pair< int, int >  ij) const
virtual

Fill in results for the given colour correlator.

Implements Herwig::MatchboxOLPME.

◆ evalSpinColourCorrelator()

virtual void Herwig::GoSamAmplitude::evalSpinColourCorrelator ( pair< int, int >  ij) const
virtual

Fill in results for the given colour/spin correlator.

Implements Herwig::MatchboxOLPME.

◆ evalSubProcess()

void Herwig::GoSamAmplitude::evalSubProcess ( ) const
virtual

Call OLP_EvalSubProcess and fill in the results.

Implements Herwig::MatchboxOLPME.

◆ fullclone()

virtual IBPtr Herwig::GoSamAmplitude::fullclone ( ) const
protectedvirtual

Make a clone of this object, possibly modifying the cloned object to make it sane.

Returns
a pointer to the new object.

Reimplemented from ThePEG::InterfacedBase.

◆ hasFinalStateSymmetry()

virtual bool Herwig::GoSamAmplitude::hasFinalStateSymmetry ( ) const
inlinevirtual

Return true, if this amplitude already includes symmetry factors for identical outgoing particles.

Reimplemented from Herwig::MatchboxAmplitude.

Definition at line 92 of file GoSamAmplitude.h.

◆ Init()

static void Herwig::GoSamAmplitude::Init ( )
static

The standard Init function used to initialize the interfaces.

Called exactly once for each class by the class description system before the main function starts or when this class is dynamically loaded.

◆ isBDK()

virtual bool Herwig::GoSamAmplitude::isBDK ( ) const
inlinevirtual

Return true, if one loop corrections are given in the conventions of BDK.

Reimplemented from Herwig::MatchboxAmplitude.

Definition at line 75 of file GoSamAmplitude.h.

◆ isCS()

virtual bool Herwig::GoSamAmplitude::isCS ( ) const
inlinevirtual

Return true, if one loop corrections are given in the conventions of the integrated dipoles.

Reimplemented from Herwig::MatchboxAmplitude.

Definition at line 73 of file GoSamAmplitude.h.

◆ isDR()

virtual bool Herwig::GoSamAmplitude::isDR ( ) const
inlinevirtual

Return true, if one loop corrections have been calculated in dimensional reduction.

Otherwise conventional dimensional regularization is assumed. Note that renormalization is always assumed to be MSbar.

Reimplemented from Herwig::MatchboxAmplitude.

Definition at line 76 of file GoSamAmplitude.h.

◆ isDRbar()

virtual bool Herwig::GoSamAmplitude::isDRbar ( ) const
inlinevirtual

Return true, if the amplitude is DRbar renormalized, otherwise MSbar is assumed.

Reimplemented from Herwig::MatchboxAmplitude.

Definition at line 77 of file GoSamAmplitude.h.

◆ isExpanded()

virtual bool Herwig::GoSamAmplitude::isExpanded ( ) const
inlinevirtual

Return true, if one loop corrections are given in the conventions of everything expanded.

Reimplemented from Herwig::MatchboxOLPME.

Definition at line 74 of file GoSamAmplitude.h.

◆ operator=()

GoSamAmplitude & Herwig::GoSamAmplitude::operator= ( const GoSamAmplitude )
privatedelete

The assignment operator is private and must never be called.

In fact, it should not even be implemented.

◆ persistentInput()

void Herwig::GoSamAmplitude::persistentInput ( PersistentIStream is,
int  version 
)

Function used to read in object persistently.

Parameters
isthe persistent input stream read from.
versionthe version number of the object when written.

◆ persistentOutput()

void Herwig::GoSamAmplitude::persistentOutput ( PersistentOStream os) const

Function used to write out object persistently.

Parameters
osthe persistent output stream written to.

◆ plusPolarization()

virtual LorentzVector< Complex > Herwig::GoSamAmplitude::plusPolarization ( const Lorentz5Momentum &  p,
const Lorentz5Momentum &  n,
int  inc 
) const
virtual

Return a positive helicity polarization vector for a gluon of momentum p (with reference vector n) to be used when evaluating spin correlations.

Reimplemented from Herwig::MatchboxAmplitude.

◆ signOLP()

virtual void Herwig::GoSamAmplitude::signOLP ( const string &  ,
const string &   
)
virtual

Start the one loop provider, if appropriate, giving order and contract files.

Reimplemented from Herwig::MatchboxAmplitude.

◆ startOLP() [1/2]

virtual bool Herwig::GoSamAmplitude::startOLP ( const map< pair< Process, int >, int > &  procs)
virtual

Return the value of the dimensional regularization parameter.

Note that renormalization scale dependence is fully restored in DipoleIOperator. Start the one loop provider, if appropriate. This default implementation writes an BLHA 2.0 order file and starts the OLP

Reimplemented from Herwig::MatchboxAmplitude.

◆ startOLP() [2/2]

virtual void Herwig::GoSamAmplitude::startOLP ( const string &  ,
int &  status 
)
virtual

Start the one loop provider, if appropriate.

Reimplemented from Herwig::MatchboxAmplitude.

Member Data Documentation

◆ accuracyFile

string Herwig::GoSamAmplitude::accuracyFile
mutableprivate

Definition at line 263 of file GoSamAmplitude.h.

◆ accuracyFileTitle

string Herwig::GoSamAmplitude::accuracyFileTitle
mutableprivate

Definition at line 262 of file GoSamAmplitude.h.

◆ bindir_

string Herwig::GoSamAmplitude::bindir_
protected

Location of the installed executables.

Definition at line 294 of file GoSamAmplitude.h.

◆ colourCorrelatorResults

vector<double> Herwig::GoSamAmplitude::colourCorrelatorResults
mutableprivate

Store colour correlator results.

Definition at line 225 of file GoSamAmplitude.h.

◆ contractFileName

string Herwig::GoSamAmplitude::contractFileName
mutableprivate

Definition at line 259 of file GoSamAmplitude.h.

◆ contractFileTitle

string Herwig::GoSamAmplitude::contractFileTitle
mutableprivate

Definition at line 258 of file GoSamAmplitude.h.

◆ doneGoSamInit

bool Herwig::GoSamAmplitude::doneGoSamInit
mutableprivate

Definition at line 276 of file GoSamAmplitude.h.

◆ doneGoSamInitRun

bool Herwig::GoSamAmplitude::doneGoSamInitRun
mutableprivate

Definition at line 277 of file GoSamAmplitude.h.

◆ gosamBuildScript

string Herwig::GoSamAmplitude::gosamBuildScript
mutableprivate

Definition at line 249 of file GoSamAmplitude.h.

◆ gosamInstallPath

string Herwig::GoSamAmplitude::gosamInstallPath
mutableprivate

Definition at line 253 of file GoSamAmplitude.h.

◆ gosamPath

string Herwig::GoSamAmplitude::gosamPath
mutableprivate

Definition at line 251 of file GoSamAmplitude.h.

◆ gosamPathInterface

string Herwig::GoSamAmplitude::gosamPathInterface
mutableprivate

Definition at line 247 of file GoSamAmplitude.h.

◆ GoSamPrefix_

string Herwig::GoSamAmplitude::GoSamPrefix_
protected

Location of GOSAM.

Definition at line 304 of file GoSamAmplitude.h.

◆ gosamSetupInFileName

string Herwig::GoSamAmplitude::gosamSetupInFileName
mutableprivate

Definition at line 255 of file GoSamAmplitude.h.

◆ gosamSetupInFileNameInterface

string Herwig::GoSamAmplitude::gosamSetupInFileNameInterface
mutableprivate

Definition at line 248 of file GoSamAmplitude.h.

◆ gosamSourcePath

string Herwig::GoSamAmplitude::gosamSourcePath
mutableprivate

Definition at line 252 of file GoSamAmplitude.h.

◆ idpair

vector<int> Herwig::GoSamAmplitude::idpair
mutableprivate

first is the olp id from herwig, second the answer from gosam

Definition at line 235 of file GoSamAmplitude.h.

◆ idtypepair

vector<string> Herwig::GoSamAmplitude::idtypepair
mutableprivate

first is the olp id from herwig, second the amplitude type

Definition at line 240 of file GoSamAmplitude.h.

◆ isitDR

bool Herwig::GoSamAmplitude::isitDR
private

Definition at line 274 of file GoSamAmplitude.h.

◆ massiveParticles

vector<int> Herwig::GoSamAmplitude::massiveParticles
private

The PDG codes of those quarks with mass.

Definition at line 282 of file GoSamAmplitude.h.

◆ orderFileName

string Herwig::GoSamAmplitude::orderFileName
mutableprivate

Definition at line 260 of file GoSamAmplitude.h.

◆ orderFileTitle

string Herwig::GoSamAmplitude::orderFileTitle
mutableprivate

Definition at line 257 of file GoSamAmplitude.h.

◆ pkgdatadir_

string Herwig::GoSamAmplitude::pkgdatadir_
protected

Location of the data files.

Definition at line 299 of file GoSamAmplitude.h.

◆ processmap

map<int , gosamprocinfo > Herwig::GoSamAmplitude::processmap
private

Map to store all processes handled by this Amplitude.

Definition at line 245 of file GoSamAmplitude.h.

◆ spinColourCorrelatorResults

vector<double> Herwig::GoSamAmplitude::spinColourCorrelatorResults
mutableprivate

Store spin colour correlator results.

Definition at line 230 of file GoSamAmplitude.h.

◆ theAccuracyTarget

int Herwig::GoSamAmplitude::theAccuracyTarget
private

Definition at line 264 of file GoSamAmplitude.h.

◆ theCodeExists

bool Herwig::GoSamAmplitude::theCodeExists
private

Definition at line 266 of file GoSamAmplitude.h.

◆ theFormOpt

bool Herwig::GoSamAmplitude::theFormOpt
private

Definition at line 267 of file GoSamAmplitude.h.

◆ theHiggsEff

bool Herwig::GoSamAmplitude::theHiggsEff
private

Definition at line 269 of file GoSamAmplitude.h.

◆ theLoopInducedOption

int Herwig::GoSamAmplitude::theLoopInducedOption
private

Definition at line 272 of file GoSamAmplitude.h.

◆ theMassiveLeptons

bool Herwig::GoSamAmplitude::theMassiveLeptons
private

Definition at line 270 of file GoSamAmplitude.h.

◆ theNinja

bool Herwig::GoSamAmplitude::theNinja
private

Definition at line 268 of file GoSamAmplitude.h.


The documentation for this class was generated from the following file: