/usr/include/ThePEG/MatrixElement/ME2to2Base.h is in libthepeg-dev 1.8.0-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | // -*- C++ -*-
//
// ME2to2Base.h is a part of ThePEG - Toolkit for HEP Event Generation
// Copyright (C) 1999-2011 Leif Lonnblad
//
// ThePEG is licenced under version 2 of the GPL, see COPYING for details.
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
//
#ifndef ThePEG_ME2to2Base_H
#define ThePEG_ME2to2Base_H
// This is the declaration of the ME2to2Base class.
#include "ThePEG/MatrixElement/MEBase.h"
#include "ThePEG/MatrixElement/Tree2toNDiagram.h"
#include "ThePEG/Interface/Switch.fh"
namespace ThePEG {
/**
* ME2to2Base can be used as a base class for any matrix element class
* implementing 2\f$\rightarrow\f$ 2 processes. It extends the MEBase
* base class by implementing the virtual scale() method to return the
* assumed scale of a given process according to several options. It
* also caches some useful characteristics of the chosen phase space
* point, such as tHat(), uHat() and the masses of the external
* partons.
*
* @see \ref ME2to2BaseInterfaces "The interfaces"
* defined for ME2to2Base.
* @see MEBase
*/
class ME2to2Base: public MEBase {
public:
/** @name Standard constructors and destructors. */
//@{
/**
* Default constructor.
*/
ME2to2Base()
: theScaleChoice(0), theLastTHat(ZERO), theLastUHat(ZERO),
theLastPhi(0.0) {}
/**
* Destructor.
*/
virtual ~ME2to2Base();
//@}
public:
/** @name Virtual functions required by the MEBase class. */
//@{
/**
* The number of internal degreed of freedom used in the matrix
* element.
*/
virtual int nDim() const { return 1; }
/**
* Generate internal degrees of freedom given 'nDim()' uniform
* random numbers in the interval ]0,1[. To help the phase space
* generator, the 'dSigHatDR()' should be a smooth function of these
* numbers, although this is not strictly necessary. Return
* false if the chosen points failed the kinematical cuts.
*/
virtual bool generateKinematics(const double * r);
/**
* Return the matrix element for the kinematical configuation
* previously provided by the last call to setKinematics(). Uses
* me().
*/
virtual CrossSection dSigHatDR() const;
/**
* Return the scale associated with the last set phase space point.
*/
virtual Energy2 scale() const;
/**
* Set the typed and momenta of the incoming and outgoing partons to
* be used in subsequent calls to me() and colourGeometries()
* according to the associated XComb object.
*/
virtual void setKinematics();
//@}
/**
* Used internally by generateKinematics, after calculating the
* limits on cos(theta).
*/
virtual double getCosTheta(double cthmin, double cthmax, const double * r);
/**
* Give the option corresponding to the way the scale of an
* interaction is calculated.
*/
int scaleChoice() const { return theScaleChoice; }
public:
/** @name Access cached values in of the last set phase space point. */
//@{
/**
* Return the \f$\hat{t}\f$ of the last set phase space point.
*/
Energy2 tHat() const { return theLastTHat; }
/**
* Return the \f$\hat{u}\f$ of the last set phase space point.
*/
Energy2 uHat() const { return theLastUHat; }
/**
* Return the azimuth angle of the last set phase space point.
*/
double phi() const { return theLastPhi; }
//@}
public:
/** @name Functions used by the persistent I/O system. */
//@{
/**
* Function used to write out object persistently.
* @param os the persistent output stream written to.
*/
void persistentOutput(PersistentOStream & os) const;
/**
* Function used to read in object persistently.
* @param is the persistent input stream read from.
* @param version the version number of the object when written.
*/
void persistentInput(PersistentIStream & is, int version);
//@}
/**
* Standard Init function used to initialize the interfaces.
*/
static void Init();
protected:
/** @name Set the cached values in of the last set phase space point. */
//@{
/**
* Set the \f$\hat{t}\f$ of the last set phase space point.
*/
void tHat(Energy2 e2) { theLastTHat = e2; }
/**
* Set the \f$\hat{u}\f$ of the last set phase space point.
*/
void uHat(Energy2 e2) { theLastUHat = e2; }
/**
* Set the azimuth angle of the last set phase space point.
*/
void phi(double phi) { theLastPhi = phi; }
//@}
protected:
/**
* Access to the acutal Switch object used to determine the choice
* of scale.
*/
static Switch<ME2to2Base,int> & interfaceScaleChoice();
private:
/**
* The option indicating how to calculate the scale of an interaction.
*/
int theScaleChoice;
/**
* The \f$\hat{t}\f$ of the last set phase space point.
*/
Energy2 theLastTHat;
/**
* The \f$\hat{u}\f$ of the last set phase space point.
*/
Energy2 theLastUHat;
/**
* The azimuth angle of the last set phase space point.
*/
double theLastPhi;
private:
/**
* Describe an abstract base class with persistent data.
*/
static AbstractClassDescription<ME2to2Base> initME2to2Base;
/**
* Private and non-existent assignment operator.
*/
ME2to2Base & operator=(const ME2to2Base &);
};
}
namespace ThePEG {
/** @cond TRAITSPECIALIZATIONS */
/**
* This template specialization informs ThePEG about the
* base class of ME2to2Base.
*/
template <>
struct BaseClassTrait<ME2to2Base,1>: public ClassTraitsType {
/** Typedef of the base class of ME2to2Base. */
typedef MEBase NthBase;
};
/**
* This template specialization informs ThePEG about the name of the
* ME2to2Base class.
*/
template <>
struct ClassTraits<ME2to2Base>: public ClassTraitsBase<ME2to2Base> {
/** Return the class name. */
static string className() { return "ThePEG::ME2to2Base"; }
};
/** @endcond */
}
#endif /* ThePEG_ME2to2Base_H */
|