|
|
|||
File indexing completed on 2026-08-06 09:24:08
0001 // -*- C++ -*- 0002 // 0003 // MEPP2GammaGamma.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_MEPP2GammaGamma_H 0010 #define HERWIG_MEPP2GammaGamma_H 0011 // 0012 // This is the declaration of the MEPP2GammaGamma class. 0013 // 0014 0015 #include "Herwig/MatrixElement/HwMEBase.h" 0016 #include "ThePEG/Helicity/Vertex/AbstractFFVVertex.h" 0017 #include "Herwig/MatrixElement/ProductionMatrixElement.h" 0018 #include "ThePEG/Helicity/WaveFunction/SpinorWaveFunction.h" 0019 #include "ThePEG/Helicity/WaveFunction/VectorWaveFunction.h" 0020 #include "ThePEG/Helicity/WaveFunction/SpinorBarWaveFunction.h" 0021 0022 namespace Herwig { 0023 0024 using namespace ThePEG; 0025 using namespace ThePEG::Helicity; 0026 0027 /** 0028 * The MEPP2GammaGamma class implements the production of photon pairs in 0029 * hadron hadron collisions. 0030 * 0031 * @see \ref MEPP2GammaGammaInterfaces "The interfaces" 0032 * defined for MEPP2GammaGamma. 0033 */ 0034 class MEPP2GammaGamma: public HwMEBase { 0035 0036 public: 0037 0038 /** 0039 * The default constructor. 0040 */ 0041 MEPP2GammaGamma() : _maxflavour(5),_process(0), scalePreFactor_(1.) { 0042 massOption(vector<unsigned int>(2,0)); 0043 } 0044 0045 /** @name Virtual functions required by the MEBase class. */ 0046 //@{ 0047 /** 0048 * Return the order in \f$\alpha_S\f$ in which this matrix 0049 * element is given. 0050 */ 0051 virtual unsigned int orderInAlphaS() const; 0052 0053 /** 0054 * Return the order in \f$\alpha_{EW}\f$ in which this matrix 0055 * element is given. 0056 */ 0057 virtual unsigned int orderInAlphaEW() const; 0058 0059 /** 0060 * The matrix element for the kinematical configuration 0061 * previously provided by the last call to setKinematics(), suitably 0062 * scaled by sHat() to give a dimension-less number. 0063 * @return the matrix element scaled with sHat() to give a 0064 * dimensionless number. 0065 */ 0066 virtual double me2() const; 0067 0068 /** 0069 * Return the scale associated with the last set phase space point. 0070 */ 0071 virtual Energy2 scale() const; 0072 0073 /** 0074 * Add all possible diagrams with the add() function. 0075 */ 0076 virtual void getDiagrams() const; 0077 0078 /** 0079 * Get diagram selector. With the information previously supplied with the 0080 * setKinematics method, a derived class may optionally 0081 * override this method to weight the given diagrams with their 0082 * (although certainly not physical) relative probabilities. 0083 * @param dv the diagrams to be weighted. 0084 * @return a Selector relating the given diagrams to their weights. 0085 */ 0086 virtual Selector<DiagramIndex> diagrams(const DiagramVector & dv) const; 0087 0088 /** 0089 * Return a Selector with possible colour geometries for the selected 0090 * diagram weighted by their relative probabilities. 0091 * @param diag the diagram chosen. 0092 * @return the possible colour geometries weighted by their 0093 * relative probabilities. 0094 */ 0095 virtual Selector<const ColourLines *> 0096 colourGeometries(tcDiagPtr diag) const; 0097 0098 /** 0099 * Construct the vertex of spin correlations. 0100 */ 0101 virtual void constructVertex(tSubProPtr); 0102 //@} 0103 0104 0105 public: 0106 0107 /** @name Functions used by the persistent I/O system. */ 0108 //@{ 0109 /** 0110 * Function used to write out object persistently. 0111 * @param os the persistent output stream written to. 0112 */ 0113 void persistentOutput(PersistentOStream & os) const; 0114 0115 /** 0116 * Function used to read in object persistently. 0117 * @param is the persistent input stream read from. 0118 * @param version the version number of the object when written. 0119 */ 0120 void persistentInput(PersistentIStream & is, int version); 0121 //@} 0122 0123 /** 0124 * The standard Init function used to initialize the interfaces. 0125 * Called exactly once for each class by the class description system 0126 * before the main function starts or 0127 * when this class is dynamically loaded. 0128 */ 0129 static void Init(); 0130 0131 protected: 0132 0133 /** @name Clone Methods. */ 0134 //@{ 0135 /** 0136 * Make a simple clone of this object. 0137 * @return a pointer to the new object. 0138 */ 0139 virtual IBPtr clone() const; 0140 0141 /** Make a clone of this object, possibly modifying the cloned object 0142 * to make it sane. 0143 * @return a pointer to the new object. 0144 */ 0145 virtual IBPtr fullclone() const; 0146 //@} 0147 0148 protected: 0149 0150 /** @name Standard Interfaced functions. */ 0151 //@{ 0152 /** 0153 * Initialize this object after the setup phase before saving an 0154 * EventGenerator to disk. 0155 * @throws InitException if object could not be initialized properly. 0156 */ 0157 virtual void doinit(); 0158 //@} 0159 0160 private: 0161 0162 /** 0163 * Members to return the matrix elements for the different subprocesses 0164 */ 0165 //@{ 0166 /** 0167 * Matrix element for \f$q\bar{q}\to \gamma\gamma\f$. 0168 * @param fin Spinors for incoming quark 0169 * @param ain Spinors for incoming antiquark 0170 * @param p1 Polarization vectors for the first outgoing photon 0171 * @param p2 Polarization vectors for the second outgoing photon 0172 * @param me Whether or not to calculate the matrix element for spin correlations 0173 */ 0174 double qqbarME(vector<SpinorWaveFunction> & fin, vector<SpinorBarWaveFunction> & ain, 0175 vector<VectorWaveFunction> & p1 , vector<VectorWaveFunction> & p2 , 0176 bool me) const; 0177 0178 /** 0179 * Matrix element for \f$gg \to \gamma\gamma\f$. 0180 * @param g1 Polarization vectors for the first incoming gluon 0181 * @param g2 Polarization vectors for the second incoming gluon 0182 * @param p1 Polarization vectors for the first outgoing photon 0183 * @param p2 Polarization vectors for the second outgoing photon 0184 * @param me Whether or not to calculate the matrix element for spin correlations 0185 */ 0186 double ggME(vector<VectorWaveFunction> & g1 , vector<VectorWaveFunction> & g2 , 0187 vector<VectorWaveFunction> & p1 , vector<VectorWaveFunction> & p2 , 0188 bool me) const; 0189 //@} 0190 0191 /** 0192 * \f$gg\to\gamma\gamma\f$ matrix element for the \f$++++\f$ helicity configuration. 0193 * @param s The \f$s\f$ invariant 0194 * @param t The \f$t\f$ invariant 0195 * @param u The \f$u\f$ invariant 0196 */ 0197 Complex ggme(Energy2 s,Energy2 t,Energy2 u) const { 0198 double ltu(log(abs(t/u))); 0199 double frac1((t-u)/s),frac2((sqr(t)+sqr(u))/sqr(s)); 0200 double thetatu = (t/u<0) ? 0 : 1; 0201 double thetat = (t<ZERO) ? 0 : 1; 0202 double thetau = (u<ZERO) ? 0 : 1; 0203 using Constants::pi; 0204 return Complex(1.+frac1*ltu+0.5*frac2*(sqr(ltu)+sqr(pi)*thetatu), 0205 -pi*(thetat-thetau)*(frac1+frac2*ltu)); 0206 } 0207 0208 private: 0209 0210 /** 0211 * The assignment operator is private and must never be called. 0212 * In fact, it should not even be implemented. 0213 */ 0214 MEPP2GammaGamma & operator=(const MEPP2GammaGamma &) = delete; 0215 0216 private: 0217 0218 /** 0219 * Pointer to the quark-antiquark-photon vertex 0220 */ 0221 AbstractFFVVertexPtr _photonvertex; 0222 0223 /** 0224 * Maximum PDG code of the quarks allowed 0225 */ 0226 unsigned int _maxflavour; 0227 0228 /** 0229 * Option for which processes to include 0230 */ 0231 unsigned int _process; 0232 0233 /** 0234 * Matrix element for spin correlations 0235 */ 0236 ProductionMatrixElement _me; 0237 0238 /** 0239 * weights for the different quark annhilation diagrams 0240 */ 0241 mutable double _diagwgt[2]; 0242 0243 /** 0244 * Scale prefactor 0245 */ 0246 double scalePreFactor_; 0247 }; 0248 0249 } 0250 0251 #endif /* HERWIG_MEPP2GammaGamma_H */
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|