debian/0000755000000000000000000000000012244125370007166 5ustar debian/flat2aida.10000644000000000000000000000314612142446411011102 0ustar .TH FLAT2AIDA "1" "June 2012" "Rivet" "User Commands" .SH NAME flat2aida \- Convert make\-plots data files to AIDA XML format. .SH SYNOPSIS .B flat2aida [\fIoptions\fR] \fIflatfile \fR[\fIflatfile2 \fR...] .SH DESCRIPTION Convert make\-plots data files to AIDA XML format. The output is by default written out to a file with the same name as the input (out.aida in the case of stdin) unless the \fB\-\-output\fR option is specified. When specifying either input or output filenames, a '\-' is used to refer to stdin or stdout as appropriate. .PP Histograms can also be filtered by histo path, using the \fB\-m\fR or \fB\-M\fR options for a positive or negative regex pattern patch respectively. .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-o\fR OUTPUT, \fB\-\-output\fR=\fIOUTPUT\fR Write all histos to a single output file. stdout can be explicitly specified by setting '\-' as the output filename. This option will be disregarded if \fB\-\-split\fR is specified. .TP \fB\-s\fR, \fB\-\-split\fR Split histograms into individual files .TP \fB\-\-plotinfodir\fR=\fIPLOTINFODIR\fR directory which may contain plot header information .TP \fB\-m\fR PATHPATTERNS, \fB\-\-match\fR=\fIPATHPATTERNS\fR Only write out histograms whose $path/$name string matches these regexes .TP \fB\-M\fR PATHUNPATTERNS, \fB\-\-unmatch\fR=\fIPATHUNPATTERNS\fR Exclude histograms whose $path/$name string matches these regexes .SH "SEE ALSO" .BR root2flat (1), .BR aida2flat (1), .BR aida2root (1) .SH AUTHOR This manual page was written by Lifeng Sun for the Debian system (but may be used by others). debian/rivet-plugins-dev.manpages0000644000000000000000000000006512142446411014267 0ustar debian/rivet-buildplugin.1 debian/rivet-mkanalysis.1 debian/rivet-reference.doc-base0000644000000000000000000000045512142446411013655 0ustar Document: rivet-reference Title: Rivet Reference Manual Author: Leif Lonnblad, Andy Buckley, Jon Butterworth Abstract: Developer's reference manual of Rivet. Section: Science/Physics Format: HTML Index: /usr/share/doc/rivet-reference/html/index.html Files: /usr/share/doc/rivet-reference/html/*.html debian/aida2root.10000644000000000000000000000155412142446411011140 0ustar .TH AIDA2ROOT "1" "June 2012" "Rivet" "User Commands" .SH NAME aida2root \- Convert AIDA XML format to ROOT TGraph object .SH SYNOPSIS .B aida2root [\fIoptions\fR] \fIaidafile\fR [\fIaidafile2\fR ...] .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-s\fR, \fB\-\-smart\-output\fR Write to output files with names based on the corresponding input filename .TP \fB\-m\fR PATHPATTERNS, \fB\-\-match\fR=\fIPATHPATTERNS\fR Only write out histograms whose $path/$name string matches these regexes .TP \fB\-g\fR, \fB\-\-tgraph\fR Store output as ROOT TGraphAsymmErrors or TGraph2DErrors .TP \fB\-t\fR, \fB\-\-thisto\fR Store output as ROOT TH1 or TH2 .SH "SEE ALSO" .BR root2flat (1), .BR aida2flat (1), .BR flat2aida (1) .SH AUTHOR This manual page was written by Lifeng Sun for the Debian system (but may be used by others). debian/docs0000644000000000000000000000002712142446411010037 0ustar NEWS README GUIDELINES debian/rivet.manpages0000644000000000000000000000032512142446411012033 0ustar debian/aida2flat.1 debian/flat2aida.1 debian/compare-histos.1 debian/make-plots.1 debian/rivet.1 debian/rivet-chopbins.1 debian/rivet-mergeruns.1 debian/rivet-mkhtml.1 debian/rivet-rescale.1 debian/rivet-rmgaps.1 debian/librivet11.install0000644000000000000000000000003012142446411012530 0ustar usr/lib/*/libRivet.so.* debian/rivet.10000644000000000000000000000612612142446411010405 0ustar .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.10. .TH RIVET "1" "June 2012" "Rivet" "User Commands" .SH NAME rivet \- Robust Independent Validation of Experiment and Theory .SH SYNOPSIS rivet [\fIoptions\fR] myfifo .SH OPTIONS .TP \fB\-\-version\fR show program's version number and exit. .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit. .TP \fB\-l\fR NATIVE_LOG_STRS set a log level in the Rivet library. .TP \fB\-a\fR ANA, \fB\-\-analysis\fR=\fIANA\fR add an analysis to the processing list. .TP \fB\-\-list\-analyses\fR show the list of available analyses' names. With \fB\-v\fR, it shows the descriptions, too. .TP \fB\-\-list\-used\-analyses\fR list the analyses used by this command (after subtraction of inappropriate ones). .TP \fB\-\-show\-analysis\fR=\fISHOW_ANALYSES\fR, \fB\-\-show\-analyses\fR=\fISHOW_ANALYSES\fR show the details of an analysis. .TP \fB\-\-analysis\-path\fR=\fIPATH\fR specify the analysis search path (cf. $RIVET_ANALYSIS_PATH). .TP \fB\-\-analysis\-path\-append\fR=\fIPATH\fR append to the analysis search path (cf. $RIVET_ANALYSIS_PATH). .TP \fB\-\-pwd\fR append the current directory (pwd) to the analysis search path (cf. $RIVET_ANALYSIS_PATH). .TP \fB\-H\fR HISTOFILE, \fB\-\-histo\-file\fR=\fIHISTOFILE\fR specify the output histo file path (default = Rivet.aida). .TP \fB\-x\fR XS, \fB\-\-cross\-section\fR=\fIXS\fR specify the signal process cross\-section in pb. .TP \fB\-n\fR NUM, \fB\-\-nevts\fR=\fINUM\fR restrict the max number of events to read. .TP \fB\-\-runname\fR=\fINAME\fR give an optional run name, to be prepended as a 'top level directory' in histo paths. .TP \fB\-\-ignore\-beams\fR Ignore input event beams when checking analysis compatibility. .TP \fB\-\-event\-timeout\fR=\fINSECS\fR max time in whole seconds to wait for an event to be generated from the specified source (default = 21600) .TP \fB\-\-run\-timeout\fR=\fINSECS\fR max time in whole seconds to wait for the run to finish. This can be useful on batch systems such as the LCG Grid where tokens expire on a fixed wall\-clock and can render long Rivet runs unable to write out the final histogram file (default = unlimited). .TP \fB\-\-histo\-interval\fR=\fIHISTO_WRITE_INTERVAL\fR [experimental!] specify the number of events between histogram file updates. Default is to only write out at the end of the run. Note that intermediate histograms will be those from the analyze step only: analysis finalizing is currently not executed until the end of the run. .TP \fB\-v\fR, \fB\-\-verbose\fR print debug (very verbose) messages. .TP \fB\-q\fR, \fB\-\-quiet\fR be very quiet. .SH EXAMPLES .IP mkfifo hepmc.fifo .IP my\-generator \fB\-o\fR myfifo & .IP rivet \-\-analysis=ANALYSIS_NAME hepmc.fifo .SH "ENVIRONMENT:" .TP \fBRIVET_ANALYSIS_PATH\fR list of paths to be searched for plugin analysis libraries at runtime. .TP \fBRIVET_REF_PATH\fR list of paths to be searched for reference data files. .TP \fBRIVET_INFO_PATH\fR list of paths to be searched for analysis metadata files. .SH AUTHOR This manual page was written by Lifeng Sun for the Debian system (but may be used by others). debian/rivet-user-manual.doc-base0000644000000000000000000000055412142446411014150 0ustar Document: rivet-user-manual Title: Rivet User Manual Author: Andy Buckley, Jonathan Butterworth, Leif Lonnblad, Hendrik Hoeth, James Monk, Holger Schulz, Jan Eike von Seggern, Frank Siegert, Lars Sonnenschein Abstract: This manual contains user manual of Rivet. Section: Science/Physics Format: pdf Files: /usr/share/doc/rivet-user-manual/pdf/rivet-manual.pdf.gz debian/rivet-rescale.10000644000000000000000000000604712142446411012023 0ustar .TH RIVET-RESCALE "1" "June 2012" "Rivet" "User Commands" .SH NAME rivet\-rescale \- Rescale histos in observable\-file of AIDAFILE to the area of the corresponding histos in REFDATAPATH .SH SYNOPSIS .B rivet-rescale [\fI-r \fR] [\fI-O \fR] [\fI-b \fR[\fI-b \fR...]] \fI \fR[\fI\fR] .SH DESCRIPTION Rescale histos in observable\-file of AIDAFILE to the area of the corresponding histos in REFDATAPATH. REFDATAPATH can either be a single AIDA\-file or a directory containing AIDA\-files. By default the standard Rivet reference files are used. .PP Observable definitions of the form /CDF_2000_S4155203/d01\-x01\-y01 1.0 can be used to specify an absolute normalisation (1.0, here) for a histogram rather than using the reference histo. If the \fB\-\-multiply\fR switch is used, the ref histo area will be scaled by the given factor to give the target normalisation. .PP You can also define bins to chop out in the observable\-file in the same way as in chop_bins: /CDF_2000_S4155203/d01\-x01\-y01:0:35 1.0 This will chop the bins with Z\-pT > 35 GeV and obtain a rescaling factor from that restricted bin range: note that the output histograms will be rescaled but *unchopped*. .PP Only one bin definition can be used for each histogram, so the last bindef specified for that histo path will be the one which is applied. The bindefs are constructed in order from those in the obsfile, and then those given on the command line with the \fB\-b\fR flag, like this: .HP \fB\-b\fR "/CDF_2000_S4155203/d01\-x01\-y01:5:135 2.0" .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-O\fR OBSFILE, \fB\-\-obsfile\fR=\fIOBSFILE\fR Specify a file with histograms (and bin ranges) that are to be normalised. .TP \fB\-b\fR BINRANGES, \fB\-\-bins\fR=\fIBINRANGES\fR Specify a histogram and bin range that is to be used. The format is `AIDAPATH:start:stop'. .TP \fB\-r\fR REFDIR, \fB\-\-refdir\fR=\fIREFDIR\fR File of folder with reference histos .TP \fB\-a\fR Produce AIDA output rather than FLAT .TP \fB\-f\fR Produce FLAT output rather than AIDA .TP \fB\-\-multiply\fR Rescale histos using weight given as factor rather than new area .TP \fB\-i\fR, \fB\-\-in\-place\fR Overwrite input file rather than making inputrescaled.aida .TP \fB\-\-fast\fR Try loading only reference files from refpath that match analyses in input\-file .SH EXAMPLES .TP rivet\-rescale out.aida This will return the histos in out.aida, scaled to match the overall normalisations of the Rivet ref data. .TP rivet\-rescale \fB\-O\fR observables.obs out.aida This will return the histos in out.aida, scaled by the bin definitions specified in observables.obs (and using the Rivet ref data again) .TP rivet\-rescale \fB\-r\fR path/to/CDF_2000_S4155203.aida \fB\-b\fR "/CDF_2000_S4155203/d01\-x01\-y01:2:5" out.aida For this Z\-boson pT\-distribution, the normalisation to the provided ref data file is only applied between 2 < x < 5 GeV. .SH AUTHOR This manual page was written by Lifeng Sun for the Debian system (but may be used by others). debian/librivet-dev.manpages0000644000000000000000000000002612142446411013274 0ustar debian/rivet-config.1 debian/rules0000755000000000000000000000214612244124575010257 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) CPPFLAGS :=$(shell dpkg-buildflags --get CPPFLAGS) CFLAGS :=$(shell dpkg-buildflags --get CFLAGS) CXXFLAGS :=$(shell dpkg-buildflags --get CXXFLAGS) LDFLAGS :=$(shell dpkg-buildflags --get LDFLAGS) export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS override_dh_auto_configure: dh_auto_configure -- \ --prefix=/usr \ --with-hepmc-incpath=/usr/include \ --with-hepmc-libpath=/usr/lib/$(DEB_HOST_MULTIARCH) \ --with-fastjet-incpath=/usr/include \ --with-fastjet-libpath=/usr/lib/$(DEB_HOST_MULTIARCH) \ --with-yaml_cpp-incpath=/usr/include \ --with-yaml_cpp-libpath=/usr/lib/$(DEB_HOST_MULTIARCH) \ --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) override_dh_auto_install: dh_auto_install --max-parallel=1 chrpath -d debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libRivet.so override_dh_auto_build-indep: dh_auto_build $(MAKE) -C doc $(MAKE) dox %: dh $@ --with autoreconf --parallel debian/rivet.install0000644000000000000000000000040412142446411011704 0ustar usr/bin/aida2flat usr/bin/flat2aida usr/bin/compare-histos usr/bin/make-plots usr/bin/rivet usr/bin/rivet-chopbins usr/bin/rivet-mergeruns usr/bin/rivet-mkhtml usr/bin/rivet-rescale usr/bin/rivet-rmgaps usr/share/Rivet/rivet-completion /etc/bash_completion.d/ debian/source/0000755000000000000000000000000012142446411010465 5ustar debian/source/format0000644000000000000000000000001412142446411011673 0ustar 3.0 (quilt) debian/rivet-plugins-data.install0000644000000000000000000000010512142446411014270 0ustar usr/share/Rivet/*.plot usr/share/Rivet/*.aida usr/share/Rivet/*.info debian/rivet-plugins.install0000644000000000000000000000002512142446411013362 0ustar usr/lib/*/Rivet/*.so debian/rivet-user-manual.install0000644000000000000000000000007112142446411014133 0ustar doc/rivet-manual.pdf usr/share/doc/rivet-user-manual/pdf debian/get-orig-source0000755000000000000000000000066612142446411012136 0ustar #!/bin/bash set -e [ $# == 3 ] url="http://www.hepforge.org/archive/rivet" ver="$2" pkgdir="rivet-$ver.orig" pkg="rivet_$ver.orig.tar.gz" uppkgdir="Rivet-$ver" uppkg="Rivet-$ver.tar.gz" [ ! -f "../$uppkg" ] && wget "$url/$uppkg" -O "../$uppkg" [ -d "$uppkgdir" ] && rm -rf "$uppkgdir" tar xf "../$uppkg" [ -d "$pkgdir" ] && rm -rf "$pkgdir" mv "$uppkgdir" "$pkgdir" rm -f "../$pkg" tar -zcf "../$pkg" "$pkgdir" rm -rf "$pkgdir" debian/watch0000644000000000000000000000014712142446411010220 0ustar version=3 http://www.hepforge.org/archive/rivet/ Rivet-(.*)\.tar\.gz debian ./debian/get-orig-source debian/control0000644000000000000000000001505612142446411010577 0ustar Source: rivet Section: science Priority: optional Maintainer: Debian Science Maintainers Uploaders: Lifeng Sun Build-Depends: debhelper (>= 8.0.0), autotools-dev, libhepmc-dev, libfastjet-dev, libfastjetplugins-dev, libfastjettools-dev, libyaml-cpp-dev, dh-autoreconf, libgsl0-dev, libtinyxml-dev, chrpath, libboost-dev, python-dev, python-support, swig, gfortran Build-Depends-Indep: texlive-science, doxygen-latex Standards-Version: 3.9.3 Homepage: http://rivet.hepforge.org/ Vcs-Git: git://git.debian.org/git/debian-science/packages/rivet.git Vcs-Browser: http://git.debian.org/?p=debian-science/packages/rivet.git Package: rivet Architecture: all Depends: python, python-rivet (>= ${source:Version}), ${misc:Depends} Recommends: rivet-plugins Suggests: rivet-user-manual Description: Robust Independent Validation of Experiment and Theory Rivet is a toolkit for validation of Monte Carlo event generators. Using a computationally efficient model for observable computations, Rivet provides a set of experimental analyses useful for generator sanity checks, as well as a convenient infrastructure for adding your own analysis. . This package provides program files of Rivet. Package: rivet-user-manual Section: doc Architecture: all Depends: ${misc:Depends} Suggests: rivet Description: Rivet User Manual Rivet is a toolkit for validation of Monte Carlo event generators. Using a computationally efficient model for observable computations, Rivet provides a set of experimental analyses useful for generator sanity checks, as well as a convenient infrastructure for adding your own analysis. . This package provides user manual of Rivet. Package: rivet-reference Section: doc Architecture: all Depends: ${misc:Depends} Suggests: rivet Description: Rivet code reference Rivet is a toolkit for validation of Monte Carlo event generators. Using a computationally efficient model for observable computations, Rivet provides a set of experimental analyses useful for generator sanity checks, as well as a convenient infrastructure for adding your own analysis. . This package provides code reference of Rivet. Package: rivet-plugins Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: rivet-plugins-data (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends} Suggests: rivet-plugins-doc Description: Analysis plugins of Rivet Rivet is a toolkit for validation of Monte Carlo event generators. Using a computationally efficient model for observable computations, Rivet provides a set of experimental analyses useful for generator sanity checks, as well as a convenient infrastructure for adding your own analysis. . This package provides analysis plugins of Rivet. Note that ATLASCone and CDFCones are not supported in Debian due to license issues of FastJet. Package: rivet-plugins-dev Architecture: all Depends: python, librivet-dev (>= ${source:Version}), rivet-plugins (>= ${source:Version}), ${misc:Depends} Suggests: rivet-plugins-doc Description: Template generator of Rivet analysis plugin Rivet is a toolkit for validation of Monte Carlo event generators. Using a computationally efficient model for observable computations, Rivet provides a set of experimental analyses useful for generator sanity checks, as well as a convenient infrastructure for adding your own analysis. . This package provides template generator of Rivet analysis plugin. Package: rivet-plugins-doc Section: doc Architecture: all Depends: ${misc:Depends} Description: HTML documentation for Rivet analysis plugins Rivet is a toolkit for validation of Monte Carlo event generators. Using a computationally efficient model for observable computations, Rivet provides a set of experimental analyses useful for generator sanity checks, as well as a convenient infrastructure for adding your own analysis. . This package provides HTML documentation for analysis plugins of Rivet. Package: rivet-plugins-data Architecture: all Multi-Arch: foreign Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends} Description: Data files of Rivet analysis plugins Rivet is a toolkit for validation of Monte Carlo event generators. Using a computationally efficient model for observable computations, Rivet provides a set of experimental analyses useful for generator sanity checks, as well as a convenient infrastructure for adding your own analysis. . This package provides data files of Rivet analysis plugins. Package: librivet11 Section: libs Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: Run-time library of Rivet Rivet is a toolkit for validation of Monte Carlo event generators. Using a computationally efficient model for observable computations, Rivet provides a set of experimental analyses useful for generator sanity checks, as well as a convenient infrastructure for adding your own analysis. . This package provides run-time library of Rivet. Package: librivet-dev Section: libdevel Architecture: any Depends: libboost-dev, librivet11 (= ${binary:Version}), ${misc:Depends} Suggests: rivet-reference Description: Development files of Rivet Rivet is a toolkit for validation of Monte Carlo event generators. Using a computationally efficient model for observable computations, Rivet provides a set of experimental analyses useful for generator sanity checks, as well as a convenient infrastructure for adding your own analysis. . This package provides development files of Rivet. Package: rivet-root-converter Architecture: all Depends: python, libroot-bindings-python5.34, ${misc:Depends} Description: Rivet and ROOT file format converter Rivet is a toolkit for validation of Monte Carlo event generators. Using a computationally efficient model for observable computations, Rivet provides a set of experimental analyses useful for generator sanity checks, as well as a convenient infrastructure for adding your own analysis. . This package provides format converter between Rivet and ROOT files. Package: python-rivet Section: python Multi-Arch: foreign Pre-Depends: ${misc:Pre-Depends} Architecture: any Depends: python-support (>= 0.90), ${shlibs:Depends}, ${misc:Depends} Description: Python bindings of Rivet Rivet is a toolkit for validation of Monte Carlo event generators. Using a computationally efficient model for observable computations, Rivet provides a set of experimental analyses useful for generator sanity checks, as well as a convenient infrastructure for adding your own analysis. . This package provides Python bindings of Rivet. debian/rivet-mkanalysis.10000644000000000000000000000174512142446411012560 0ustar .TH RIVET-MKANALYSIS "1" "June 2012" "Rivet" "User Commands" .SH NAME rivet\-mkanalysis \- Make templates of analysis source files for Rivet .SH SYNOPSIS rivet\-mkanalysis [\-\-help|\-h] [\-\-srcroot=] .SH DESCRIPTION Make templates of analysis source files for Rivet. .PP Without the \fB\-\-srcroot\fR flag, the analysis files will be created in the current directory. .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-\-srcroot\fR=\fIDIR\fR install the templates into the Rivet source tree (rooted at directory DIR) rather than just creating all in the current dir .TP \fB\-q\fR, \fB\-\-quiet\fR only write out warning and error messages .TP \fB\-v\fR, \fB\-\-verbose\fR provide extra debugging messages .TP \fB\-i\fR, \fB\-\-inline\-info\fR Put analysis info into source file instead of separate data file. .SH AUTHOR This manual page was written by Lifeng Sun for the Debian system (but may be used by others). debian/rivet-mergeruns.10000644000000000000000000000206212142446411012405 0ustar .TH RIVET-MERGERUNS "1" "June 2012" "Rivet" "User Commands" .SH NAME rivet\-mergeruns \- Merge Rivet histo files into one .SH SYNOPSIS rivet-mergeruns \fIaidafile:sqrts:minpt aidafile2:sqrts:minpt \fR[...] .SH DESCRIPTION Script for merging parts of multiple histo files made with different run params (kinematic pT cuts and energies) into one histo file for plotting or further analysis. .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-o\fR OUTFILE, \fB\-\-out\fR=\fIOUTFILE\fR .TP \fB\-\-append\fR append to file .TP \fB\-v\fR, \fB\-\-verbose\fR print debug (very verbose) messages .TP \fB\-q\fR, \fB\-\-quiet\fR be very quiet .SH EXAMPLES .IP rivet\-mergeruns \\\fR hwpp/hpp\-1800\-030.aida:1800:30 \\\fR hwpp/hpp\-1800\-090.aida:1800:90 \\\fR > hpp\-hists.dat .IP flat2aida hpp-hists.dat .IP mkdir plots && cd plots .IP compare\-histos ../ref04.aida ../hpp\-hists.aida .IP make\-plots \-\-pdf *.dat .SH AUTHOR This manual page was written by Lifeng Sun for the Debian system (but may be used by others). debian/rivet-rmgaps.10000644000000000000000000000200512142446411011664 0ustar .TH RIVET-RMGAPS "1" "June 2012" "Rivet" "User Commands" .SH NAME rivet-rmgaps \- Remove binnning gaps in Rivet-generated MC AIDA files. .SH SYNOPSIS .B rivet-rmgaps \fIdatafile.aida mcfile.aida \fR[\fIoutputfile.aida\fR] .SH DESCRIPTION Remove bins in Rivet\-generated MC AIDA files which are actually binning gaps in the reference histogram. Rivet's histogramming system currently has no way to leave gaps between bins, hence this clean\-up script. .PP If the output file is not specified, the input MC file will be overwritten. .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-R\fR, \fB\-\-rivet\-refs\fR use the Rivet reference data files for comparison (default) .TP \fB\-\-no\-rivet\-refs\fR don't use the Rivet reference data files for comparison .TP \fB\-v\fR, \fB\-\-verbose\fR print debug (very verbose) messages .TP \fB\-q\fR, \fB\-\-quiet\fR be very quiet .SH AUTHOR This manual page was written by Lifeng Sun for the Debian system (but may be used by others). debian/rivet-mkhtml.10000644000000000000000000000462312142446411011677 0ustar .TH RIVET-MKHTML "1" "June 2012" "Rivet" "User Commands" .SH NAME rivet\-mkhtml \- Make web pages from histogram files written out by Rivet .SH SYNOPSIS .B rivet-mkhtml [\fIoptions\fR] \fI \fR[\fI \fR...] .SH DESCRIPTION Make web pages from histogram files written out by Rivet. You can specify multiple Monte Carlo AIDA files to be compared in the same syntax as for compare\-histos, i.e. including plotting options. .PP Reference data, analysis metadata, and plot style information should be found automatically (if not, set the RIVET_ANALYSIS_PATH or similar variables appropriately). .PP You can overwrite an existing output directory. .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-o\fR OUTPUTDIR, \fB\-\-outputdir\fR=\fIOUTPUTDIR\fR directory for webpage output .TP \fB\-t\fR TITLE, \fB\-\-title\fR=\fITITLE\fR title to be displayed on the main web page .TP \fB\-c\fR CONFIGFILES, \fB\-\-config\fR=\fICONFIGFILES\fR plot config file(s) to be used with compare\-histos. .TP \fB\-s\fR, \fB\-\-single\fR display plots on single webpage. .TP \fB\-\-no\-ratio\fR don't draw a ratio plot under each main plot. .TP \fB\-\-mc\-errs\fR plot error bars. .TP \fB\-\-refid\fR=\fIREF_ID\fR ID of reference data set (file path for non\-REF data) .TP \fB\-n\fR NUMTHREADS, \fB\-\-num\-threads\fR=\fINUMTHREADS\fR request make\-plots to use a specific number of threads. .TP \fB\-\-pdf\fR use PDF as the vector plot format. .TP \fB\-\-ps\fR use PostScript as the vector plot format. .TP \fB\-\-booklet\fR create booklet (currently only available for PDF with pdftk). .TP \fB\-i\fR, \fB\-\-ignore\-unvalidated\fR ignore unvalidated analyses. .TP \fB\-\-ignore\-missing\fR ignore missing AIDA files. .TP \fB\-m\fR PATHPATTERNS, \fB\-\-match\fR=\fIPATHPATTERNS\fR only write out histograms from analyses whose name matches any of these regexes .TP \fB\-M\fR PATHUNPATTERNS, \fB\-\-unmatch\fR=\fIPATHUNPATTERNS\fR Exclude histograms whose $path/$name string matches these regexes .TP \fB\-\-palatino\fR Use Palatino as font (default). .TP \fB\-\-cm\fR Use Computer Modern as font. .TP \fB\-\-times\fR Use Times as font. .TP \fB\-\-minion\fR Use Adobe Minion Pro as font. Note: You need to set TEXMFHOME first. .TP \fB\-v\fR, \fB\-\-verbose\fR Add extra debug messages .SH AUTHOR This manual page was written by Lifeng Sun for the Debian system (but may be used by others). debian/rivet-root-converter.manpages0000644000000000000000000000004612142446411015021 0ustar debian/aida2root.1 debian/root2flat.1 debian/compare-histos.10000644000000000000000000000622612142446411012212 0ustar .TH COMPARE-HISTOS "1" "June 2012" "Rivet" "User Commands" .SH NAME compare-histos \- generate comparison histograms .SH SYNOPSIS compare\-histos [\fIoptions\fR] aidafile1[:'PlotOption1=Value':'PlotOption2=Value'] [aidafile2 ...] .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-R\fR, \fB\-\-rivet\-refs\fR use Rivet reference data files (default) .TP \fB\-\-no\-rivet\-refs\fR don't use Rivet reference data files .TP \fB\-o\fR OUTDIR, \fB\-\-outdir\fR=\fIOUTDIR\fR write data files into this directory .TP \fB\-\-hier\-out\fR write output dat files into a directory hierarchy which matches the analysis paths .TP \fB\-\-plotinfodir\fR=\fIPLOTINFODIR\fR directory which may contain plot header information (in addition to standard Rivet search paths) .TP \fB\-\-no\-rmgapbins\fR disable attempting to remove 'gap' bins from MC histos when they don't appear in the ref file .TP \fB\-\-refid\fR=\fIREF_ID\fR ID of reference data set (file path for non\-REF data) .TP \fB\-\-linear\fR plot with linear scale .TP \fB\-\-logarithmic\fR plot with logarithmic scale (default behaviour) .TP \fB\-\-mc\-errs\fR show vertical error bars on the MC lines .TP \fB\-\-no\-ratio\fR disable the ratio plot .TP \fB\-\-rel\-ratio\fR show the ratio plots scaled to the ref error .TP \fB\-\-abs\-ratio\fR show the ratio plots with an absolute scale .TP \fB\-\-no\-plottitle\fR don't show the plot title on the plot (useful when the plot description should only be given in a caption) .TP \fB\-\-style\fR=\fISTYLE\fR change plotting style: default|bw|talk .TP \fB\-c\fR CONFIGFILES, \fB\-\-config\fR=\fICONFIGFILES\fR additional plot config file(s). Settings will be included in the output configuration. .TP \fB\-\-show\-single\fR=\fISHOW_SINGLE\fR control if a plot file is made if there is only one dataset to be plotted [default=mc]. If the value is \&'no', single plots are always skipped, for 'ref' and \&'mc', the plot will be written only if the single plot is a reference plot or an MC plot respectively, and \&'all' will always create single plot files. The 'ref' and 'all' values should be used with great care, as they will also write out plot files for all reference histograms without MC traces: combined with the \fB\-R\fR /\-\-rivet\-refs flag, this is a great way to write out several thousand irrelevant reference data histograms! .TP \fB\-\-show\-mc\-only\fR, \fB\-\-all\fR make a plot file even if there is only one dataset to be plotted and it is an MC one. Deprecated and will be removed: use \fB\-\-show\-single\fR instead, which overrides this. .TP \fB\-m\fR PATHPATTERNS, \fB\-\-match\fR=\fIPATHPATTERNS\fR Only write out histograms whose $path/$name string matches these regexes. The argument may also be a text file. .TP \fB\-M\fR PATHUNPATTERNS, \fB\-\-unmatch\fR=\fIPATHUNPATTERNS\fR Exclude histograms whose $path/$name string matches these regexes .TP \fB\-q\fR, \fB\-\-quiet\fR Suppress normal messages .TP \fB\-v\fR, \fB\-\-verbose\fR Add extra debug messages .PP The plot options are described in the make\-plots manual in the HISTOGRAM section. .SH AUTHOR This manual page was written by Lifeng Sun for the Debian system (but may be used by others). debian/make-plots.10000644000000000000000000000272412142446411011330 0ustar .TH MAKE-PLOTS "1" "June 2012" "Rivet" "User Commands" .SH NAME make\-plots \- Plots histograms in FLAT format .SH SYNOPSIS .B make-plots [\fIoptions\fR] \fIfile.dat \fR[\fIfile2.dat \fR...] .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-n\fR NUM_THREADS, \fB\-j\fR NUM_THREADS, \fB\-\-num\-threads\fR=\fINUM_THREADS\fR max number of threads to be used [8] .TP \fB\-\-palatino\fR Use Palatino as font (default). .TP \fB\-\-cm\fR Use Computer Modern as font. .TP \fB\-\-times\fR Use Times as font. .TP \fB\-\-minion\fR Use Adobe Minion Pro as font. Note: You need to set TEXMFHOME first. .TP \fB\-\-ps\fR Create PostScript output (default). .TP \fB\-\-pdf\fR Create PDF output. .TP \fB\-\-eps\fR Create Encapsulated PostScript output. .TP \fB\-\-png\fR Create PNG output. .TP \fB\-\-pspng\fR Create PS and PNG output. .TP \fB\-\-pdfpng\fR Create PDF and PNG output. .TP \fB\-\-epspng\fR Create EPS and PNG output. .TP \fB\-\-tex\fR Create TeX/LaTeX output. .TP \fB\-\-no\-cleanup\fR Keep temporary directory and print its filename. .TP \fB\-\-full\-range\fR Plot full y range in LogY plots. .TP \fB\-c\fR CONFIGFILES, \fB\-\-config\fR=\fICONFIGFILES\fR Plot config file to be used. Overrides internal config blocks. .TP \fB\-v\fR, \fB\-\-verbose\fR print debug (very verbose) messages .TP \fB\-q\fR, \fB\-\-quiet\fR be very quiet .SH AUTHOR This manual page was written by Lifeng Sun for the Debian system (but may be used by others). debian/rivet-plugins-doc.install0000644000000000000000000000006712142446411014133 0ustar doc/analyses.html usr/share/doc/rivet-plugins-doc/html debian/librivet-dev.install0000644000000000000000000000007012142446411013146 0ustar usr/lib/*/libRivet.so usr/include/ usr/bin/rivet-config debian/root2flat.10000644000000000000000000000143612142446411011167 0ustar .TH ROOT2FLAT "1" "June 2012" "Rivet" "User Commands" .SH NAME root2flat \- Read in .root files and write out the histograms in FLAT format .SH SYNOPSIS .B root2flat [\fIoptions\fR] file1.root .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-a\fR ANALYSIS Optionally add analysis name to histogram keys .TP \fB\-e\fR Enumerate histos hepdata style .TP \fB\-f\fR FILENAME Force output of all histos in single file .TP \fB\-x\fR XCLUDE Exclude histos from conversion based on string pattern .TP \fB\-o\fR OUTDIR specify directory in which to write out converted files .SH "SEE ALSO" .BR aida2root (1), .BR aida2flat (1), .BR flat2aida (1) .SH AUTHOR This manual page was written by Lifeng Sun for the Debian system (but may be used by others). debian/rivet-plugins-dev.install0000644000000000000000000000006312142446411014140 0ustar usr/bin/rivet-buildplugin usr/bin/rivet-mkanalysis debian/patches/0000755000000000000000000000000012244123676010624 5ustar debian/patches/path-max.patch0000644000000000000000000000034612142446411013357 0ustar --- a/src/Tools/binreloc.c +++ b/src/Tools/binreloc.c @@ -24,6 +24,10 @@ #include #include "binreloc.h" +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ debian/patches/fix-analysis-plugin-path.patch0000644000000000000000000001040312142446411016470 0ustar --- a/src/Tools/Makefile.am +++ b/src/Tools/Makefile.am @@ -21,7 +21,7 @@ $(AM_CPPFLAGS) \ -DENABLE_BINRELOC \ -DDEFAULTDATADIR=\"$(datadir)\" \ - -DDEFAULTLIBDIR=\"$(libdir)\" + -DDEFAULTLIBDIR=\"$(pkglibdir)\" ## NB. Using $(top_builddir)/src/Tools rather than $(builddir) because of SL4 automake bug if WITH_YAML_CPP --- a/src/Analyses/Makefile.am +++ b/src/Analyses/Makefile.am @@ -1,7 +1,7 @@ ## Flags for building all plugins AM_LDFLAGS = $(LDFLAGS) -module -avoid-version -L$(FASTJETLIBPATH) LIBS = $(FASTJETCONFIGLIBADD) -lib_LTLIBRARIES = +pkglib_LTLIBRARIES = noinst_LTLIBRARIES = libRivetAnalysisTools.la libRivetAnalysisTools_la_SOURCES = \ @@ -35,7 +35,7 @@ ## --disable-obsolete configure flag. -lib_LTLIBRARIES += RivetALICEAnalyses.la +pkglib_LTLIBRARIES += RivetALICEAnalyses.la RivetALICEAnalyses_la_SOURCES = \ ALICE_2010_S8624100.cc \ ALICE_2010_S8625980.cc \ @@ -45,7 +45,7 @@ ALICE_2012_I1181770.cc -lib_LTLIBRARIES += RivetATLASAnalyses.la +pkglib_LTLIBRARIES += RivetATLASAnalyses.la RivetATLASAnalyses_la_SOURCES = \ ATLAS_2010_S8591806.cc \ ATLAS_2010_S8817804.cc \ @@ -117,7 +117,7 @@ endif -lib_LTLIBRARIES += RivetCMSAnalyses.la +pkglib_LTLIBRARIES += RivetCMSAnalyses.la RivetCMSAnalyses_la_SOURCES = \ CMS_2010_S8547297.cc \ CMS_2010_S8656010.cc \ @@ -146,7 +146,7 @@ endif -lib_LTLIBRARIES += RivetLHCbAnalyses.la +pkglib_LTLIBRARIES += RivetLHCbAnalyses.la RivetLHCbAnalyses_la_SOURCES = \ LHCB_2010_I867355.cc if ENABLE_UNVALIDATED @@ -158,18 +158,18 @@ endif -lib_LTLIBRARIES += RivetLHCfAnalyses.la +pkglib_LTLIBRARIES += RivetLHCfAnalyses.la RivetLHCfAnalyses_la_SOURCES = \ LHCF_2012_I1115479.cc -lib_LTLIBRARIES += RivetTOTEMAnalyses.la +pkglib_LTLIBRARIES += RivetTOTEMAnalyses.la RivetTOTEMAnalyses_la_SOURCES = \ TOTEM_2012_I1115294.cc \ TOTEM_2012_002.cc # TODO: update to Inspire ID -lib_LTLIBRARIES += RivetCDFAnalyses.la +pkglib_LTLIBRARIES += RivetCDFAnalyses.la RivetCDFAnalyses_la_SOURCES = \ CDF_1988_S1865951.cc \ CDF_1990_S2089246.cc \ @@ -218,7 +218,7 @@ endif -lib_LTLIBRARIES += RivetD0Analyses.la +pkglib_LTLIBRARIES += RivetD0Analyses.la RivetD0Analyses_la_SOURCES = \ D0_2000_S4480767.cc \ D0_2001_S4674421.cc \ @@ -246,7 +246,7 @@ endif -lib_LTLIBRARIES += RivetHERAAnalyses.la +pkglib_LTLIBRARIES += RivetHERAAnalyses.la RivetHERAAnalyses_la_SOURCES = \ H1_1994_S2919893.cc \ H1_2000_S4129130.cc @@ -256,12 +256,12 @@ ZEUS_2001_S4815815.cc endif -lib_LTLIBRARIES += RivetPetraAnalyses.la +pkglib_LTLIBRARIES += RivetPetraAnalyses.la RivetPetraAnalyses_la_SOURCES = \ JADE_1998_S3612880.cc \ TASSO_1990_S2148048.cc -lib_LTLIBRARIES += RivetLEPAnalyses.la +pkglib_LTLIBRARIES += RivetLEPAnalyses.la RivetLEPAnalyses_la_SOURCES = \ ALEPH_1991_S2435284.cc \ ALEPH_1996_S3486095.cc \ @@ -301,7 +301,7 @@ endif -lib_LTLIBRARIES += RivetRHICAnalyses.la +pkglib_LTLIBRARIES += RivetRHICAnalyses.la RivetRHICAnalyses_la_SOURCES = \ STAR_2006_S6500200.cc \ STAR_2006_S6860818.cc \ @@ -317,7 +317,7 @@ endif -lib_LTLIBRARIES += RivetSPSAnalyses.la +pkglib_LTLIBRARIES += RivetSPSAnalyses.la RivetSPSAnalyses_la_SOURCES = \ UA1_1990_S2044935.cc \ UA5_1982_S875503.cc \ @@ -327,7 +327,7 @@ UA5_1989_S1926373.cc -lib_LTLIBRARIES += RivetMiscAnalyses.la +pkglib_LTLIBRARIES += RivetMiscAnalyses.la RivetMiscAnalyses_la_SOURCES = \ PDG_HADRON_MULTIPLICITIES.cc \ PDG_HADRON_MULTIPLICITIES_RATIOS.cc \ @@ -349,7 +349,7 @@ endif -lib_LTLIBRARIES += RivetMCAnalyses.la +pkglib_LTLIBRARIES += RivetMCAnalyses.la RivetMCAnalyses_la_SOURCES = \ EXAMPLE.cc \ MC_QCD_PARTONS.cc \ --- a/src/Tools/RivetPaths.cc +++ b/src/Tools/RivetPaths.cc @@ -22,20 +22,12 @@ string getLibPath() { - BrInitError error; - br_init_lib(&error); - char* temp = br_find_lib_dir(DEFAULTLIBDIR); - const string libdir(temp); - free (temp); + const string libdir(DEFAULTLIBDIR); return libdir; } string getDataPath() { - BrInitError error; - br_init_lib(&error); - char* temp = br_find_data_dir(DEFAULTDATADIR); - const string sharedir(temp); - free (temp); + const string sharedir(DEFAULTDATADIR); return sharedir; } debian/patches/doc-building.patch0000644000000000000000000000113312142446411014173 0ustar --- a/Doxyfile.in +++ b/Doxyfile.in @@ -692,7 +692,7 @@ # Note that relative paths are relative to the directory from which doxygen is # run. -EXCLUDE = +EXCLUDE = debian # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or # directories that are symbolic links (a Unix file system feature) are excluded --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = src pyext data include bin doc test +SUBDIRS = src pyext data include bin test #dist_pkgdata_DATA = rivetenv.sh rivetenv.csh EXTRA_DIST = GUIDELINES debian/patches/yaml-cpp.patch0000644000000000000000000000407012142446411013360 0ustar diff --git a/src/Core/AnalysisInfo.cc b/src/Core/AnalysisInfo.cc index 9aa03f2..b6eacb7 100644 --- a/src/Core/AnalysisInfo.cc +++ b/src/Core/AnalysisInfo.cc @@ -64,8 +64,8 @@ namespace Rivet { const YAML::Node& beampairs = it.second(); vector beam_pairs; if (beampairs.size() == 2 && - beampairs[0].GetType() == YAML::CT_SCALAR && - beampairs[1].GetType() == YAML::CT_SCALAR) { + beampairs[0].Type() == YAML::NodeType::Scalar && + beampairs[1].Type() == YAML::NodeType::Scalar) { string bstr0, bstr1; beampairs[0] >> bstr0; beampairs[1] >> bstr1; @@ -74,8 +74,8 @@ namespace Rivet { for (YAML::Iterator bpi = beampairs.begin(); bpi != beampairs.end(); ++bpi) { const YAML::Node& bp = *bpi; if (bp.size() == 2 && - bp[0].GetType() == YAML::CT_SCALAR && - bp[1].GetType() == YAML::CT_SCALAR) { + bp[0].Type() == YAML::NodeType::Scalar && + bp[1].Type() == YAML::NodeType::Scalar) { string bstr0, bstr1; bp[0] >> bstr0; bp[1] >> bstr1; @@ -91,12 +91,12 @@ namespace Rivet { const YAML::Node& energies = it.second(); vector > beam_energy_pairs; for (YAML::Iterator be = energies.begin(); be != energies.end(); ++be) { - if (be->GetType() == YAML::CT_SCALAR) { + if (be->Type() == YAML::NodeType::Scalar) { // If beam energy is a scalar, then assume symmetric beams each with half that energy double sqrts; *be >> sqrts; beam_energy_pairs += make_pair(sqrts/2.0, sqrts/2.0); - } else if (be->GetType() == YAML::CT_SEQUENCE) { + } else if (be->Type() == YAML::NodeType::Sequence) { const YAML::Node& beseq = *be; // If the sub-sequence is of length 1, then it's another scalar sqrt(s)! if (beseq.size() == 1) { debian/patches/purge-convenient-tinyxml-lib.patch0000644000000000000000000000115312142446411017373 0ustar --- a/src/Tools/Makefile.am +++ b/src/Tools/Makefile.am @@ -11,9 +11,6 @@ binreloc.c \ Utils.cc \ ParticleIdUtils.cc \ - TinyXML/tinyxml.cpp \ - TinyXML/tinyxmlerror.cpp \ - TinyXML/tinyxmlparser.cpp \ mt2_bisect.cc \ RivetMT2.cc \ BinnedHistogram.cc @@ -22,7 +19,6 @@ libRivetTools_la_CPPFLAGS = \ $(AM_CPPFLAGS) \ - -I$(top_srcdir)/include/TinyXML \ -DENABLE_BINRELOC \ -DDEFAULTDATADIR=\"$(datadir)\" \ -DDEFAULTLIBDIR=\"$(libdir)\" @@ -34,3 +30,4 @@ else libRivetTools_la_LIBADD = $(top_builddir)/src/Tools/yaml-cpp/libyaml-cpp.la endif +libRivetTools_la_LIBADD += -ltinyxml debian/patches/purge-non-free-fastjet-plugins.patch0000644000000000000000000000351612142446411017610 0ustar --- a/include/Rivet/Projections/FastJets.hh +++ b/include/Rivet/Projections/FastJets.hh @@ -15,10 +15,7 @@ #include "fastjet/PseudoJet.hh" #include "fastjet/SISConePlugin.hh" -#include "fastjet/ATLASConePlugin.hh" #include "fastjet/CMSIterativeConePlugin.hh" -#include "fastjet/CDFJetCluPlugin.hh" -#include "fastjet/CDFMidPointPlugin.hh" #include "fastjet/D0RunIIConePlugin.hh" #include "fastjet/TrackJetPlugin.hh" #include "fastjet/JadePlugin.hh" --- a/src/Projections/FastJets.cc +++ b/src/Projections/FastJets.cc @@ -29,16 +29,16 @@ throw Error(msg); //_plugin.reset(new fastjet::PxConePlugin(rparameter)); } else if (alg == ATLASCONE) { - const double OVERLAP_THRESHOLD = 0.5; - _plugin.reset(new fastjet::ATLASConePlugin(rparameter, seed_threshold, OVERLAP_THRESHOLD)); + string msg = "ATLASCone currently not supported in Debian due to license issue of FastJet. "; + throw Error(msg); } else if (alg == CMSCONE) { _plugin.reset(new fastjet::CMSIterativeConePlugin(rparameter, seed_threshold)); } else if (alg == CDFJETCLU) { - const double OVERLAP_THRESHOLD = 0.75; - _plugin.reset(new fastjet::CDFJetCluPlugin(rparameter, OVERLAP_THRESHOLD, seed_threshold)); + string msg = "CDFCones currently not supported in Debian due to license issue of FastJet. "; + throw Error(msg); } else if (alg == CDFMIDPOINT) { - const double OVERLAP_THRESHOLD = 0.5; - _plugin.reset(new fastjet::CDFMidPointPlugin(rparameter, OVERLAP_THRESHOLD, seed_threshold)); + string msg = "CDFCones currently not supported in Debian due to license issue of FastJet. "; + throw Error(msg); } else if (alg == D0ILCONE) { const double min_jet_Et = 6.0; _plugin.reset(new fastjet::D0RunIIConePlugin(rparameter, min_jet_Et)); debian/patches/yaml-cpp-v5-support.patch0000644000000000000000000004174712244123675015445 0ustar Index: rivet-1.8.3/include/Rivet/Exceptions.hh =================================================================== --- rivet-1.8.3.orig/include/Rivet/Exceptions.hh 2013-11-23 13:57:29.088692432 +0100 +++ rivet-1.8.3/include/Rivet/Exceptions.hh 2013-11-23 13:57:33.016712905 +0100 @@ -40,6 +40,13 @@ }; + /// @brief Error specialisation for failures relating to analysis info. + class InfoError : public Error { + public: + InfoError(const std::string& what) : Error(what) {} + }; + + /// @brief Errors relating to event/bin weights /// /// Arises in computing statistical quantities because e.g. the bin Index: rivet-1.8.3/src/Core/AnalysisInfo.cc =================================================================== --- rivet-1.8.3.orig/src/Core/AnalysisInfo.cc 2013-11-23 13:57:29.088692432 +0100 +++ rivet-1.8.3/src/Core/AnalysisInfo.cc 2013-11-23 13:57:33.040713027 +0100 @@ -35,134 +35,197 @@ // Read data from YAML document MSG_DEBUG("Reading analysis data from " << datapath); - std::ifstream io(datapath.c_str()); - YAML::Parser parser(io); YAML::Node doc; try { + #if YAMLCPP_API_VERSION == 3 + std::ifstream file(datapath.c_str()); + YAML::Parser parser(file); parser.GetNextDocument(doc); - //cout << doc << endl; + #elif YAMLCPP_API_VERSION == 5 + doc = YAML::LoadFile(datapath); + #endif } catch (const YAML::ParserException& ex) { MSG_ERROR("Parse error when reading analysis data from " << datapath << " (" << ex.what() << ")"); return ai; } - for (YAML::Iterator it = doc.begin(); it != doc.end(); ++it) { - string key; - it.first() >> key; - stringstream sec; - // sec << it.second(); - // const string secstr = sec.str().substr(0, sec.str().length()-1); - // MSG_TRACE(key << ": " << secstr); - try { - if (key == "Name") { - it.second() >> ai->_name; - } else if (key == "Summary") { - it.second() >> ai->_summary; - } else if (key == "Experiment") { - it.second() >> ai->_experiment; - } else if (key == "Beams") { - const YAML::Node& beampairs = it.second(); - vector beam_pairs; - if (beampairs.size() == 2 && - beampairs[0].Type() == YAML::NodeType::Scalar && - beampairs[1].Type() == YAML::NodeType::Scalar) { - string bstr0, bstr1; - beampairs[0] >> bstr0; - beampairs[1] >> bstr1; - beam_pairs += make_pdgid_pair(bstr0, bstr1); - } else { - for (YAML::Iterator bpi = beampairs.begin(); bpi != beampairs.end(); ++bpi) { - const YAML::Node& bp = *bpi; - if (bp.size() == 2 && - bp[0].Type() == YAML::NodeType::Scalar && - bp[1].Type() == YAML::NodeType::Scalar) { - string bstr0, bstr1; - bp[0] >> bstr0; - bp[1] >> bstr1; - beam_pairs += make_pdgid_pair(bstr0, bstr1); - } else { - assert(0 && "Beam ID pairs have to be either a 2-tuple or a list of 2-tuples of particle names"); - } + #define THROW_INFOERR(KEY) throw InfoError("Problem in info parsing while accessing key " + string(KEY) + " in file " + datapath) + + // Simple scalars (test for nullness before casting) + #if YAMLCPP_API_VERSION == 3 + /// @todo Fix + #define TRY_GETINFO(KEY, VAR) try { if (doc.FindValue(KEY)) { string val; doc[KEY] >> val; ai->_ ## VAR = val; } } catch (...) { THROW_INFOERR(KEY); } + #elif YAMLCPP_API_VERSION == 5 + #define TRY_GETINFO(KEY, VAR) try { if (doc[KEY] && !doc[KEY].IsNull()) ai->_ ## VAR = doc[KEY].as(); } catch (...) { THROW_INFOERR(KEY); } + #endif + TRY_GETINFO("Name", name); + TRY_GETINFO("Summary", summary); + TRY_GETINFO("Status", status); + TRY_GETINFO("RunInfo", runInfo); + TRY_GETINFO("Description", description); + TRY_GETINFO("Experiment", experiment); + TRY_GETINFO("Collider", collider); + TRY_GETINFO("Year", year); + TRY_GETINFO("SpiresID", spiresId); + TRY_GETINFO("InspireID", inspireId); + TRY_GETINFO("BibKey", bibKey); + TRY_GETINFO("BibTeX", bibTeX); + #undef TRY_GETINFO + + // Sequences (test the seq *and* each entry for nullness before casting) + #if YAMLCPP_API_VERSION == 3 + /// @todo Fix + #define TRY_GETINFO_SEQ(KEY, VAR) try { \ + if (const YAML::Node* VAR = doc.FindValue(KEY)) { \ + for (size_t i = 0; i < VAR->size(); ++i) { \ + string val; (*VAR)[i] >> val; ai->_ ## VAR += val; \ + } } } catch (...) { THROW_INFOERR(KEY); } + #elif YAMLCPP_API_VERSION == 5 + #define TRY_GETINFO_SEQ(KEY, VAR) try { \ + if (doc[KEY] && !doc[KEY].IsNull()) { \ + const YAML::Node& VAR = doc[KEY]; \ + for (size_t i = 0; i < VAR.size(); ++i) \ + if (!VAR[i].IsNull()) ai->_ ## VAR += VAR[i].as(); \ + } } catch (...) { THROW_INFOERR(KEY); } + #endif + TRY_GETINFO_SEQ("Authors", authors); + TRY_GETINFO_SEQ("References", references); + TRY_GETINFO_SEQ("ToDo", todos); + #undef TRY_GETINFO_SEQ + + + // A boolean with some name flexibility + try { + #if YAMLCPP_API_VERSION == 3 + bool val; + if (const YAML::Node* n = doc.FindValue("NeedsCrossSection")) { *n >> val; ai->_needsCrossSection = val; } + if (const YAML::Node* n = doc.FindValue("NeedCrossSection")) { *n >> val; ai->_needsCrossSection = val; } + #elif YAMLCPP_API_VERSION == 5 + if (doc["NeedsCrossSection"]) ai->_needsCrossSection = doc["NeedsCrossSection"].as(); + else if (doc["NeedCrossSection"]) ai->_needsCrossSection = doc["NeedCrossSection"].as(); + #endif + } catch (...) { + THROW_INFOERR("NeedsCrossSection|NeedCrossSection"); + } + + + // Beam particle identities + try { + #if YAMLCPP_API_VERSION == 3 + + if (const YAML::Node* pbeampairs = doc.FindValue("Beams")) { + const YAML::Node& beampairs = *pbeampairs; + vector beam_pairs; + if (beampairs.size() == 2 && + beampairs[0].Type() == YAML::NodeType::Scalar && + beampairs[1].Type() == YAML::NodeType::Scalar) { + string bstr0, bstr1; + beampairs[0] >> bstr0; + beampairs[1] >> bstr1; + beam_pairs += make_pdgid_pair(bstr0, bstr1); + } else { + for (YAML::Iterator bpi = beampairs.begin(); bpi != beampairs.end(); ++bpi) { + const YAML::Node& bp = *bpi; + if (bp.size() == 2 && + bp[0].Type() == YAML::NodeType::Scalar && + bp[1].Type() == YAML::NodeType::Scalar) { + string bstr0, bstr1; + bp[0] >> bstr0; + bp[1] >> bstr1; + beam_pairs += make_pdgid_pair(bstr0, bstr1); + } else { + throw InfoError("Beam ID pairs have to be either a 2-tuple or a list of 2-tuples of particle names"); } } - ai->_beams = beam_pairs; } - else if (key == "Energies") { - const YAML::Node& energies = it.second(); - vector > beam_energy_pairs; - for (YAML::Iterator be = energies.begin(); be != energies.end(); ++be) { - if (be->Type() == YAML::NodeType::Scalar) { - // If beam energy is a scalar, then assume symmetric beams each with half that energy + ai->_beams = beam_pairs; + } + + #elif YAMLCPP_API_VERSION == 5 + + if (doc["Beams"]) { + const YAML::Node& beams = doc["Beams"]; + vector beam_pairs; + if (beams.size() == 2 && beams[0].IsScalar() && beams[0].IsScalar()) { + beam_pairs += make_pdgid_pair(beams[0].as(), beams[1].as()); + } else { + for (size_t i = 0; i < beams.size(); ++i) { + const YAML::Node& bp = beams[i]; + if (bp.size() != 2 || !bp[0].IsScalar() || !bp[0].IsScalar()) + throw InfoError("Beam ID pairs have to be either a 2-tuple or a list of 2-tuples of particle names"); + beam_pairs += make_pdgid_pair(bp[0].as(), bp[1].as()); + } + } + ai->_beams = beam_pairs; + } + + #endif + } catch (...) { THROW_INFOERR("Beams"); } + + + // Beam energies + try { + #if YAMLCPP_API_VERSION == 3 + + if (const YAML::Node* penergies = doc.FindValue("Energies")) { + const YAML::Node& energies = *penergies; + vector > beam_energy_pairs; + for (YAML::Iterator be = energies.begin(); be != energies.end(); ++be) { + if (be->Type() == YAML::NodeType::Scalar) { + // If beam energy is a scalar, then assume symmetric beams each with half that energy + double sqrts; + *be >> sqrts; + beam_energy_pairs += make_pair(sqrts/2.0, sqrts/2.0); + } else if (be->Type() == YAML::NodeType::Sequence) { + const YAML::Node& beseq = *be; + // If the sub-sequence is of length 1, then it's another scalar sqrt(s)! + if (beseq.size() == 1) { double sqrts; - *be >> sqrts; + (*be)[0] >> sqrts; beam_energy_pairs += make_pair(sqrts/2.0, sqrts/2.0); - } else if (be->Type() == YAML::NodeType::Sequence) { - const YAML::Node& beseq = *be; - // If the sub-sequence is of length 1, then it's another scalar sqrt(s)! - if (beseq.size() == 1) { - double sqrts; - (*be)[0] >> sqrts; - beam_energy_pairs += make_pair(sqrts/2.0, sqrts/2.0); - } else if (beseq.size() == 2) { - vector beamenergies; - double beamenergy0, beamenergy1; - beseq[0] >> beamenergy0; - beseq[1] >> beamenergy1; - beam_energy_pairs += make_pair(beamenergy0, beamenergy1); - } else { - assert(0 && "Beam energies have to be a list of either numbers or pairs of numbers"); - } + } else if (beseq.size() == 2) { + vector beamenergies; + double beamenergy0, beamenergy1; + beseq[0] >> beamenergy0; + beseq[1] >> beamenergy1; + beam_energy_pairs += make_pair(beamenergy0, beamenergy1); } else { - assert(0 && "Beam energies have to be a list of either numbers or pairs of numbers"); + throw InfoError("Beam energies have to be a list of either numbers or pairs of numbers"); } + } else { + throw InfoError("Beam energies have to be a list of either numbers or pairs of numbers"); } - ai->_energies = beam_energy_pairs; - } else if (key == "Collider") { - it.second() >> ai->_collider; - } else if (key == "SpiresID") { - it.second() >> ai->_spiresId; - } else if (key == "BibKey") { - it.second() >> ai->_bibKey; - } else if (key == "BibTeX") { - it.second() >> ai->_bibTeX;//Body; - } else if (key == "Status") { - it.second() >> ai->_status; - } else if (key == "ToDo") { - const YAML::Node& todos = it.second(); - for (YAML::Iterator todo = todos.begin(); todo != todos.end(); ++todo) { - string s; - *todo >> s; - ai->_todos += s; - } - } else if (key == "NeedCrossSection" || key == "NeedsCrossSection") { - it.second() >> ai->_needsCrossSection; - } else if (key == "RunInfo") { - it.second() >> ai->_runInfo; - } else if (key == "Description") { - it.second() >> ai->_description; - } else if (key == "Year") { - it.second() >> ai->_year; - } else if (key == "Authors") { - const YAML::Node& authors = it.second(); - for (YAML::Iterator a = authors.begin(); a != authors.end(); ++a) { - string astr; - *a >> astr; - ai->_authors += astr; - } - } else if (key == "References") { - const YAML::Node& refs = it.second(); - for (YAML::Iterator r = refs.begin(); r != refs.end(); ++r) { - string rstr; - *r >> rstr; - ai->_references += rstr; + } + ai->_energies = beam_energy_pairs; + } + + #elif YAMLCPP_API_VERSION == 5 + + if (doc["Energies"]) { + vector< pair > beam_energy_pairs; + for (size_t i = 0; i < doc["Energies"].size(); ++i) { + const YAML::Node& be = doc["Energies"][i]; + if (be.IsScalar()) { + // If beam energy is a scalar, then assume symmetric beams each with half that energy + beam_energy_pairs += make_pair(be.as()/2.0, be.as()/2.0); + } else if (be.IsSequence()) { + if (be.size() != 2) + throw InfoError("Beam energies have to be a list of either numbers or pairs of numbers"); + beam_energy_pairs += make_pair(be[0].as(), be[1].as()); + } else { + throw InfoError("Beam energies have to be a list of either numbers or pairs of numbers"); } } - } catch (const YAML::RepresentationException& ex) { - Log::getLog("Rivet.Analysis") - << Log::WARN << "Type error when reading analysis data '" - << key << "' from " << datapath << endl; + ai->_energies = beam_energy_pairs; } - } + + #endif + + } catch (...) { THROW_INFOERR("Energies"); } + + #undef THROW_INFOERR + + MSG_TRACE("AnalysisInfo pointer = " << ai); return ai; } Index: rivet-1.8.3/src/Core/Makefile.am =================================================================== --- rivet-1.8.3.orig/src/Core/Makefile.am 2013-11-23 13:57:29.088692432 +0100 +++ rivet-1.8.3/src/Core/Makefile.am 2013-11-23 13:57:33.040713027 +0100 @@ -6,10 +6,4 @@ Analysis.cc AnalysisLoader.cc AnalysisInfo.cc \ AnalysisHandler.cc Run.cc ProjectionHandler.cc HistoHandler.cc -libRivetCore_la_CPPFLAGS = $(AM_CPPFLAGS) -if WITHOUT_YAML_CPP -libRivetCore_la_CPPFLAGS += -I$(top_srcdir)/src/Tools -else -libRivetCore_la_CPPFLAGS += -I$(YAML_CPPINCPATH) -endif -libRivetCore_la_CPPFLAGS += $(CPPFLAGS) +libRivetCore_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(YAML_CPPINCPATH) -DYAMLCPP_API_VERSION=$(YAMLCPP_MAJOR_VERSION) Index: rivet-1.8.3/configure.ac =================================================================== --- rivet-1.8.3.orig/configure.ac 2013-11-23 13:57:29.088692432 +0100 +++ rivet-1.8.3/configure.ac 2013-11-23 13:57:33.044713053 +0100 @@ -138,14 +138,23 @@ CPPFLAGS=$oldCPPFLAGS -## Build Doxygen if possible -AC_ARG_ENABLE([doxygen], - [AC_HELP_STRING(--disable-doxygen, [don't try to make Doxygen documentation])], - [], [enable_doxygen=yes]) -if test x$enable_doxygen = xyes; then - AC_PATH_PROG(DOXYGEN, doxygen) +## yaml-cpp metadata file parsing library +AC_CEDAR_LIBRARYANDHEADERS([yaml-cpp], , , [AC_MSG_ERROR([yaml-cpp is required])]) +YAMLCPP_LIBS="-lyaml-cpp" +oldCPPFLAGS=$CPPFLAGS +oldLDFLAGS=$LDFLAGS +CPPFLAGS="$AM_CPPFLAGS $CPPFLAGS -I$YAML_CPPINCPATH" +LDFLAGS="$AM_LDFLAGS $LDFLAGS -L$YAML_CPP_LIBPATH" +dnl AC_CHECK_HEADER([yaml-cpp/yaml.h], [], [AC_MSG_ERROR([yaml-cpp/yaml.h header not found.])]) +AC_CHECK_HEADER([yaml-cpp/node.h], [YAMLCPP_MAJOR_VERSION=3]) +AC_CHECK_HEADER([yaml-cpp/node/node.h], [YAMLCPP_MAJOR_VERSION=5]) +if test "x$YAMLCPP_MAJOR_VERSION" = x; then + AC_MSG_ERROR([yaml-cpp API version could not be determined]) fi -AM_CONDITIONAL(WITH_DOXYGEN, [test x$DOXYGEN != x]) +AC_MSG_NOTICE([yaml-cpp API version = $YAMLCPP_MAJOR_VERSION]) +AC_SUBST(YAMLCPP_MAJOR_VERSION) +CPPFLAGS=$oldCPPFLAGS +LDFLAGS=$oldLDFLAGS ## Disable build/install of standard analyses @@ -206,16 +215,20 @@ fi AM_CONDITIONAL(ENABLE_PDFMANUAL, [test x$enable_pdfmanual = xyes]) +## Build Doxygen documentation if possible +AC_ARG_ENABLE([doxygen], + [AC_HELP_STRING(--disable-doxygen, [don't try to make Doxygen documentation])], + [], [enable_doxygen=yes]) +if test x$enable_doxygen = xyes; then + AC_PATH_PROG(DOXYGEN, doxygen) +fi +AM_CONDITIONAL(WITH_DOXYGEN, [test x$DOXYGEN != x]) ## Build asciidoc docs if possible AC_PATH_PROG(ASCIIDOC, asciidoc) AM_CONDITIONAL(WITH_ASCIIDOC, [test x$ASCIIDOC != x]) -## Test to see if we have to install libyaml-cpp -AC_CEDAR_LIBRARYANDHEADERS([yaml-cpp], , , [AC_MSG_NOTICE([Rivet will install the yaml-cpp library])]) - - ## Python extension AC_ARG_ENABLE(pyext, [AC_HELP_STRING(--disable-pyext, [don't build Python module (default=build)])], @@ -332,7 +345,7 @@ AC_CONFIG_FILES(include/Makefile include/Rivet/Makefile) AC_CONFIG_FILES(src/Makefile) AC_CONFIG_FILES(src/Core/Makefile) -AC_CONFIG_FILES(src/Tools/Makefile src/Tools/yaml-cpp/Makefile) +AC_CONFIG_FILES(src/Tools/Makefile) AC_CONFIG_FILES(src/Projections/Makefile) AC_CONFIG_FILES(src/Analyses/Makefile) AC_CONFIG_FILES(test/Makefile) debian/patches/siscone.patch0000644000000000000000000000105412142446411013300 0ustar --- a/configure.ac +++ b/configure.ac @@ -118,7 +118,7 @@ -o "$fjmajor" -eq 2 -a "$fjminor" -eq 4 -a "$fjmicro" -lt 2; then AC_MSG_ERROR([FastJet version 2.4.2 or later is required]) fi - FASTJETCONFIGLIBADD="$($FJCONFIG --plugins --shared --libs | sed 's/\-\-rpath/-rpath/g')" + FASTJETCONFIGLIBADD="$($FJCONFIG --plugins --shared --libs | sed 's/\-\-rpath/-rpath/g') -lsiscone_spherical -lsiscone" #FASTJETLIBPATH="$($FJCONFIG --libs | sed 's/.*\-L\([^\ ]\+\).*/\1/')" else FASTJETCONFIGLIBADD="-L$FASTJETLIBPATH -l$FASTJETLIBNAME" debian/patches/yaml-cpp0000644000000000000000000000000012244110521012240 0ustar debian/patches/series0000644000000000000000000000030012244105725012025 0ustar doc-building.patch purge-convenient-tinyxml-lib.patch purge-non-free-fastjet-plugins.patch yaml-cpp.patch siscone.patch fix-analysis-plugin-path.patch path-max.patch yaml-cpp-v5-support.patch debian/python-rivet.install0000644000000000000000000000002012142446411013215 0ustar usr/lib/python* debian/rivet-reference.install0000644000000000000000000000006012142446411013636 0ustar doxy/html/* /usr/share/doc/rivet-reference/html debian/rivet-chopbins.10000644000000000000000000000251412142446411012205 0ustar .TH RIVET-CHOPBINS "1" "June 2012" "Rivet" "User Commands" .SH NAME rivet-chopbins \- Strip specified bins from data sets. .SH SYNOPSIS .B rivet-chopbins \fI-b \fR[ \fI-b \fR... ] \fI \fR[...] .SH DESCRIPTION Strip specified bins from data sets. Histograms not specified will be passed through without any chopping. Bins to be kept can be specified on command line `\-b' options. .PP To chop bins from different observables can be achieved by using the `\-b' option multiple times. .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-b\fR BINS, \fB\-\-bins\fR=\fIBINS\fR Specify a histogram and bin range that is to be kept. The format is `AIDAPATH:start:stop'. .TP \fB\-O\fR OBSFILE, \fB\-\-obsfile\fR=\fIOBSFILE\fR Specify a file with bin\-definitions to chop .TP \fB\-o\fR OUTDIR, \fB\-\-out\fR=\fIOUTDIR\fR output directory (default: .) .TP \fB\-i\fR, \fB\-\-in\-place\fR Overwrite input file rather than making inputchop.aida .SH "Example:" .IP rivet\-chopbins \fB\-b\fR /ALEPH_1996_S3486095/d03\-x01\-y01:0.095:0.27 out.aida .PP This will give you the all bins of the ALEPH 1\-T distribution that are between the bins that contain the x\-values 0.095 and 0.27. .SH AUTHOR This manual page was written by Lifeng Sun for the Debian system (but may be used by others). debian/rivet-config.10000644000000000000000000000202512142446411011642 0ustar .TH RIVET-CONFIG "1" "June 2012" "Rivet" "User Commands" .SH NAME rivet-config \- configuration tool for Rivet .SH SYNOPSIS .B rivet-config [\fIoption\fR] .SH OPTIONS .TP \fB\-\-help\fR, \fB\-h\fR show this help message .TP \fB\-\-prefix\fR show the installation prefix (cf. autoconf) .TP \fB\-\-includedir\fR show the path to the directory containing the Rivet headers .TP \fB\-\-libdir\fR show the path to the directory containing the Rivet libraries .TP \fB\-\-datadir\fR show the path to the directory containing Rivet data .TP \fB\-\-pythonpath\fR show the path(s) to the directory containing Rivet Python modules .TP \fB\-\-cppflags\fR returns a Rivet '\-I' string for insertion into CPPFLAGS .TP \fB\-\-ldflags\fR returns a Rivet '\-L' string for insertion into LDFLAGS .TP \fB\-\-libs\fR returns a Rivet '\-l' string for insertion into LIBS or LIBADD .TP \fB\-\-version\fR returns Rivet release version number .SH AUTHOR This manual page was written by Lifeng Sun for the Debian system (but may be used by others). debian/rivet-root-converter.install0000644000000000000000000000004412142446411014672 0ustar usr/bin/aida2root usr/bin/root2flat debian/rivet-plugins-doc.doc-base0000644000000000000000000000051312142446411014136 0ustar Document: rivet-analyses-reference Title: Rivet Analyses Reference Manual Author: Leif Lonnblad, Andy Buckley, Jon Butterworth Abstract: Paper reference for Rivet analyses plugins. Section: Science/Physics Format: HTML Index: /usr/share/doc/rivet-plugins-doc/html/analyses.html Files: /usr/share/doc/rivet-plugins-doc/html/*.html debian/changelog0000644000000000000000000000234412244123036011040 0ustar rivet (1.8.3-1.1) unstable; urgency=low * Non-maintainer upload. * debian/patches/yaml-cpp-v5-support.patch: New patch, porting rivet to version 5 of the YAML API, backported from upstream revisions 3434, 3442, 3459-3463 and 3484-3486 (Closes: #724223). -- Michael Banck Sat, 23 Nov 2013 12:05:19 +0100 rivet (1.8.3-1) unstable; urgency=low * New upstream release. -- Lifeng Sun Tue, 07 May 2013 09:24:27 +0800 rivet (1.8.2-1~exp1) experimental; urgency=low * New upstream release. -- Lifeng Sun Tue, 05 Mar 2013 23:02:23 +0800 rivet (1.8.1-1~exp1) experimental; urgency=low * New upstream release. * debian/rules: change to tiny-style. -- Lifeng Sun Tue, 10 Jul 2012 19:40:19 +0800 rivet (1.8.0-2) UNRELEASED; urgency=low * New patch path-max.patch: fix FTBFS on hurd-i386. * debian/control: move texlive-science and doxygen-latex to Build-Deps-Indeps. * debian/copyright: fix licence version. -- Lifeng Sun Mon, 25 Jun 2012 21:37:24 +0800 rivet (1.8.0-1) unstable; urgency=low * Initial release (Closes: #636983) -- Lifeng Sun Mon, 04 Jun 2012 00:23:54 +0800 debian/rivet-buildplugin.10000644000000000000000000000170112142446411012713 0ustar .TH RIVET-BUILDPLUGIN "1" "June 2012" "Rivet" "User Commands" .SH NAME rivet\-buildplugin \- compilation helper for Rivet analysis plugins .SH SYNOPSIS .B rivet-buildplugin [\fI\fR] \fI \fR[\fI \fR[\fIcompiler_flags\fR] ...] .SH DESCRIPTION .PP can be a path, provided the filename is of the form 'Rivet*.so' If is not specified, the default name is 'RivetAnalysis.so'. .PP To make special build variations you can add appropriate compiler flags to the arguments and these will be passed directly to the compiler. For example, for a debug build of your plugin library, add '\-g', and for a 32 bit build on a 64 bit system add '\-m32'. .SH OPTIONS .HP \fB\-h\fR | \fB\-\-help\fR: display this help message .HP \fB\-\-with\-root\fR: add ROOT link options (requires root\-config on system) .SH AUTHOR This manual page was written by Lifeng Sun for the Debian system (but may be used by others). debian/compat0000644000000000000000000000000212142446411010363 0ustar 8 debian/aida2flat.10000644000000000000000000000416612142446411011105 0ustar .TH AIDA2FLAT "1" "June 2012" "Rivet" "User Commands" .SH NAME aida2flat \- Convert AIDA data files to a flat format .SH SYNOPSIS .B aida2flat [\fIoptions\fR] \fIaidafile \fR[\fIaidafile2 \fR...] .SH DESCRIPTION Convert AIDA data files to a flat format which is more human\-readable then the XML (and by default also plottable directly using make\-plots). The output is by default written out to standard output unless the \fB\-\-split\fR, \fB\-\-smart\-output\fR, \fB\-\-gnuplot\fR, or \fB\-\-output\fR options are specified. When specifying either input or output filenames, a '\-' is used to refer to stdin or stdout as appropriate. .PP Histograms can also be filtered by AIDA path, using the \fB\-m\fR or \fB\-M\fR options for a positive or negative regex pattern patch respectively. .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-o\fR OUTPUT, \fB\-\-output\fR=\fIOUTPUT\fR Write all histos to a single output file, rather than the default writing to stdout. stdout can be explicitly specified by setting '\-' as the output filename. This option will be disregarded if \fB\-\-split\fR, \fB\-\-smart\-output\fR, or \fB\-\-gnuplot\fR is specified. .TP \fB\-s\fR, \fB\-\-split\fR Write each histo to a separate output file, with names based on the histo path .TP \fB\-S\fR, \fB\-\-smart\-output\fR Write to output files with names based on the corresponding input filename. This option will be disregarded if \fB\-\-split\fR is specified. .TP \fB\-g\fR, \fB\-\-gnuplot\fR Provide output suitable for Gnuplot's 'plot "foo.dat" with xye'. This option implies \fB\-\-split\fR and will override \fB\-\-output\fR or \fB\-\-smart\-output\fR .TP \fB\-\-plotinfodir\fR=\fIPLOTINFODIR\fR directory which may contain plot header information .TP \fB\-m\fR PATHPATTERNS, \fB\-\-match\fR=\fIPATHPATTERNS\fR Only write out histograms whose $path/$name string matches these regexes .TP \fB\-M\fR PATHUNPATTERNS, \fB\-\-unmatch\fR=\fIPATHUNPATTERNS\fR Exclude histograms whose $path/$name string matches these regexes .SH AUTHOR This manual page was written by Lifeng Sun for the Debian system (but may be used by others). debian/copyright0000644000000000000000000001354712142446411011132 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: rivet Source: http://www.hepforge.org/archive/rivet/ Files: * Copyright: Leif Lonnblad Andy Buckley Jon Butterworth License: GPL-2.0 Files: doc/rivet-manual.tex Copyright: Andy Buckley Jonathan Butterworth Leif Lonnblad Hendrik Hoeth James Monk Holger Schulz Jan Eike von Seggern Frank Siegert Lars Sonnenschein License: GPL-2.0 Files: include/Rivet/Projections/Spherocity.hh src/Analyses/ALEPH_1996_S3486095.cc Copyright: Holger Schulz License: GPL-2.0 Files: include/Rivet/Tools/ParticleIdUtils.hh Copyright: Lynn Garren Andy Buckley License: GPL-2.0 Files: src/Analyses/ATLAS_2010_S8591806.cc src/Analyses/CDF_2008_S7540469.cc src/Analyses/D0_2007_S7075677.cc src/Analyses/D0_2008_S7554427.cc src/Analyses/JADE_OPAL_2000_S4300807.cc Copyright: Frank Siegert License: GPL-2.0 Files: src/Analyses/ATLAS_2011_I926145.cc Copyright: Paul Bell Holger Schulz License: GPL-2.0 Files: src/Analyses/ATLAS_2011_S8924791.cc Copyright: Andy Buckley Judith Katzy Francesc Vives License: GPL-2.0 Files: src/Analyses/ATLAS_2011_S8994773.cc Copyright: Jinlong Zhang License: GPL-2.0 Files: src/Analyses/ATLAS_2011_S9120807.cc Copyright: Giovanni Marchiori License: GPL-2.0 Files: src/Analyses/ATLAS_2011_S9131140.cc Copyright: Yatsenko Judith Katzy License: GPL-2.0 Files: src/Analyses/ATLAS_2011_S9212183.cc Copyright: Chris Wymant License: GPL-2.0 Files: src/Analyses/ATLAS_2012_I1084540.cc Copyright: Tim Martin License: GPL-2.0 Files: src/Analyses/BELLE_2006_S6265367.cc Copyright: Eike von Seggern License: GPL-2.0 Files: src/Analyses/CDF_1994_S2952106.cc src/Analyses/CDF_2006_S6653332.cc src/Analyses/D0_2001_S4674421.cc src/Analyses/D0_2004_S5992206.cc Copyright: Lars Sonnenschein License: GPL-2.0 Files: src/Analyses/CDF_2000_S4155203.cc src/Analyses/CDF_2002_S4796047.cc src/Analyses/CDF_2008_LEADINGJETS.cc src/Analyses/CDF_2008_NOTE_9351.cc src/Analyses/CDF_2009_S8233977.cc src/Analyses/DELPHI_1995_S3137023.cc src/Analyses/CDF_2010_S8591881_DY.cc src/Analyses/CDF_2010_S8591881_QCD.cc src/Analyses/DELPHI_1995_S3137023.cc src/Analyses/DELPHI_1996_S3430090.cc src/Analyses/DELPHI_2002_069_CONF_603.cc src/Analyses/DELPHI_2003_WUD_03_11.cc src/Analyses/OPAL_1998_S3780481.cc src/Analyses/PDG_HADRON_MULTIPLICITIES.cc src/Analyses/STAR_2009_UE_HELEN.cc Copyright: Hendrik Hoeth License: GPL-2.0 Files: src/Analyses/D0_2006_S6438750.cc src/Analyses/D0_2007_S7075677.cc src/Analyses/D0_2008_S7554427.cc src/Analyses/D0_2008_S7662670.cc src/Analyses/D0_2008_S7719523.cc src/Analyses/D0_2008_S7837160.cc Copyright: Gavin Hesketh License: GPL-2.0 Files: src/Analyses/D0_2008_S7863608.cc Copyright: Gavin Hesketh Andy Buckley Frank Siegert License: GPL-2.0 Files: src/Analyses/D0_2010_S8671338.cc Copyright: Flavia Dias License: GPL-2.0 Files: src/Analyses/CMS_2011_S8978280.cc Copyright: Kevin Stenson License: GPL-2.0 Files: src/Analyses/H1_1994_S2919893.cc src/Analyses/H1_2000_S4129130.cc src/Analyses/OPAL_1993_S2692198.cc Copyright: Peter Richardson License: GPL-2.0 Files: src/Analyses/PDG_HADRON_MULTIPLICITIES_RATIOS.cc Copyright: Holger Schulz License: GPL-2.0 Files: src/Analyses/ZEUS_2001_S4815815.cc Copyright: Jon Butterworth License: GPL-2.0 Files: src/Tools/mt2_bisect.cc src/Tools/mt2_bisect.hh Copyright: Hsin-Chia Cheng Zhenyu Han License: GPL-2.0 Files: src/Tools/TinyXML/tinyxmlparser.cpp src/Tools/TinyXML/tinyxml.cpp src/Tools/TinyXML/tinyxmlerror.cpp Copyright: 2000-2002 Lee Thomason License: This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. . Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: . 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. . 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. . 3. This notice may not be removed or altered from any source distribution. Files: src/Tools/binreloc.c src/Tools/binreloc.h Copyright: Hongli Lai License: This source code is public domain. You can relicense this code under whatever license you want. Files: doc/compare-histos.html doc/make-plots.html Copyright: 2002 Mihai Bazon 2006 Troy D. Hanson 2006, 2009 Stuart Rackham License: GPL-2.0 Files: debian/* Copyright: 2012 Lifeng Sun License: GPL-2.0 License: GPL-2.0 This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".