Giter Site home page Giter Site logo

l1trigger's Introduction

L1TMenu

HowToL1TriggerMenu twiki:

You can find useful information, like how to customise seeds, how to make menulib and locations of ntuples and so on

Checkout the code


cmsrel CMSSW_9_2_15
cd CMSSW_9_2_15/src
cmsenv
git clone https://github.com/alokekumardas/l1trigger.git  
cd l1trigger/L1Menu/macros/
make -j 8

Pick your preferred ntuple (ntuple location is in the twiki)

nanoDST ntuple is recommended for rate study because it has much more statistics
Need to use ZeroBias ntuple if you want to run emulation


 cd ntuple
./makeFileList.py your_ntuple_location

Make Lumi Section (LS) information table with BrilCalc

This is important, because 2018 ntuples are produced without json file. So we need to pick our preferred json file to avoid bad LS
Also, LS vs PU information is stored in this table, which will be used later, in the rate vs PU plots
Go to the menu folder, edit GetLumi.py with the run number of your ntuple


source GetLumi_setup.sh
./GetLumi.py

Make prescale (PS) table

2018 official PS table is in https://github.com/cms-l1-dpg/L1Menu2018/tree/master/official/PrescaleTables
The PS table is in .xlsx format, for better presentation
Convert the PS table to either a tab separated .txt file, or a .CSV file
menu/Prescale_2018_v1_0_0_Col_2.0.txt is an example of the latest PS table, column 2.0e34
Add your customised seeds into the PS table, with your designed prescale value

Check the arguments of the code

./testMenu2016 --help for all arguments
some useful argument:
-u the LS information table you just made
-m the PS table you just customised
-l the ntuple list you just made
-o name of output files
-b number of bunches. Usually is 2544 for 2018 data
--UseUnpackTree to use UnpackTree, the default is EmuTree
--SelectRun to select the run number if your ntuple list has multiple runs, the default is the whole ntuple list
--SelectLS to select the LS, the defualt is the whole LS
You can loop up the LS information table for help. For nanoDST ntuple, the LS corresponding to PU 55-57 (for col 2.0e34) sould be enough. If your ntuple does not have that high PU, you can do a linear exreapolation

Run the code with arguments


./testMenu2016 -u menu/run_lumi.csv -m menu/Prescale_2018_v1_0_0_Col_2.0.txt -l ntuple/your_ntuple.list -o name_of_output_files -b 2544 --doPlotRate --UseUnpackTree --SelectRun your_run_number --SelectLS '[start_LS,end_LS]'

Make rate vs PU plots

add argument --doPrintPU
remove argument --SelectRun and --SelectLS, because we need to cover the full PU
You can use batch/SubmitLPC.py or SubmitLSF.py to split the job
edit plot/CompPUDep.py and run it!

l1trigger's People

Contributors

alokekumardas avatar

Watchers

James Cloos 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.