Git Product home page Git Product logo

hnlsgen's Introduction

Instructions to set up environment for HNL generation

First Installation

cmsrel CMSSW_10_2_3
cd CMSSW_10_2_3/src
cmsenv
git cms-init

git cms-merge-topic mgratti:BHNL

# *commented lines are not needed*
# git cms-addpkg GeneratorInterface/EvtGenInterface
# git cms-addpkg GeneratorInterface/ExternalDecays
# git cms-addpkg GeneratorInterface/Pythia8Interface

git clone [email protected]:BParkHNLs/HNLsGen.git

export CMSSW_SEARCH_PATH=$CMSSW_BASE/src/HNLsGen/evtGenData/:$CMSSW_SEARCH_PATH  # needed to use local evt_xx.pdl file
scram b

cd HNLsGen
git checkout -b mybranch

export PYTHONPATH=$PYTHONPATH:$PWD 

After first installation:

cd CMSSW_10_2_3/src/HNLsGen
cmsenv
export PYTHONPATH=$PYTHONPATH:$PWD 

NOT NEEDED ANYMORE - Instructions to set up a different version of Pythia within CMSSW

This needs to be started from clean CMSSW directory, before cmsenv

Therefore adopt different strategy:

  • start from 8230 version (as obtained from pythia8 website)
  • compile on laptop => but then removed in /lib the file
  • copy it somewhere on t3
  • copy there from sonia's pythia the files she added / changed
  • the follow again above mentioend twiki page...

Drivers

BPH_start_cfg.py                  => mod tau->3mu  with Fall18, starting point
BPH_mod_cfg.py                    => FROZEN DRIVER, for sharing
step1.py                          =>                for development

Production

GEN-SIM

Submission to slurm:

cd slurm

Create a VXX_points.py files starting from points.py, then submit

python genHelper.py --help

Up to miniAOD

python prodHelper.py --help

Note that using the --dogenonly option is equivalent to using genHelper.py

Analyze

To visualize the decay chain in a tree (printout to screen), using vector<reco::genParticles>

cd genLevelAnalysis
cmsRun test_ParticleTreeDrawer.py maxEvents=1 inputFiles=file:/work/mratti/GEN_HNL/CMSSW_10_2_3/src/HNLsGen/genSimFiles/BPH-test_HardQCDon.root

To get the gen-level ntuples

cd genLevelAnalysis
python genTreeProducer.py --pl V05_muFromB_pt5_eta1p6_n600000_njt30 --points V05_points.py

To analyze the gen-level ntuples, edit possible options and then run:

python genAnalysis.py --pl V05_muFromB_pt5_eta1p6_n600000_njt30

OBOLETE Proto-analyzer of edm::HepMCProduct

cd genLevelAnalysis
cmsRun test_EvtGenTestAnalyzer.py

To analyze particles' distributions

cd genLevelAnalysis
python hnl_signal_reweighter.py

hnlsgen's People

Contributors

mgratti avatar amlyon avatar pandolf avatar

Watchers

James Cloos avatar

Forkers

raffaella07

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.