McDst

所属分类:数值算法/人工智能
开发工具:C++
文件大小:58KB
下载次数:0
上传日期:2022-08-01 16:55:20
上 传 者sh-1993
说明:  各种蒙特卡洛发生器输出存储的数据格式(DST)
(Data format (DST) for various Monte Carlo generator output storage)

文件列表:
LICENSE (35143, 2022-08-02)
Makefile (1803, 2022-08-02)
McArrays.cxx (685, 2022-08-02)
McArrays.h (790, 2022-08-02)
McDst.cxx (1422, 2022-08-02)
McDst.h (1501, 2022-08-02)
McDstCut.cxx (1619, 2022-08-02)
McDstCut.h (1052, 2022-08-02)
McDstLinkDef.h (421, 2022-08-02)
McDstQA.cxx (6471, 2022-08-02)
McDstQA.h (1512, 2022-08-02)
McDstReader.cxx (5614, 2022-08-02)
McDstReader.h (2477, 2022-08-02)
McEvent.cxx (3473, 2022-08-02)
McEvent.h (3969, 2022-08-02)
McPIDConverter.cxx (3045, 2022-08-02)
McPIDConverter.h (1414, 2022-08-02)
McParticle.cxx (10154, 2022-08-02)
McParticle.h (9416, 2022-08-02)
McRun.cxx (7433, 2022-08-02)
McRun.h (4888, 2022-08-02)
hijing2mc.cpp (6990, 2022-08-02)
input (0, 2022-08-02)
input\pluto_pdg.dat (829, 2022-08-02)
input\urqmd_pdg.dat (5205, 2022-08-02)
input\urqmd_pdg.dat_old (13000, 2022-08-02)
input\werner_pdg.dat (1020, 2022-08-02)
macros (0, 2022-08-02)
macros\Makefile (1099, 2022-08-02)
macros\analyseMcDst.C (4629, 2022-08-02)
macros\analyseWithBranches.C (2047, 2022-08-02)
macros\mcdstqa.C (754, 2022-08-02)
macros\processMcDstStandalone.cpp (5938, 2022-08-02)
macros\runProcessing.C (1492, 2022-08-02)
mcdst_environment.sh (503, 2022-08-02)
pythia8gen.cpp (15520, 2022-08-02)
urqmd2mc.cpp (10378, 2022-08-02)
... ...

# McDst Data format (DST) for a Monte Carlo event generator output using ROOT package. The McDst set of classes (that can be compiled to the library) allows to store and work with *filename.mcDst.root* files or with a list (*filename.lis* or *filename.list*) of such files. Brief description of how to compile and run the analysis over mcDst on your machine. ## Installation a) System has to have ROOT preinstalled (should work with versions 5 and 6). b) There is a Makefile stored in the **_mcdst_** directory. In order to compile the codes one needs to run: ``` make ``` c) Since it is the most commonly used, the **g++** compiler is used for the compilation. However, one can also switch it to **clang++** (has been successfully tested) d) After the compilation is finished the shared library *libMcDst.so* will be created. e) If you have some errors during the compilation please contact the McDst maintainer. ## Processing mcDst There are three ROOT macroses with example of how to perform a simple analysis using McDst. They are stored in the **mcdst/macros** directory and called: *analyseMcDst.C*, *runProcessing.C*, and *analyseWithBranches.C*. Lets assume that one has and input file(s) *InputFile* with a *name.mcDst.root* or a list of mcDst files, called *name.lis(t)*, and McDst is compiled (i.e. the *libMcDst.so* library exists). There are 2 possible processing scenarios of using McDst library and classes depending on the ROOT version: ### ROOT 5: One should run ROOT from the terminal: ``` [myterm]> root runProcessing.C\(\"InputFile\",\"oFileName\"\) ``` Aforementioned will load *libMcDst.so*, compile and run *runProcessing.C*. After the processing will be finished, it will remove dictionary and library created by ACLiC. ### ROOT 6: Since ROOT 6 does not have CINT there is some extra flexibility on how to analyze the data. The first one is listed above. The second option is to run the *analyseMcDst.C* macro directly. Either from the terminal: ``` root runProcessing.C\(\"InputFile\",\"oFileName\"\) ``` Or from the root session: ``` [myterm]> root root [0].x runProcessing.C("InputFile","oFileName") ``` ### Simple Processing The other possibility is not to use **McDst** classes, but read *filename.mcDst.root* files as regular ROOT TTree. The macros *analyseWithBranches.C* shows an example of doing it. ## Conversion to McDst There are various MC generators used in the field. To convert their output one can convert it to the McDst format via special tiny C++ programs (e.g., urqmd2mc.cpp). To do it, one needs to compile an executable file: ``` make converters ``` To run the converter, the MCDST environment variable should be added to PATH and LD_LIBRARY_PATH. One can do it either by calling a shell script (mcdst_environment.bash) which will define the variable for the current session: ``` source mcdst_environment.sh ``` or by hands to the environment. After the environment variable is added one can run the converter. ## Troubleshooting For any questions or with any suggestions please contact the package maintainer.

近期下载者

相关文件


收藏者