/usr/include/ThePEG/Handlers/LastXCombInfo.h is in libthepeg-dev 1.8.0-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 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 | // -*- C++ -*-
//
// LastXCombInfo.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_LastXCombInfo_H
#define ThePEG_LastXCombInfo_H
// This is the declaration of the LastXCombInfo class.
#include "ThePEG/Config/ThePEG.h"
#include "ThePEG/Cuts/Cuts.fh"
#include "XComb.h"
namespace ThePEG {
/**
* LastXCombInfo is a templated class giving easy access to the
* information in an XComb object. The default template argument is
* the basic XComb class, but also subclasses of XComb can be
* used. Classes which need to have easy access to the last selected
* XComb object with information about the sub-process which is being
* generated, should (possibly multiple) inherit from the
* LastXCombInfo class. The LastXCombInfo is templated to enable
* derived classes to only include dependencies necessary for the
* access function which are actually used.
*
*/
template <typename XC = XComb>
class LastXCombInfo {
public:
ThePEG_DECLARE_TEMPLATE_POINTERS(XC,XCPtr);
public:
/** @name Acces to the actual XComb object. */
//@{
/**
* Return a reference to the last selected XComb.
*/
const XC & lastXComb() const { return *theLastXComb; }
/**
* Return a pointer to the last selected XComb.
*/
tXCPtr lastXCombPtr() const { return theLastXComb; }
/**
* If the last selected XComb object belongs to a
* group of XComb's return a reference to the head
* XComb object for this group.
*/
const XC& lastHeadXComb() const { return *lastXComb().head(); }
/**
* If the last selected XComb object belongs to a
* group of XComb's return a pointer to the head
* XComb object for this group.
*/
tXCPtr lastHeadXCombPtr() const { return lastXComb().head(); }
//@}
/** @name Access the objects used by the XComb object. */
//@{
/**
* Return a reference to the currently used EventHandler
*/
const EventHandler & lastEventHandler() const { return lastXComb().eventHandler(); }
/**
* A pointer to the currently used parton extractor.
*/
tPExtrPtr lastExtractor() const { return lastXComb().pExtractor(); }
/**
* Return the parton density used to extract the given parton. This
* function is templated to avoid having to include the PDF.h and
* all its dependencies in this header.
*/
template <typename PDFT>
PDFT pdf(tcPPtr parton) const {
return PDFT(lastXComb().partonBinInstance(parton));
}
/**
* A reference to the currently used kinematical cuts.
*/
const Cuts & lastCuts() const { return *lastXComb().cuts(); }
/**
* A pointer to the currently used kinematical cuts.
*/
tCutsPtr lastCutsPtr() const { return lastXComb().cuts(); }
//@}
/** @name Access information about the incoming particles and partons. */
//@{
/**
* Return the pair of incoming parton instances.
*/
const PPair & lastParticles() const { return lastXComb().lastParticles(); }
/**
* The last generated total energy squared of the incoming particles.
*/
Energy2 lastS() const { return lastXComb().lastS(); }
/**
* Return the pair of incoming parton instances.
*/
const PPair & lastPartons() const { return lastXComb().lastPartons(); }
/**
* The last used interval in total parton-parton energy squared
*/
Energy2 lastSHat() const { return lastXComb().lastSHat(); }
/**
* Return lastSHat()/lastS().
*/
double lastTau() const { return lastXComb().lastTau(); }
/**
* The generated rapidity of the hard scattering sub-system.
*/
double lastY() const { return lastXComb().lastY(); }
/**
* Log of one over the momentum fraction of the first incoming
* particle w.r.t. the maximum allowed energy.
*/
double lastP1() const { return lastXComb().lastP1(); }
/**
* Log of one over the momentum fraction of the second incoming
* particle w.r.t. the maximum allowed energy.
*/
double lastP2() const { return lastXComb().lastP2(); }
/**
* Log of one over the first incoming parton momentum fraction w.r.t. the
* first incoming particle.
*/
double lastL1() const { return lastXComb().lastL1(); }
/**
* Log of one over the second incoming parton momentum fraction
* w.r.t. the second incoming particle.
*/
double lastL2() const { return lastXComb().lastL2(); }
/**
* The first incoming parton momentum fraction w.r.t. the
* first incoming particle.
*/
double lastX1() const { return lastXComb().lastX1(); }
/**
* The second incoming parton momentum fraction
* w.r.t. the second incoming particle.
*/
double lastX2() const { return lastXComb().lastX2(); }
/**
* Return 1-lastX1() to highest possible precision for
* x \f$\rightarrow\f$ 1.
*/
double lastE1() const { return lastXComb().lastE1(); }
/**
* Return 1-lastX2() to highest possible precision for
* x\f$\rightarrow\f$ 1.
*/
double lastE2() const { return lastXComb().lastE2(); }
/**
* The product of the parton density functions at the last generated
* phase-space point.
*/
double lastFL1L2() const { return lastXComb().lastFL1L2(); }
//@}
/** @name Access information of the hard sub-process. */
//@{
/**
* The chosen scale of the hard scattering.
*/
Energy2 lastScale() const { return lastXComb().lastScale(); }
/**
* Get the \f$\alpha_S\f$ used in the hard scattering. Is negative
* if no value has been set.
*/
double lastAlphaS() const { return lastXComb().lastAlphaS(); }
/**
* Get the \f$\alpha_{EM}\f$ used in the hard scattering. Is negative
* if no value has been set.
*/
double lastAlphaEM() const { return lastXComb().lastAlphaEM(); }
/**
* Return the momenta of the incoming and outgoing partons to be
* used by the matrix element object, in the order specified by the
* TreeDiagram objects given by the matrix element.
*/
const vector<Lorentz5Momentum> & meMomenta() const { return lastXComb().meMomenta(); }
/**
* Return the matrix element squared as calculated
* for the last phase space point. This may optionally
* be used by a matrix element for caching.
*/
double lastME2() const { return lastXComb().lastME2(); }
/**
* Get the last jacobian obtained when generating the kinematics
* for the call to dSigHatDR.
*/
double jacobian() const { return lastXComb().jacobian(); }
/**
* Return the partonic cross section as calculated
* for the last phase space point. This may optionally
* be used by a matrix element for caching.
*/
CrossSection lastMECrossSection() const { return lastXComb().lastMECrossSection(); }
/**
* Return the PDF weight as calculated
* for the last phase space point, if the matrix
* element does supply PDF weights. This may optionally
* be used by a matrix element for caching.
*/
double lastMEPDFWeight() const { return lastXComb().lastMEPDFWeight(); }
/**
* Return the SubProcess object corresponding to the last generated
* sub-process.
*/
tSubProPtr subProcess() const { return lastXComb().subProcess(); }
/**
* Return the incoming and outgoing parton types to be used by the
* matrix element object, in the order specified by the TreeDiagram
* objects given by the matrix element.
*/
const cPDVector & mePartonData() const { return lastXComb().mePartonData(); }
//@}
protected:
/**
* The pointer to the last selected XComb.
*/
XCPtr theLastXComb;
};
}
#endif /* ThePEG_LastXCombInfo_H */
|