Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMS Driver Based Workflows for the dev-recipes branch #142

Open
mulhearn opened this issue Feb 4, 2016 · 4 comments
Open

CMS Driver Based Workflows for the dev-recipes branch #142

mulhearn opened this issue Feb 4, 2016 · 4 comments

Comments

@mulhearn
Copy link
Member

mulhearn commented Feb 4, 2016

Eventually this will go in a Twiki, but during development this is an issue.

The dev-recipes branch now supports various configurations via cmsDriver. Some important examples are listed here:

  1. Test of Stage-1 / Stage-2 unpacking: unpacks RAW from run with both Stage-1 and Stage-2 included, dumps summary of each event to screen, and summarizes total number of each type:
    cmsDriver.py L1UNPACKTEST -s RAW2DIGI,L1Reco --era=Run2_2016 --conditions=auto:run2_data -n 100 --data --filein=/store/data/Run2015D/ZeroBias/RAW/v1/000/260/627/00000/00A76FFA-0C82-E511-B441-02163E01450F.root --customise=L1Trigger/Configuration/customiseUtils.L1TStage1DigisSummary --customise=L1Trigger/Configuration/customiseUtils.L1TStage2DigisSummary --no_output
...
INFO:  L1T Summary for Stage 1 Unpacked Digis
INFO: count of non-zero candidates for each type follows:
eg:    348
tau:   61
jet:   90
sum:   331
INFO:  L1T Summary for Stage 2 Unpacked Digis
INFO: count of non-zero candidates for each type follows:
eg:    1200
tau:   1200
jet:   1190
sum:   400
muon:  0

No stage 1 muons in this test until a legacy-to-upgrade format converter is written.
No stage 2 muons in this test because the upgrade Muon system was not included in this run.

  1. Ntuple Stage-1 / Stage-2 unpacked digis: unpack Stage1 and Stage2 and store in L1Extra tree:

cmsDriver.py l1Ntuple -s RAW2DIGI,L1Reco --era=Run2_2016 --customise=L1Trigger/L1TNtuples/customiseL1Ntuple.L1NtupleRAW --conditions=auto:run2_data -n 100 --data --filein=/store/data/Run2015D/ZeroBias/RAW/v1/000/260/627/00000/00A76FFA-0C82-E511-B441-02163E01450F.root --no_output

You get an ntuple "L1Ntuple.root" containing the Stage-1 output in L1ExtraTree and the Stage-2 output in L1UpgradeTree. No stage 2 muons in this test because the upgrade Muon system was not included in this run. Stage 1 muons are present because they are filled in the ntuple via legacy l1extra.

  1. Re-Emulate Stage-2 Calo/Global/Muon from RAW, and dump simulated Stage-2 digis to screen:

cmsDriver.py L1UNPACKTEST -s RAW2DIGI,L1Reco --era=Run2_2016 --conditions=auto:run2_data -n 10 --data --filein=/store/data/Run2015D/ZeroBias/RAW/v1/000/260/627/00000/00A76FFA-0C82-E511-B441-02163E01450F.root --customise=L1Trigger/Configuration/customiseReEmul.L1TReEmulFromRAW --customise=L1Trigger/Configuration/customiseUtils.L1TStage2SimDigisSummary --no_output --customise=L1Trigger/Configuration/customiseUtils.L1TTurnOffUnpackStage2GtAndGmt

  1. Re-Emulate Stage-2 Calo/Global/Muon from RAW, and fill an ntuple with emulated Stage-2.
    cmsDriver.py L1UNPACKTEST -s RAW2DIGI,L1Reco --era=Run2_2016 --conditions=auto:run2_data -n 100 --data --filein=/store/data/Run2015D/ZeroBias/RAW/v1/000/260/627/00000/00A76FFA-0C82-E511-B441-02163E01450F.root --customise=L1Trigger/Configuration/customiseReEmul.L1TReEmulFromRAW --customise=L1Trigger/L1TNtuples/customiseL1Ntuple.L1NtupleEMU --no_output --customise=L1Trigger/Configuration/customiseUtils.L1TTurnOffUnpackStage2GtAndGmt
@mulhearn
Copy link
Member Author

These workflows are starting to look decent...

@mulhearn
Copy link
Member Author

I think next is to test that work flow (4) is bitwise equivalent to reEmul.py.

@mulhearn
Copy link
Member Author

I have a proposal for warnings that I'm happy to implement eventually if @jimbrooke and @apana agree:

  • if an input label is set to "none", a warning at start will be issued that input will not be processed.
  • module will not attempt to recover from event anything with label "none" (no per event warnings in this case)

@jimbrooke
Copy link
Member

Sounds good to me. This was always the plan, it just never quite happened...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants