GENIE-MC / Generator

The popular GENIE Generator product is used by nearly all accelerator neutrino experiments and it plays a key role in the exploitation of neutrino data. The Generator implements a modern software framework and it includes state-of-the-art physics modules. It captures the latest results of the GENIE global analysis of neutrino scattering data and includes several tunes that were produced using the proprietary Comparisons and Tuning products. The GENIE physics model is universal and comprehensive: It handles all neutrinos and targets, and all processes relevant from MeV to PeV energy scales. The Generator includes several tools (flux drivers, detector geometry navigators, specialized event generation apps, event reweighting engines) to simulate complex experimental setups in full detail and to support generator-related analysis tasks.
http://www.genie-mc.org
42 stars 91 forks source link

Add a Configuration of matrix in Genie #406

Closed LiangLiu212 closed 2 months ago

LiangLiu212 commented 2 months ago

Since a covariance matrix is needed when I implement the reweight method for Z expansion vector form factor model. Here is a solution to import the covariance matrix from xml configuration. Covariance matrix can be imported from xml directly or from a plain text file. There are two example:

<param type="mat-double" name="CCTEST0@CovarianceMatrix" importfile="false" rowdelim=";" coldelim=","> 2.0, 1.0, 2; 1.1, 2.1, 2; 1.1, 2.1, 2; 1.1, 2.1, 3.2 </param> <param type="mat-double" name="CCTEST1@CovarianceMatrix" importfile="true"> /exp/uboone/app/users/liangliu/Genie/genie/Reweight/data/testmat.dat </param>

The matrix can be get by GetParamMat()

LiangLiu212 commented 2 months ago

I add a new method GetParamMatSym() to get the symmetry matrix by using TMatrixTSym.