Giter VIP home page Giter VIP logo

montblanc's Introduction

DOI

alt text

MontBlanc

MontBlanc is a code devoted to the extraction of collinear distributions. So far, it has been used to determine the fragmentation functions (FFs) of the pion from experimental data for single-inclusive annihilation and semi-inclusive deep-inelastic scattering. Details concerning this fit of FFs in particular and the methodology in general can be found in the reference below.

The FF sets in the LHAPDF format for both positive and negative pions as well as for their sum can be found here.

Requirements

In order for the code to pe compiled, the following dependencies need to be preinstalled:

Compilation and installation

The MontBlanc library only relies on cmake for configuration and installation. This is done by following the standard procedure:

mkdir build
cd build
cmake ..
make -j
make install

The library can be uninstalled by running:

make clean
xargs rm < install_manifest.txt

Usage

The relevant source code to perform a fit and analyse the results can be found in the run/ folder. However, in the following we assume to be in the build/run/ folder that will be created after the cmake procedure detailed above and that contains the executables. In this folder we need to create a subfolder called fit/ that will be used to store the results. A short description of each code is as follows:

  1. Optimize: this code is responsible for performing the fit. An example of the usage of this code is:

    ./Optimize 1 ../../config/MAPFF10_210301_SIA_SIDIS_7fl_pos_woSLDc.yaml ../../data/ fit/
    

    The first argument indicates the Monte Carlo replica index, the second points to the input card containing the main parameters of the fit as well as the data sets to be fitted (see here for a commented example and here for additional information concerning the data sets), the third points to the folder where the data files are contained, and the last argument is the folder where the results of the fit will be dumped. This code produces in the folder fit/ a file called BestParameters.yaml that contains the best fit parameters of the NN along with some additional information such as the training, validation, and global χ2's. In addition, this code will place in the fit/ folder two additional subfolders, log/ and data/, containing respectively the log file of the fit and the data files for the fitted experimental sets. If a new fit with a different Monte Carlo replica index is run specifying the fit/ as a destination for the results, the best fit parameters of this new fit will be appended to the BestParameters.yaml file and a new log file will be created in the fit/log/ subfolder. Notice that Monte Carlo replica indices equal or larger than one correspond to actual random fluctuations of the central values of the experimental data, while the index 0 corresponds to a fit to the central values, i.e. no fluctuations are performed. If the code Optimize is run without any arugments it will prompt a short usage description.

  2. LHAPDFGrid: this code produces an LHAPDF grid for a given fit. In order to produce a grid for the fit in the fit/ folder, the syntax is:

    ./LHAPDFGrid fit/
    

    The produced grid can be found in the fit/ folder under the name LHAPDFSet and corresponds to positive pion FFs. This set will eventually be used for analysing the results. It possible to customise the output by providing the script with additional options. Specifically, it possible to produce a grid for negative as well as for the sum of positive and negative pion FFs, to change the default name, and to specificy the number of replicas to be produced. The last option is applicable only when more fits have been run in the fit/ folder and the number of user-provided replicas does not exceed the number of fits. For example, assuming to have performed 120 fits, the following:

    ./LHAPDFGrid fit/ PIm MySetForPim 100
    

    will produce a set named MySetForPim for negative pions and with 101 replicas where the zero-replica is the average over the following 100. Similarly, the following:

    ./LHAPDFGrid fit/ PIp   MySetForPip   100
    ./LHAPDFGrid fit/ PIsum MySetForPisum 100
    

    will respectively produce a grid for positive pions (default) and for the sum of positive and negative pions. In addition, the LHAPDFGrid code sorts the replicas in the global χ2 from the smallest to the largest. Therefore, the resulting set will containg the 100 replicas out of 120 with best global χ2's. Also in this case, if the code LHAPDFGrid is run without any arugments it will prompt a short usage description.

  3. ComputeChi2s: as the name says, the code computes the χ2's using the fit results. The syntax is:

    ./ComputeChi2s fit/
    

    This code relies on the presence of an LHAPDF grid in the fit folder named LHAPDFSet and will result in the creation of the file fit/Chi2s.yaml containing the χ2 for the single experiments included in the fit. It is also possible to change the name of the FF set to be used to compute the χ2's. For example:

    ./ComputeChi2s fit/ MySetForPim
    

    will compute the χ2's using the MySetForPim set that has to be either in the fit/ folder or in the LHAPDF data directory (that can be retrieved by running the command lhapdf-config --datadir from shell).

  4. Predictions: this code computes the predictions for all the points included in the fit. It is used as:

    ./Predictions fit/
    

    Also this code relies on the presence of an LHAPDF grid in the fit folder named LHAPDFSet and will produce the file fit/Predictions.yaml. Again, it is possible to use a different name for the FF set to be used to compute the χ2's. For example:

    ./Predictions fit/ MySetForPim
    

    will compute the predictions using the MySetForPim set that has to be either in the fit/ folder or in the LHAPDF data directory.

The results produced by the codes described above can finally be visualised by copying into the fit/ folder and running the template jupyter notebook AnalysePredictions.ipynb that is in the analysis/ folder. This is exactly how the fit of pion FFs documented in the reference below has been obtained and any user should be able to reproduce it by following the steps above. For reference, we have linked the folder of the baseline fit here along with the corresponding jupyter notebook.

Reference

If you use this code you might want to refer to and cite the following reference:

  • Rabah Abdul Khalek, Valerio Bertone, Emanuele R. Nocera, "A determination of unpolarised pion fragmentation functions using semi-inclusive deep-inelastic-scattering data: MAPFF1.0", arXiv:2105.08725
  • Rabah Abdul Khalek, Valerio Bertone, Alice Khoudli, Emanuele R. Nocera, "Pion and kaon fragmentation functions at next-to-next-to-leading order", arXiv:2105.08725

Contacts

For additional information or questions, contact us using the email adresses below:

montblanc's People

Contributors

maryamgithub63 avatar vbertone avatar rabah-khalek avatar hashamipour avatar synar avatar enocera avatar maral-salajegheh avatar mcerutti996 avatar

Forkers

paradahutauruk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.