Index: web/trunk/documentation.ihtml
===================================================================
--- web/trunk/documentation.ihtml (revision 1738)
+++ web/trunk/documentation.ihtml (revision 1739)
@@ -1,323 +1,323 @@
#include "applpre.ihtml"
Instructions
Using the code
In APPLgrid, each cross section has it's own grid, stored in it's own
grid file. For the convolution, you create a grid, specifying which file
to use. For instance, a set of jet measurement with 5 different differential
cross sections each corresponding to a different rapidity interval,
will have 5 separate grids - one for each rapidity interval.
After installing the APPLgrid code itself, everything needed for reproducing
a particular cross section is encapsulated in the grid itself - there is no need
to download any additional code specific to that cross section.
As a result, unlike the fastNLO package, which requires both a grid file and a
separate fortran routine for each cross section, since all information is encoded
within the APPLgrid grids themselves it is simply enough to link against the
APPLgrid code and call the convolute method for the appropriate grid,
The convolution will use whichever PDF and alphas routines are passed into it.
If you have multiple PDFs set up, no additional code modification is required.
For multiple grids, simply create new instances, specifying the appropriate grid
file in the constructor. For example
// read the grid
appl::grid grid_eta1("atlas-incljets06-eta1.root");
// perform the convolution
std::vector< double > xsec_eta1 = grid_eta1.vconvolute( evolvepdf_, alphasqcd_ );
/// load the grids
appl::grid grid_eta1("atlas-incljets06-eta1.root");
appl::grid grid_eta2("atlas-incljets06-eta2.root");
/// perform the convolutions
std::vector< double > xsec_eta1 = grid_eta1.vconvolute( evolvepdf_, alphasqcd_ );
std::vector< double > xsec_eta2 = grid_eta2.vconvolute( evolvepdf_, alphasqcd_ );
These latest downloadable grids require no additional scaling and in addition,
include the non-perturbative (or additional) bin-by-bin corrections discussed
in the relevant papers.
grid_eta1
then
grid_eta1.setApplyCorrections(true);
should be called before performing the convolution. All subsequent
convolutions will also apply the corrections. To disable this for
grid grid_eta1
call
grid_eta1.setApplyCorrections(false);
and subsequent convolutions will not apply the corrections.
/// read the fastnlo "scenario"
fastnlo f( gridname );
/// get the individual grids
std::vector< appl::grid* > g = f.grids();
/// vectopr for the different cross sections
std::vector< std::vector < double > > xsec(g.size());
for ( int i=0 ; i < g.size() ; i++ ) xsec[i] = g[i]-> vconvolute( evolvepdf_, alphasqcd_ );
Besides the usual setting up of LHAPDF if it is being used etc, no additional coding
is required.
In addition to the methods which return the cross section values as simple vectors,
routines also exist to return the cropss section directly as a root TH1D, with the
appropriate binning
TH1D* hxsec_eta1 = grid_eta1.convolute( evolvepdf_, alphasqcd_ );
As with all root usage, the user should remember to delete the histogram when
they have finished with it, should it be required.
./configure --prefix=< path_to_install_directory >
make
make install
This installs the headers, library and executables in the include
, lib
and
bin
directories of <path_to_install_directory>
above. Often this path
is set to /usr/local
but to install there, you will require superuser priviledge.
examples
directory and build the examples
make
Further details are contained in the README file in the directory.
applgrid-config
utility which provides locations of the installation directory, useful include
and linking flags etc, eg
% applgrid-config --help
applgrid-config: configuration tool for the APPLgrid
fast cross section convolution code
http://projects.hepforge.org/applgrid/
Usage: applgrid-config [[--help|-h] | [--prefix] | [...]]
Options:
--help | -h : this help
--prefix : installation prefix (cf. autoconf)
--incdir : path to the APPLgrid header directory
--libdir : path to the APPLgrid library directory
--cxxflags : compiler flags for the C preprocessor
--ldflags : compiler flags for the linker just for c code
--ldfflags : compiler flags for the linker including the fortan interface
--share : path to APPLgrid pdf conbination config files
--version : release version number
For general compilation and linkage with the users own code, the header and library paths can be
specifed to the compiler and linker using the applgrid-config
utility as follows
% applgrid-config --ldflags
-L/usr/local/lib -lAPPLgrid -lfAPPLgrid
% applgrid-config --cxxflags
-I/usr/local/include
Home | Downloads | Documentation | - + + Subversion | Nightlies | News | Links |
Grid Downloads
Here you can download grids for APPLgrid version APPLVER for fast cross section evaluation. These grids are fully differential and should require no additional scaling. Each should include the non-perturbative (and any additional) bin-by-bin corrections or K-factors, the application of which is discussed in the relevant papers - see the Documentation page for more information. Please note that these grids should be based on the grids that were used for the relevant papers, and were not necessarily created by the the applgrid authors. In the future, it is hoped that grids will be distributed using the ploughshare project. #include "grids.ihtml" |
Code Download
Various code for download is available:
Calculation Code If you wish to generate your own grids, we currently have NLOjet++ available for jet production at NLO and MCFM for most other processes.
Downloads Archive The old downloads directory can be found here (Warning, not for the faint of heart) |