Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-06 09:24:12

0001 // -*- C++ -*-
0002 //
0003 // GenericOLPAmplitude.h is a part of Herwig - A multi-purpose Monte Carlo event generator
0004 // Copyright (C) 2002-2019 The Herwig Collaboration
0005 //
0006 // Herwig is licenced under version 3 of the GPL, see COPYING for details.
0007 // Please respect the MCnet academic guidelines, see GUIDELINES for details.
0008 //
0009 #ifndef Herwig_GenericOLPAmplitude_H
0010 #define Herwig_GenericOLPAmplitude_H
0011 //
0012 // This is the declaration of the GenericOLPAmplitude class.
0013 //
0014 
0015 #include "Herwig/MatrixElement/Matchbox/Base/MatchboxOLPME.h"
0016 
0017 namespace Herwig {
0018 
0019 using namespace ThePEG;
0020 
0021 /**
0022  * \ingroup Matchbox
0023  * \author Simon Platzer
0024  *
0025  * \brief GenericOLPAmplitude implements OLP interfaces
0026  */
0027 class GenericOLPAmplitude: public MatchboxOLPME {
0028 
0029 public:
0030 
0031   /** @name Standard constructors and destructors. */
0032   //@{
0033   /**
0034    * The default constructor.
0035    */
0036   GenericOLPAmplitude();
0037 
0038   /**
0039    * The destructor.
0040    */
0041   virtual ~GenericOLPAmplitude();
0042   //@}
0043 
0044 public:
0045 
0046   /**
0047    * Start the one loop provider, if appropriate, giving order and
0048    * contract files
0049    */
0050   virtual void signOLP(const string&, const string&);
0051 
0052   /**
0053    * Start the one loop provider, if appropriate
0054    */
0055   virtual void startOLP(const string&, int& status);
0056 
0057   /**
0058    * Call OLP_EvalSubProcess and fill in the results
0059    */
0060   virtual void evalSubProcess() const;
0061 
0062   /**
0063    * Fill in results for the given colour correlator
0064    */
0065   virtual void evalColourCorrelator(pair<int,int> ij) const;
0066 
0067   /**
0068    * Return a positive helicity polarization vector for a gluon of
0069    * momentum p (with reference vector n) to be used when evaluating
0070    * spin correlations.
0071    */
0072   virtual LorentzVector<Complex> plusPolarization(const Lorentz5Momentum& p,
0073                           const Lorentz5Momentum& n,
0074                           int id = -1) const;
0075 
0076   /**
0077    * Fill in results for the given colour/spin correlator
0078    */
0079   virtual void evalSpinColourCorrelator(pair<int,int> ij) const;
0080 
0081 public:
0082 
0083   /** @name Functions used by the persistent I/O system. */
0084   //@{
0085   /**
0086    * Function used to write out object persistently.
0087    * @param os the persistent output stream written to.
0088    */
0089   void persistentOutput(PersistentOStream & os) const;
0090 
0091   /**
0092    * Function used to read in object persistently.
0093    * @param is the persistent input stream read from.
0094    * @param version the version number of the object when written.
0095    */
0096   void persistentInput(PersistentIStream & is, int version);
0097   //@}
0098 
0099   /**
0100    * The standard Init function used to initialize the interfaces.
0101    * Called exactly once for each class by the class description system
0102    * before the main function starts or
0103    * when this class is dynamically loaded.
0104    */
0105   static void Init();
0106 
0107 protected:
0108 
0109   /** @name Clone Methods. */
0110   //@{
0111   /**
0112    * Make a simple clone of this object.
0113    * @return a pointer to the new object.
0114    */
0115   virtual IBPtr clone() const;
0116 
0117   /** Make a clone of this object, possibly modifying the cloned object
0118    * to make it sane.
0119    * @return a pointer to the new object.
0120    */
0121   virtual IBPtr fullclone() const;
0122   //@}
0123 
0124 
0125 // If needed, insert declarations of virtual function defined in the
0126 // InterfacedBase class here (using ThePEG-interfaced-decl in Emacs).
0127 
0128 
0129 private:
0130 
0131   /**
0132    * The assignment operator is private and must never be called.
0133    * In fact, it should not even be implemented.
0134    */
0135   GenericOLPAmplitude & operator=(const GenericOLPAmplitude &) = delete;
0136 
0137 };
0138 
0139 }
0140 
0141 #endif /* Herwig_GenericOLPAmplitude_H */