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

Ecal phase2 sim reco 11 1 x #29386

Closed
wants to merge 14 commits into from
Closed

Ecal phase2 sim reco 11 1 x #29386

wants to merge 14 commits into from

Conversation

RSalvatico
Copy link
Contributor

@RSalvatico RSalvatico commented Apr 3, 2020

PR description:

The PR contains the code necessary to run the Phase2 simulation of the EB (ECAL Barrel) calorimeter up to the digitisation step. Most of it was duplicated from the current code and adapted to describe the Phase2 configuration, which, for instance, should contain no references to EE (ECAL Endcap) and ES (ECAL Preshower). Thanks to the duplication, the newly introduced code DOES NOT affect standard simulation and reconstruction sequences in any way.

It is possible to select whether to use the Phase1 or Phase2 sequences when running an event generation (GEN,SIM, DIGI steps), by loading the Phase1 or Phase2 configuration files. An example is given by:

  • SimCalorimetry/EcalSimProducers/test/SingleElectron_cfi_py_GEN_IDEAL_withECALDigi_Ph1.py (Phase1)

  • SimCalorimetry/EcalSimProducers/test/SingleElectron_cfi_py_GEN_IDEAL_withECALDigi_newshape.py (Phase2)

When the Phase2 sequence is run, every signal in EB is sampled at 160 MHz for a total of 16 samples, according to the specifics of the Phase2 electronics. Two possible gains are applied to the signal samples: gain 10 and gain 1. The new EB digitisation is stored inside the simEcalUnsuppressedDigis collection, in which the digis are composed by 12 bits containing the ADC values (as for Phase1), plus a 13th bit containing the gain information: 0 if gain 10, 1 if gain 1.

PR validation:

The material included in the PR was validated mainly by generating particles (electrons) of different energies and checking how the signals they produced in EB were digitised. This was achieved by running the GEN,SIM,DIGI sequences in:

  • SimCalorimetry/EcalSimProducers/test/SingleElectron_cfi_py_GEN_IDEAL_withECALDigi_Ph1.py (Phase1)

  • SimCalorimetry/EcalSimProducers/test/SingleElectron_cfi_py_GEN_IDEAL_withECALDigi_newshape.py (Phase2)

and by reading their output files through the respective Phase1 and Phase2 analyzers, located in:

  • SimCalorimetry/PhaseIAnalyzer/

  • SimCalorimetry/PhaseIIAnalyzer/

The analyzers can be run with "cmsRun ConfFile_cfg.py", situated in the python/ folder of the two directories above. They produce a number of histograms, containing for instance the location of the signals as read by the EB electronics, and the gain they were read out with.
The tests showed that the desired digitisation behaviour was obtained for the Phase2 sequence, while the Phase1 behaviour still reflects the current one.

@cmsbuild cmsbuild changed the base branch from CMSSW_11_1_X to master April 3, 2020 09:54
@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 3, 2020

@RSalvatico, CMSSW_11_1_X branch is closed for direct updates. cms-bot is going to move this PR to master branch.
In future, please use cmssw master branch to submit your changes.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 3, 2020

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 3, 2020

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29386/14502

  • This PR adds an extra 248KB to repository

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 3, 2020

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 3, 2020

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29386/14512

  • This PR adds an extra 284KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 3, 2020

A new Pull Request was created by @RSalvatico (Riccardo Salvatico) for master.

It involves the following packages:

CalibFormats/CaloObjects
CondFormats/DataRecord
CondFormats/EcalObjects
Configuration/StandardSequences
DataFormats/EcalDigi
SimCalorimetry/Configuration
SimCalorimetry/EcalSimAlgos
SimCalorimetry/EcalSimProducers
SimCalorimetry/PhaseIAnalyzer
SimCalorimetry/PhaseIIAnalyzer
SimGeneral/MixingModule

The following packages do not have a category, yet:

SimCalorimetry/PhaseIAnalyzer
SimCalorimetry/PhaseIIAnalyzer
Please create a PR for https://github.com/cms-sw/cms-bot/blob/master/categories_map.py to assign category

