Skip to content

mieskolainen/nanotron

Repository files navigation

nanotron

build tests

Version 0.02

Based on a fusion of code from:

https://github.com/LLPDNNX/LLPReco

https://github.com/DiElectronX/BParkingNANO


Initialize the environment

source /cvmfs/cms.cern.ch/cmsset_default.sh

Initialize GRID

source /vols/grid/cms/setup.sh
voms-proxy-init --voms cms

Initialize CMSSW

scram list CMSSW

cmsrel CMSSW_10_2_22
cd CMSSW_10_2_22/src

cmsenv

Pull the repo

git clone git@github.com:mieskolainen/nanotron.git nanotron

Update the repo

cd nanotron/ && git pull origin main && cd ..

Build the code

scram build clean
scram build

Produce a custom NanoAOD tree

cmsRun nanotron/NANOProducer/test/produceNANO.py inputFiles=https://github.com/LLPDNNX/test-files/raw/master/miniaod/HNL_miniaod18.root year=2018 test=True isData=False

cmsRun nanotron/NANOProducer/test/produceNANO.py inputFiles=/store/mc/RunIIAutumn18MiniAOD/QCD_Pt-30to50_MuEnrichedPt5_TuneCP5_13TeV_pythia8/MINIAODSIM/102X_upgrade2018_realistic_v15-v3/100000/005594DA-4AA0-3E48-A8C2-46DECDE2E925.root year=2018 test=True isData=False addSignalLHE=False

cmsRun nanotron/NANOProducer/test/produceNANO.py inputFiles=/store/data/Run2018B/ParkingBPH1/MINIAOD/05May2019-v2/230000/00496A25-08B6-FB4E-9681-D5FF4E1BE81F.root year=2018 test=True isData=True

Test the custom NanoAOD tree (TBD)

python nanotron/test/check_tree.py

m.mieskolainen@imperial.ac.uk, 2023

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •