Git Product home page Git Product logo

np-mc-jettuning's Introduction

NP-MC-JetTuning

Rivet + Different MC Generators for Jet Studies

Installation on naf as a DAS package

Installation

  1. Setup naf: source setup_naf.sh
#!/bin/sh
module use -a /afs/desy.de/group/cms/modulefiles/
module load cmssw
ls -la /cvmfs/cms.cern.ch/
source /cvmfs/cms.cern.ch/cmsset_default.sh

2 Install Darwin

git clone https://gitlab.cern.ch/DasAnalysisSystem/Darwin.git
cd Darwin
source setup
make clean
make

(don't use make -j .... )

  1. Compile Darwin
cd Darwin/CMSSW_12_4_0/src
cmenv
scram b -j `nproc`
  1. make Ntupliser/src directory and put RivetNtupliser.cc and BuildFile.xml there and python config file.

  2. Install Core: source setup_DAS.sh and build the Rivet

#!/bin/bash
cmsrel CMSSW_10_6_30
cd CMSSW_10_6_30/src
cmsenv
git clone https://gitlab.cern.ch/gparaske/Core.git
git checkout Rivet
scram b -j `nproc`
  1. Clone this repo and put its DAS workflow on Darwin, recompile
git clone https://github.com/AliAlkadhim/NP-MC-JetTuning.git
cp -r DAS_RivetNtupliser/RivetNtupliser/* Core

Running RivetNtuplizer

Running cd Ntupliser && tree displays all the different directories and files in each directory

tree

Explanation of RivetNtupliser

Starting a blank EDAnalyzer (with mkedanlzr DemoAnalyzer) gives the following template

With the Buildfile in plugins being DAS kind of follows this, but with internally defined plugins, with Core having these subpackages

For example, the JEC subpackage:

Running on a rivet docker

TODO: File better directory management.

  • export DOCKER as the path to the docker work dir, and REPO as the shared directory inside docker, where my repo is mounted
  • Go to DOCKER to install all the stuff, and REPO where you run stuff
  1. Run the image interactively
docker run --rm -v /home/ali/Desktop/Pulled_Github_Repositories/NP-MC-JetTuning:/work/shared --privileged -it hepstore/prof2-tutorial 
  1. Get HEPMC3
source install_hepmc3.sh
  1. Get the pythia example files, compile main42 and test it
mkdir pythia && cd pythia && wget https://pythia.org/download/pythia83/pythia8309.tar 
&& tar -xf pythia8309.tar
  1. Compile main42.cc for your system

  2. Make rivet analysis and compile (with root flag -r)

rivet-build -r RivetRIVET_NTUPLIZER.so RIVET_NTUPLIZER.cc
rivet --pwd -a RIVET_NTUPLIZER ../pythia/pythia8309/examples/42_test.hepmc

Running on a other cvmfs cluster like lxplus

np-mc-jettuning's People

Contributors

alialkadhim avatar

Watchers

 avatar

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.