@civanch, @silviodonato, @christopheralanwest, @mdhildreth, @cmsbuild, @franzoni, @tocheng, @tlampen, @ggovi, @pohsun, @fabiocos, @davidlange6 can you please review it and eventually sign? Thanks.
@fabiocos, @lecriste, @makortel, @felicepantaleo, @GiacomoSguazzoni, @tocheng, @argiro, @Martin-Grunewald, @rovere, @thomreis, @mmusich, @VinInn, @dgulhan, @seemasharmafnal this is something you requested to watch as well.
@silviodonato, @dpiparo you are the release manager for this.

cms-bot commands are listed here

@civanch
Copy link
Contributor

civanch commented Apr 5, 2020

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/5541/console Started: 2020/04/05 11:56

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2020

-1

Tested at: e0acded

CMSSW: CMSSW_11_1_X_2020-04-04-1100
SCRAM_ARCH: slc7_amd64_gcc820
You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c22a05/5541/summary.html

I found follow errors while testing this PR

Failed tests: Build ClangBuild

  • Build:

I found compilation warning when building: See details on the summary page.

  • Clang:

I found compilation warning while trying to compile with clang. Command used:

USER_CUDA_FLAGS='--expt-relaxed-constexpr' USER_CXXFLAGS='-Wno-register -fsyntax-only' scram build -k -j 32 COMPILER='llvm compile'

See details on the summary page.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2020

Comparison not run due to Build errors (RelVals and Igprof tests were also skipped)

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 6, 2020

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29386/18827

  • This PR adds an extra 256KB to repository

  • Found files with invalid states:

    • SimCalorimetry/EcalSimProducers/python/esCATIAGainProducer_cfi.py:
    • Configuration/Eras/python/Era_Phase2_Ecal_Devel_cff.py:

Code check has found code style and quality issues which could be resolved by applying following patch(s)

'keep floatedmValueMap_puppi_*_*',
'keep *_ak4PFJetsPuppi_*_*',
'keep *_ak8PFJetsPuppi_*_*',
'keep *_ak8PFJetsPuppiSoftDrop_*_*',
'keep recoPFJets_ak4PFJets_*_*',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how is this related to ECAL phase 2 ?

@slava77
Copy link
Contributor

slava77 commented Oct 6, 2020

-1

this seems to contain some unrelated changes
e.g. RecoJets/Configuration/python/RecoJets_EventContent_cff.py

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2020

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2020

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29386/18879

@dariosol
Copy link
Contributor

dariosol commented Oct 8, 2020

Dear all,
I tried to force a push from the revision 11_2_0_pre3 to 11_1_0_pre4 on which the PR was open. Then I rebased the repo, but I think there are problems: if I try to recompile after the rebase i see errors like:


In file included from /afs/cern.ch/work/d/dsoldi/CMS/FromRiccardoForUpgrade/CMSSW_11_2_0_pre3/src/CondCore/SiPixelPlugins/plugins/SiPixelLorentzAngle_PayloadInspector.cc:15,
from /afs/cern.ch/work/d/dsoldi/CMS/FromRiccardoForUpgrade/CMSSW_11_2_0_pre3/src/CondCore/SiPixelPlugins/test/testSiPixelPayloadInspector.cpp:4:
/afs/cern.ch/work/d/dsoldi/CMS/FromRiccardoForUpgrade/CMSSW_11_2_0_pre3/src/CondCore/SiPixelPlugins/interface/SiPixelPayloadInspectorHelper.h:26:10: fatal error: DataFormats/TrackerCommon/interface/PixelBarrelName.h: No such file or directory
#include "DataFormats/TrackerCommon/interface/PixelBarrelName.h"


If I download the cmssw_11_1_0_pre4, and go in the EcalSimRecoPhase2_11_1_X (the one of the PR) and i try to compile it, I still see problems in compilation: it does not find the library fmt.

@slava77
Copy link
Contributor

slava77 commented Oct 8, 2020

-1

this seems to contain some unrelated changes
e.g. RecoJets/Configuration/python/RecoJets_EventContent_cff.py

@thomreis
Copy link
Contributor

@dariosol can this PR be closed now that #31726 exists?

@RSalvatico
Copy link
Contributor Author

@dariosol can this PR be closed now that #31726 exists?

Yes, we are closing this PR.

@RSalvatico RSalvatico closed this Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.