Experimental Particle Physics at Kyung hee University

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:docs:generators_and_rivet [2022/01/02 06:55] Junghwan Gohpublic:docs:generators_and_rivet [2022/04/07 05:07] (current) Haesung Park
Line 30: Line 30:
 위의 명령어가 실행된다면 이미 rivet을 사용할 준비가 된 상태입니다. 위의 명령어가 실행된다면 이미 rivet을 사용할 준비가 된 상태입니다.
  
 +
 +(작성중입니다)
 +
 +rivet - 처음 구동해보기
 +준비물 : hepmc 파일
 +예시
 +<code bash>
 +rivet -a CMS_2018_I1620050 event_PYTHIA_0.hepmc
 +</code>
 +CMS_2018_I1620050 자리에 본인이 구동해보고싶은 analysis 입력
 +event_PYTHIA_0.hepmc 자리에 본인의 hepmc 파일 입력
 +
 +rivet - 새로운 analysis 만들기
 +<code bash>
 +rivet-mkanalysis analysis_title
 +</code>
 +> 기본적인 analysis 틀이 만들어짐 (analysis_title.cc analysis_title.plot analysis_title.info)
 +
 +기본적인 c++ 지식 필요
 +[[https://rivet.hepforge.org/analyses.html]]
 +[[https://rivet.hepforge.org/code/dev/]]
 +등등 페이지를 참조하여 rivet 문법 확인 후 analysistitle.cc 파일에 작성
 +
 +다 작성하면 
 +<code bash>
 +rivet-buildplugin analysistitle.cc
 +</code>
 +를 통해 analysis를 본인 리벳 폴더 안에 본인의 analysis 가 저장됨
 +(환경변수)
 +<code bash>
 + export RIVET_ANALYSIS_PATH=$PWD
 +</code>
 +
 +<code bash>
 +rivet --list-analyses
 +</code>
 +본인의 analysis 가 제대로 컴파일되어 저장된지 확인
 +analysistitle.plot 파일은 analysis 에서 x축 y축을 바꿀 수 있고, 다른  standard analysis의 .plot 파일을 통해 히스토그램의 bin을 확인할 수 있음
 +analysistitle.info 파일은
 +
 +rivet - 새로운 analysis 구동하기 
 +<code bash>
 +rivet -a analysistitle event_PYTHIA_0.hepmc
 +</code>
 +를 통해서 직접 만든 analysis 구동 가능
 ==== (optional) Rivet 이미지 만들기 ==== ==== (optional) Rivet 이미지 만들기 ====
 만약 원하는 Rivet 이미지가 이미 hep 서버에 만들어져 있지 않아서 직접 만들어야 한다면 아래 명령어를 실행하면 됩니다.  만약 원하는 Rivet 이미지가 이미 hep 서버에 만들어져 있지 않아서 직접 만들어야 한다면 아래 명령어를 실행하면 됩니다. 
Line 58: Line 103:
  
 를 실행합니다. mg5_aMC 는 ''/sw/MG5_aMC_v3_3_1/bin/mg5_aMC'' 에서 찾을 수 있습니다. 를 실행합니다. mg5_aMC 는 ''/sw/MG5_aMC_v3_3_1/bin/mg5_aMC'' 에서 찾을 수 있습니다.
 +
 +CVMFS에 설치된 LHAPDF 데이터 파일을 사용하려면 다음과 같은 방식으로 실행하면 됩니다.
 +
 +<code bash>
 +singularity run -B/cvmfs/sft.cern.ch/lcg/external/lhapdfsets/current:/sw/MG5_aMC_v3_3_1/HEPTools/lhapdf6_py3/share/LHAPDF \
 +                  /store/sw/singularity/mg5/mg5_amc_3.3.1.sif
 +#singularity exec -B/cvmfs/sft.cern.ch/lcg/external/lhapdfsets/current:/sw/MG5_aMC_v3_3_1/HEPTools/lhapdf6_py3/share/LHAPDF \
 +#                   /store/sw/singularity/mg5/mg5_amc_3.3.1.sif /bin/bash
 +</code>
 ==== (optional) aMC@NLO 이미지 생성하기 ==== ==== (optional) aMC@NLO 이미지 생성하기 ====
 이미지 생성 방법은 [[:public:docs:2021:singularity_amcatnlo_3x|여기]] 를 참조합니다. 이미지 생성 방법은 [[:public:docs:2021:singularity_amcatnlo_3x|여기]] 를 참조합니다.
  
 ===== Powheg 구동하기 ===== ===== Powheg 구동하기 =====
 +(작성중입니다)
 +*[[https://powhegbox.mib.infn.it/]] POWHEG BOX 메인페이지
 +
 +LHAPDF, fastjet  필요
 +
 +<code bash>
 +tar xf LHAPDF-T.X.Y.tar.gz
 +cd LHAPDF-T.X.Y
 +./configure --prefix=/path/for/installation
 +make
 +make install
 +</code>
 +
 +
 +<code bash>
 +export PYTHONPATH=path/to/lhapdf/lib/pythonx.y/site-packages/
 +export LD_LIBRARY_PATH=path/to/lhapdf/lib
 +export PATH=path/to/lhapdf/bin/:$PATH
 +export LHAPDF_DATA_PATH=path/to/lhapdf/share/LHAPDF
 +</code>
 +
 +<code bash>
 +tar xf fasjet-x.y.z
 +cd fastjet-x.y.z
 +./configure --prefix=/path/for/installation
 +make 
 +make check
 +make install
 +</code>
 +
 +<code bash>
 +export PATH=path/to/fastjet/bin/:$PATH
 +</code>
 +
 +POWHEG BOX
 +powheg box 메인 프로그램 설치 
 +<code bash>
 + $ svn checkout [--revision n] --username anonymous --password anonymous svn://powhegbox.mib.infn.it/trunk/POWHEG-BOX-V2
 +</code>
 +설치 후 POWHEG-BOX-V2 디렉토리로 이동해서
 +<code bash>
 + $ svn list [--revision n] --username anonymous --password anonymous svn://powhegbox.mib.infn.it/trunk/User-Processes-V2 
 +</code>
 +User-Processes-V2 대신 원하는 process를 powheg box 리스트에서 찾아서 입력
 +
 +
 +<code bash>
 +make pwhg_main 
 +</code>
 +컴파일 끝나고 끝나면 powheg.input 파일을 원하는 설정으로 만들거나 cms-sw genproducts 안의 input 파일 찾아보고 사용 
 +
 +현재 확인한 구동가능한 process
 +: ttH, ttb_NLO_dec
 +(세부적인 사용방법은 각 process폴더 안의 doc 폴더 안에 존재)
 +
 +
  
  
 ===== Sherpa 구동하기 ===== ===== Sherpa 구동하기 =====
 +Sherpa docker image
 +<code bash>
 +singularity run docker://hepstore/rivet_sherpa
 +</code>
 +
 +[[https://sherpa.hepforge.org/doc/SHERPA-MC-2.2.12.html]] Sherpa manual
 +기본적인 옵션들은 -h 참조
 +
 +기본 구동 방법
 +<code bash>
 +Sherpa Run.dat 
 +</code>
 +
 +Run.dat 파일을 manual 참조하여 작성 후 구동
 +
 +===== Pythia8 구동하기 =====
 +<code bash>
 +singularity run docker://hepstore/rivet_pythia
 +</code>
 +
 +Pythia8의 경우 main 파일을 직접 작성하여 구동 하는것이 원칙 이지만
 +
 +pythia8 내부의 example 폴더를 찾아보면 기본 main.cc 파일을 컴파일하여 main 파일을 사용할 수 있음
 +
 +[[https://pythia.org/manuals/pythia8307/Welcome.html]] main 프로그램 샘플
 +
 +예시 구동 방법:
 +<code bash>
 +./main89 main89mlm.cmnd output.hepmc
 +</code>
 +
 +
 +===== Herwig7 구동하기 =====
 +<code bash>
 +singularity run docker://hepstore/rivet_herwig
 +</code>
 +
 +herwig 환경 설정
 +<code bash>
 +source activate
 +</code>
 + 
 +원하는 .in 파일을 찾거나 작성 후
 +<code bash>
 +Herwig read XXXX.in
 +</code>
 +read를 하고나면 XXXX.run 파일이 만들어져있고
 +
 +<code bash>
 +Herwig run XXXX.run
 +</code>
 +run 파일을 구동
 +

public/docs/generators_and_rivet.1641106511.txt.gz · Last modified: 2022/01/02 06:55 by Junghwan Goh