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

[BP CMSSW_106X] Add protection for missing handleExtResults #33921

Closed
wants to merge 1,389 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1389 commits
Select commit Hold shift + click to select a range
8283335
apply code quality checks
rmanzoni Dec 7, 2020
392fed9
support for GBRForest stored in ROOT files
bainbrid Nov 25, 2020
3eab02f
handle both old (e.g. 2019Aug07) and new (2020Sept15) BDT models, rek…
bainbrid Nov 25, 2020
e134d23
enable embedding of edm::Ptr<pat::PackedCandidate> in pat::Electron
bainbrid Nov 25, 2020
220f959
add 'ele2packed' and 'ele2lost' ValueMaps, embed IDs and Ptrs, select…
bainbrid Nov 25, 2020
4c9c394
add low-pT electrons to MINIAOD by default, modify collections in REC…
bainbrid Nov 25, 2020
eeb7230
revert to boost/filesystem
bainbrid Nov 26, 2020
ceb38e6
add missing lib
bainbrid Nov 26, 2020
6b29469
prevent copy of GBRForest after read
bainbrid Dec 2, 2020
e87d57d
switch to fixedGridRhoFastjetAll, tidy up
bainbrid Dec 2, 2020
3ebcce3
remove obsolete headers
bainbrid Dec 2, 2020
af519cf
bug fix concerning BaseParticlePropagator usage; removed lowptgsfeles…
bainbrid Dec 2, 2020
dcfdd01
scram build code-format
bainbrid Dec 2, 2020
074b7e3
add rekeyLowPtGsfElectronSeedValueMaps to RECO and FEVT
bainbrid Dec 3, 2020
ade0d0b
revert to original 'Autumn18' model for RECO, use 2020Sept15 for UL r…
bainbrid Dec 6, 2020
b5359cc
scram build code-format
bainbrid Dec 6, 2020
8d5ea35
Merge pull request #32399 from rmanzoni/from-CMSSW_10_6_X_2020-12-02-…
cmsbuild Dec 8, 2020
40916e6
slava: add gbrForestFile.Close(nodelete)
bainbrid Dec 8, 2020
ee6ceb3
slava: use run2_miniAOD_UL in lowPtGsfElectronID_cff
bainbrid Dec 8, 2020
c1513e2
slava: remove rekey module from RECO sequence
bainbrid Dec 8, 2020
d5297a2
slava: only add low pT electrons to MINIAOD for bParking and run2_min…
bainbrid Dec 8, 2020
692e790
Fixes a unit test failure in TauAnalysis/MCEmbeddingTools (back port …
bainbrid Dec 8, 2020
541fb89
schedule rekeyLowPtGsfElectronSeedValueMaps and lowPtGsfElectronID fo…
bainbrid Dec 8, 2020
5fa77db
Merge pull request #32372 from bainbrid/LowPtElectrons_userFloats_106X
cmsbuild Dec 9, 2020
293bb3f
Add low pT electron payloads to Run 2 data/MC and Run 3 MC GTs
christopheralanwest Dec 10, 2020
7ef6ce9
Merge pull request #32435 from christopheralanwest/alca-lowpt-egm_10_6_X
cmsbuild Dec 10, 2020
36c4ff6
fix logic: break loop once the filter condition is satisfied, no need…
rmanzoni Dec 11, 2020
67f92a3
code style
rmanzoni Dec 11, 2020
c0ec3bc
Merge pull request #32450 from rmanzoni/from-CMSSW_10_6_X_2020-12-02-…
cmsbuild Dec 14, 2020
b2c2280
Merge pull request #32298 from andrzejnovak/614nosort
cmsbuild Dec 16, 2020
3f16975
add nanoAOD_106Xv2 modifiers
mariadalfonso Dec 19, 2020
78f800d
add wf nanoAOD_106Xv1
mariadalfonso Dec 19, 2020
c18143c
add wf nanoAOD_106Xv2
mariadalfonso Dec 19, 2020
a9e3e1b
add wf 106X v1 and v2 in the runTheMatrix
mariadalfonso Dec 19, 2020
76048dc
centralize modifiers in one place
mariadalfonso Dec 19, 2020
64fbc53
insert the run2_nanoAOD_106Xv2 into the sequences
mariadalfonso Dec 19, 2020
d404347
Merge pull request #32564 from mariadalfonso/nanoModifiers106
cmsbuild Dec 29, 2020
e6658dd
Updated getter functions for pps track variables
Jan 7, 2021
1f56e23
Fixed compilation issue
Jan 7, 2021
a659687
Merge branch 'CMSSW_10_6_X' into pps_nanoAOD_backport106X
Jan 8, 2021
ade2d14
changes following the comments from mariarasaria
Jan 11, 2021
69096ff
Fix the ExternalGeneratorFilter argument passing to python config (10…
colizz Jan 11, 2021
5371157
Merge pull request #32637 from colizz/dev-106X-fixExternalGeneratorFi…
cmsbuild Jan 12, 2021
f9d5b9a
added range-based loop from PR #32521
Jan 12, 2021
e4a78de
new features
leonardogiannini Mar 1, 2019
297a755
info builders and converter for DV
leonardogiannini Mar 1, 2019
8b6837d
changes int the global features
leonardogiannini Mar 1, 2019
97b5cb5
class def change
leonardogiannini Mar 1, 2019
8740bdc
Deepvertex files and modifications
leonardogiannini Mar 1, 2019
70c3830
TF producer for Deepvertex
leonardogiannini Mar 1, 2019
2d21539
start cleaning from printout
leonardogiannini Mar 1, 2019
c926002
more cleaning
leonardogiannini Mar 1, 2019
d098235
more cleaning
leonardogiannini Mar 1, 2019
7afa465
add comment
leonardogiannini Mar 5, 2019
1b33685
switch off the deepvertex modules
leonardogiannini Mar 5, 2019
4d01cde
add configuration paramtere
leonardogiannini Mar 6, 2019
b8f3c26
indentation and other fixes
leonardogiannini Apr 2, 2019
d51c3a1
adjusted
leonardogiannini Apr 2, 2019
01694b2
jet 4vec filler
leonardogiannini Apr 2, 2019
9920596
method in cc
leonardogiannini Apr 2, 2019
c7177d4
adjeusted
leonardogiannini Apr 2, 2019
0bb3537
recocand and minor changes
leonardogiannini Apr 2, 2019
c8a4c6c
minor changes
leonardogiannini Apr 2, 2019
f3dadbe
added line for method moved to .cc
leonardogiannini Apr 2, 2019
bb0f379
no prefix
leonardogiannini Apr 2, 2019
7655f81
xml and checksum
leonardogiannini Apr 2, 2019
198f3f1
weight file position
leonardogiannini Apr 3, 2019
1257fec
changes for testing
leonardogiannini Apr 3, 2019
2ce0da6
test cfg deepvertex
leonardogiannini Apr 3, 2019
cafd4eb
classes version
leonardogiannini May 7, 2019
ddd5c00
candidates
leonardogiannini May 7, 2019
fbbbc97
remove comment
leonardogiannini May 7, 2019
88b4683
range loop and more rewriting
leonardogiannini May 7, 2019
88c7435
move to cc
leonardogiannini May 7, 2019
c6aedd2
renaming
leonardogiannini May 7, 2019
c99b82d
move method to cc
leonardogiannini May 7, 2019
fcc3e36
modified SeedingTrackInfoBuilder
leonardogiannini May 30, 2019
e8dec78
modified TrackPairInfoBuilder
leonardogiannini May 30, 2019
40f46be
modified converter and producers - jet pt and eta cut - new methods i…
leonardogiannini May 30, 2019
9871d30
removed couts
leonardogiannini May 30, 2019
77ad5b9
log with offset
leonardogiannini May 31, 2019
52f14e8
pass arguments as const
leonardogiannini Jun 5, 2019
192a71e
optimize calls of IPs computations
leonardogiannini Jun 5, 2019
1c4d6a1
build transient track outside the jet loop and store Abs IPs
leonardogiannini Jun 6, 2019
b7c68c1
pass also ip2d
leonardogiannini Jun 6, 2019
aa155ad
enable DeepCombinedJetTags as supported tagger
leonardogiannini Oct 29, 2020
df78586
move to ONNX and add combination
leonardogiannini Oct 29, 2020
cd33dc1
move producers to ONNX and add DeepCombinedONNXJetTags
leonardogiannini Oct 29, 2020
f2c1023
adding cfg to run the DeepVertex and comb. taggers and compare to Dee…
leonardogiannini Oct 29, 2020
d2aea0b
ran scram build code-format
leonardogiannini Oct 29, 2020
a814385
applied minimal corrections
leonardogiannini Nov 5, 2020
fb54989
added helpers to reduce code repetition
leonardogiannini Nov 9, 2020
37a45d1
update of the producers to run only on pt raw>15 and eta<2.5 + added …
leonardogiannini Nov 9, 2020
ba790be
clang of tensor fillers
leonardogiannini Nov 10, 2020
25e13a6
added methods to fillers
leonardogiannini Nov 11, 2020
5b81124
move constexpr to external header
leonardogiannini Nov 11, 2020
5a7cabf
modified the producers
leonardogiannini Nov 11, 2020
072bbf2
clean RecoBTag/TensorFlow used only by DeepVertex
leonardogiannini Nov 11, 2020
4ac9039
clang code check
leonardogiannini Nov 11, 2020
dade8e9
Merge pull request #32616 from jwill24/pps_nanoAOD_backport106X
cmsbuild Jan 17, 2021
fc44ab3
Merge pull request #32647 from leonardogiannini/deepvertex_backport_1…
cmsbuild Jan 21, 2021
9b9ec35
Add check for pT_hats collection to be more than 0
nurfikri89 Jan 19, 2021
1a41f9d
Add option to specify minimum jet pt at Fastjet clustering level. Min…
nurfikri89 Jan 22, 2021
32b32d9
Save Parton Shower weights. Remove PF jets. Revised pt cuts for all j…
nurfikri89 Jan 22, 2021
5bb50ce
Remove pt cut
nurfikri89 Jan 22, 2021
6075d62
Put back QGL variables. Accidentally removed previously
nurfikri89 Jan 22, 2021
1eeee5a
Minor documentation update
nurfikri89 Jan 23, 2021
7b84fce
Apply code-checks and code-format patches
nurfikri89 Jan 23, 2021
c39a1d7
Merge pull request #32759 from nurfikri89/port113XTo106X_nanojme_size…
cmsbuild Feb 1, 2021
4bd90ca
PUID UL18 backport
singh-ramanpreet Feb 10, 2021
477eefe
Fix crash when changing lumiblocks on crab
Dominic-Stafford Feb 11, 2021
45501d8
PUID: following PR comments, do not change default run2 mini UL
singh-ramanpreet Feb 11, 2021
e8c384a
PUID: (part 2) following PR comments, do not change default run2 mini UL
singh-ramanpreet Feb 11, 2021
bc2beb8
Update RecoJets/JetProducers/python/PileupJetID_cfi.py
singh-ramanpreet Feb 11, 2021
f274cb2
Merge pull request #32872 from singh-ramanpreet/PUID_UL18_backport_106X
cmsbuild Feb 14, 2021
b24b187
Merge pull request #32893 from Dominic-Stafford/fix_lumiblock_crash
cmsbuild Feb 16, 2021
e87ad3d
Add nConstituents to fat jets.
laurenhay Feb 16, 2021
222f5ab
adding PUID UL18 nanoAOD
alefisico Feb 17, 2021
728b46e
add PUID UL18 nanoAOD
alefisico Feb 17, 2021
2424870
add run2_nanoAOD_devel to protect ongoing productions
mariadalfonso Feb 22, 2021
cd4eecd
avoid adding PPS to the ongoing run2_nanoAOD_106Xv1 that define V8
mariadalfonso Feb 22, 2021
d37ca9c
replace pilot
mariadalfonso Feb 22, 2021
b9f8004
actually add run2_nanoAOD_devel
mariadalfonso Feb 22, 2021
51476c3
modifier aming to undo the PPS addition
mariadalfonso Feb 22, 2021
0cbeedf
Merge pull request #32960 from mariadalfonso/ModifierForV8nano
cmsbuild Feb 28, 2021
2553638
Add additional capability (filtering by decay R/Z) to MCMultiParticle…
kfjack Mar 2, 2021
bd54aa5
Merge pull request #33033 from kfjack/add_decayRZ_to_MCMultiParticleF…
cmsbuild Mar 3, 2021
65b1b37
SV charge respecting nanoAOD-v8 no-change policy
gouskos Mar 4, 2021
fcc0f43
add run2_nanoAOD_devel era
gouskos Mar 4, 2021
be74236
style checks
gouskos Mar 4, 2021
ba172d6
fix modifiers for PUID
alefisico Mar 5, 2021
8506a9f
fix modifiers PUID
alefisico Mar 5, 2021
7ea49db
ProbMax halved
sbein Mar 3, 2021
e9bfb55
Followed Maria's suggestion to preserve ProbMax=1.0 for Run 1 physics
sbein Mar 3, 2021
69d78d5
fix SQM plot for nanoAOD-v8 (106Xv1)
gouskos Mar 8, 2021
7a63351
Rename herwigpp tool to herwig7
Dominic-Stafford Mar 8, 2021
bd1baed
change and to &
gouskos Mar 8, 2021
3643567
change and to & in other places
gouskos Mar 8, 2021
670759d
Merge pull request #33099 from sbein/from-CMSSW_11_3_X_2021-02-28-2300
cmsbuild Mar 9, 2021
343c10c
fix modifiers puID
alefisico Mar 10, 2021
7c646a1
Merge pull request #33075 from gouskos/btv-svcharge-106x
cmsbuild Mar 10, 2021
2a35bf6
Merge pull request #32951 from alefisico/PUID_UL18_backport_106_nanoAOD
cmsbuild Mar 10, 2021
0fbb1e7
Merge pull request #33111 from Dominic-Stafford/Herwig7_rename_10_6
cmsbuild Mar 11, 2021
a5fc07e
Add possibilty to set name of input taus and postfix to use tool many…
mbluj Mar 9, 2021
aa7208a
Add second call of tauID embedding tool to unit test
mbluj Mar 12, 2021
5f4324a
Adapt miniAOD to properly use updated tauID embbeding tool
mbluj Mar 12, 2021
33da299
Change DBS url to cmsweb-prod in MatrixInjector
justinasr Mar 18, 2021
3445cf7
Update Herwig settings blocks to version 7.2.2
Dominic-Stafford Mar 19, 2021
d80b16e
Update Herwig+Powheg test to use settings blocks
Dominic-Stafford Mar 19, 2021
b26f204
Add Herwig+Madgrpah mlm and FxFx tests
Dominic-Stafford Mar 19, 2021
ea87067
Reduce number of getattr and other improvements
mbluj Mar 22, 2021
6edfd0a
Merge pull request #33228 from Dominic-Stafford/Herwig7_2_2_settings_…
cmsbuild Mar 24, 2021
fe13e88
fix lostTracks producer not setting lostInnerHits
Feb 4, 2021
70cc48c
Add a flag to control the new behaviour, disabled by default and enab…
Mar 26, 2021
de73037
Merge pull request #33258 from elusian/10_6_X_fix-lostTracks-lostInne…
cmsbuild Mar 29, 2021
3b74bf7
Set of improvements proposed during review
mbluj Mar 30, 2021
bd62dd5
Merge pull request #33153 from cms-tau-pog/CMSSW_10_6_X_tau-pog_tauID…
cmsbuild Mar 31, 2021
8ff0951
Make DbsUrl configurable via runTheMatrix argument and env variable
justinasr Mar 31, 2021
abc1f17
Merge pull request #33211 from justinasr/cmsweb-prod-10_6_X
cmsbuild Apr 1, 2021
3c98c13
UL2016 Scale and smearing corrections for the backport
jainshilpi Apr 7, 2021
8da22cb
removing run2_miniAOD_UL from the UL2016 modifier
jainshilpi Apr 7, 2021
cfbcadd
correctly implementing for UL2016
jainshilpi Apr 7, 2021
4ddfc2b
adding the cff for the new modifier
jainshilpi Apr 7, 2021
769dffb
Merge pull request #33359 from jainshilpi/UL2016_backport
cmsbuild Apr 9, 2021
c198568
backport to 10_6_X branch of muon pT > 15 GeV passthrough, regardless…
mdunser Nov 11, 2020
3990ede
backport safety for pT passthrough
mdunser Mar 31, 2021
34b338b
small bugfix, load the right modifiers at beginning of muon config
mdunser Mar 31, 2021
cb1c2ec
add isotrack passthrough regardless of the IP variables.
mdunser Mar 31, 2021
33cac81
bugfix adding modifiers for eras
mdunser Mar 31, 2021
34dbbe5
adding variables to muons & isotracks
sroychow Apr 7, 2021
ef64461
adding dqm plots of new variables
sroychow Apr 7, 2021
8814b81
customize function for increasing gen precision
sroychow Apr 7, 2021
db50109
add missing era modifier include
sroychow Apr 14, 2021
3f0509b
bugfix to remove duplicate imports
mdunser Apr 16, 2021
6e56f56
Fix secondary file reading when processIDs change
Dr15Jones Apr 19, 2021
f941a1d
Merge pull request #33469 from Dr15Jones/fixSecondaryFiles_10_6
cmsbuild Apr 20, 2021
11af3f0
update photon config
sroychow Apr 7, 2021
910225a
fixes in photon config
sroychow Apr 7, 2021
db0570f
updating electron config;
sroychow Apr 8, 2021
13cb915
add missing changes to photon config
sroychow Apr 8, 2021
bb4ec5f
fix indentation error
sroychow Apr 8, 2021
32cbc1e
add missing customization for 80Xlegacy
sroychow Apr 12, 2021
d2f8cc0
Update vtx smearing and beamspot for PP ref UL
mandrenguyen Apr 22, 2021
eabe843
moving a line further down to hopefully fix a bug
mdunser Apr 23, 2021
9837496
remove scale and syst unc for ul16 v8
sroychow Apr 23, 2021
a963d68
Change input collection for genVisTaus
mbluj Apr 26, 2021
b032eb1
Do apply "no change policy" only for run2_nanoAOD_106Xv1
mbluj Apr 26, 2021
b760b8a
Clone genTauJets collections for NanoAOD
mbluj Apr 26, 2021
7980381
Add boosted taus to NanoAOD (#150)
Apr 26, 2021
2cb79cb
clean up tau nanoAOD content
Apr 6, 2021
d28a422
fix era modification
Apr 23, 2021
a26149f
avoid parameter collisions in temporary PSets
Apr 26, 2021
df96fad
Merge pull request #33525 from cms-tau-pog/CMSSW_10_6_X_tau-pog_genPa…
cmsbuild Apr 28, 2021
15e312a
Merge pull request #32107 from mdunser/Nano_muPt15Pass_10_6_X
cmsbuild Apr 28, 2021
d738221
add missing updates to dqm
sroychow Apr 28, 2021
7f6786d
HtoZZ UL backport
jainshilpi Apr 28, 2021
7661c43
Add ParticleNet AK8 jet mass regression.
hqucms Mar 17, 2021
e5dfba7
Add ParticleNet mass regression to MiniAOD w/ run2_miniAOD_devel.
hqucms Apr 29, 2021
5cd2f9a
format and syntax fixes
Apr 30, 2021
6035382
Add ParticleNet mass regression to NanoAOD.
hqucms Apr 29, 2021
fd682ea
make input tau type to anti-ele ID configurable
Apr 30, 2021
5f94d05
Add forgotten vtx smearing cfi
mandrenguyen Apr 30, 2021
2a0555f
Split tauMC sequence and use genTauJet modules for nano coherently in…
mbluj Apr 30, 2021
9b2c5ce
Merge pull request #33590 from cms-tau-pog/CMSSW_10_6_X_tau-pog_genPa…
cmsbuild May 1, 2021
3bed88e
Merge pull request #33376 from sroychow/egammaScalebackport
cmsbuild May 1, 2021
e90ddc1
reuse objects from std taus and remove unnecessary import
May 3, 2021
52d8d91
restore MVA2017v2 for 94XMiniAODv1 and further clean up
May 3, 2021
3acf64b
clean up DQM
May 3, 2021
94cceac
restore tau DQM for previous eras
May 4, 2021
6714a54
fix syntax of removal of idDecayModeOldDMs in DQM
May 4, 2021
5b595f1
import missing era modifiers to DQM config
May 4, 2021
3b57fbf
follow up review
May 10, 2021
0df6a09
remve boostedTau DQM for previous eras
May 11, 2021
b4d88c0
revert changes of againstElectronDeadECAL readout
May 11, 2021
2c88c22
Work around an inaccurate error message in TTreeCache::FillBuffer()
makortel May 11, 2021
2c6e32c
Merge pull request #33588 from hqucms/particle_net_mass_regression_106X
cmsbuild May 12, 2021
e1d8a83
Fix NanoGen mass precision and pruning
mseidel42 May 5, 2021
f8c228a
Backport #32431
mseidel42 May 5, 2021
89b0d05
Increase mass precision for SUSY particles
mseidel42 May 10, 2021
7105386
Protect the v8 production in 106X
mseidel42 May 12, 2021
b12afbd
Merge pull request #33697 from makortel/silenceTTreeCacheFillBuffer
cmsbuild May 12, 2021
2d2c898
Merge pull request #33587 from cms-tau-pog/CMSSW_10_6_X_backport_CMSS…
cmsbuild May 12, 2021
493e5c1
update JERC tags for UL16
malbouis May 12, 2021
845fe58
Merge pull request #33620 from jainshilpi/HtoZZULID_106X
cmsbuild May 12, 2021
513f493
Merge pull request #33688 from mseidel42/NanoGen_106
cmsbuild May 12, 2021
78cd625
remove Fall17V1 variables from electron table
sroychow May 6, 2021
b958304
update dqm according to fall17v1 removal
sroychow May 6, 2021
e867d1d
remove fall17v1 variable from nanoDQM
sroychow May 12, 2021
2b679b0
add pre ul era modifiers correctly
sroychow May 12, 2021
0a9c541
preserve features for nano v8
sroychow May 13, 2021
6a80a76
Merge pull request #33724 from sroychow/egammafall17backport
cmsbuild May 14, 2021
f4300df
Merge pull request #33658 from cms-tau-pog/CMSSW_10_6_X_backport_CMSS…
cmsbuild May 15, 2021
f01a777
Merge pull request #33504 from mandrenguyen/fixEmittancePPRef106X
cmsbuild May 17, 2021
7624890
Add nConstituents to fat jets
laurenhay Mar 5, 2021
d7d836f
Back port
May 20, 2021
bfe76b1
Fixing modified sequence
May 21, 2021
7635697
Fixing replaces
May 21, 2021
b769e8e
Update nanoDQM_cff.py
laurenhay May 21, 2021
ad64f32
Merge pull request #32930 from laurenhay/nConstituentsFat-from10_6_X
cmsbuild May 23, 2021
aa23b4d
Remove certain jercVars variables from main nano and store only in JM…
nurfikri89 May 24, 2021
7e0cb7f
Remove some jercVars from nanoDQM
nurfikri89 May 25, 2021
aa43d85
Add back some jercVars variables for 106Xv1 using modifier
nurfikri89 May 25, 2021
d541f6e
Fixing module naming convention
May 25, 2021
4e16ec7
update GTs to include fixed JERC tags
malbouis May 25, 2021
9a1c192
Merge pull request #33710 from malbouis/alca-JERC_UL16_106X
cmsbuild May 27, 2021
321f2ae
Renaming squence
May 27, 2021
2b9e19f
Merge pull request #33835 from nurfikri89/portFrom120XTo106X_nano_jer…
cmsbuild May 27, 2021
effc7e1
Merge pull request #33347 from sscruz/from-CMSSW_11_2_0_pre10_electro…
cmsbuild May 30, 2021
f79e39b
add protection for missing handleExtResults
gouskos May 31, 2021
a4cae4a
code checks
gouskos May 31, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
963 changes: 963 additions & 0 deletions Alignment/APEEstimation/data/lumiperrun2017.txt

Large diffs are not rendered by default.

551 changes: 551 additions & 0 deletions Alignment/APEEstimation/data/lumiperrun2018.txt

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions Alignment/APEEstimation/plugins/ApeEstimator.cc
Expand Up @@ -49,7 +49,7 @@
#include "DataFormats/TrackerRecHit2D/interface/ProjectedSiStripRecHit2D.h"
#include "DataFormats/TrackerRecHit2D/interface/SiPixelRecHit.h"
#include "DataFormats/GeometryVector/interface/LocalPoint.h"
#include "DataFormats/GeometryCommonDetAlgo/interface/LocalError.h"
#include "DataFormats/GeometrySurface/interface/LocalError.h"
#include "DataFormats/GeometryCommonDetAlgo/interface/MeasurementPoint.h"
#include "DataFormats/GeometryCommonDetAlgo/interface/MeasurementError.h"
#include "DataFormats/SiPixelDetId/interface/PixelSubdetector.h"
Expand Down Expand Up @@ -108,7 +108,6 @@
//ADDED BY LOIC QUERTENMONT
#include "FWCore/Framework/interface/DependentRecordImplementation.h"
#include "CalibTracker/Records/interface/SiStripDependentRecords.h"
#include "CalibTracker/SiStripESProducers/plugins/real/SiStripLorentzAngleDepESProducer.h"
/////////
#include "DataFormats/GeometryVector/interface/LocalVector.h"
#include "DataFormats/GeometrySurface/interface/Bounds.h"
Expand Down
339 changes: 155 additions & 184 deletions Alignment/APEEstimation/test/autoSubmitter/autoSubmitter.py

Large diffs are not rendered by default.

Expand Up @@ -6,7 +6,7 @@

eval `scramv1 runtime -csh`

source /afs/cern.ch/cms/caf/setup.csh
#~ source /afs/cern.ch/cms/caf/setup.csh
cd $curDir

xrdcp {inputFile} reco.root
Expand All @@ -25,11 +25,27 @@
request_memory = 2000M
request_disk = 400M
batch_name = {jobName}
+JobFlavour = "longlunch"
+JobFlavour = "workday"
Queue Arguments from (
{arguments})
"""

# Use this one only if connected to lxplus-t0.cern.ch
#~ condorSubTemplate="""
#~ Executable = {jobFile}
#~ Universe = vanilla
#~ Output = {outputFile}
#~ Error = {errorFile}
#~ Log = {logFile}
#~ request_memory = 2000M
#~ request_disk = 400M
#~ batch_name = {jobName}
#~ +JobFlavour = "workday"
#~ +AccountingGroup = "group_u_CMS.CAF.ALCA"
#~ Queue Arguments from (
#~ {arguments})
#~ """

condorArgumentTemplate="""{fileNumber} {inputFile}
"""

Expand Down
8 changes: 7 additions & 1 deletion Alignment/APEEstimation/test/autoSubmitter/config.ini
Expand Up @@ -15,7 +15,7 @@ isMC=False
# in apeEstimation_cfg.py. If it is not defined or None, it will not overwrite
# anything defined in apeEstimation_cfg.py
globalTag=None
# name as defined in apeEstimation_cfg.py
# name as defined in apeEstimation_cfg.py, optional if alignment is loaded by condition
alignmentName=alignmentObjectName
# name of baseline folder. Only used if isDesign is False, elsewise the
# name of the APE measurement is used, Design by default
Expand All @@ -26,6 +26,10 @@ isDesign=False
# it will override the one defined by alignmentName
condition TrackerAlignmentRcd=sqlite_file:/afs/asdf.db Alignments
condition TrackerSurfaceDeformationRcd=sqlite_file:/afs/asdf.db Deformations
# another way to load these is:
condition Alignments+Deformations:sqlite_file:/afs/asdf.db
# in this case, the Rcd name has to be guessed by the autoSubmitter,
# so functionality is limited

# define measurements like this
[measurements]
Expand All @@ -50,6 +54,8 @@ exampleName: exampleDataset alignmentObject
wait label:exampleName
# load APE from these files (in labels ~ is replaced with whitespaces)
load label~with~empty~spaces:/path/to/allData_iterationApe.root
# optional attributes
load label~with~empty~spaces2:/path/to/allData_iterationApe.root color=ROOT.kRed+2 marker=0
# output path. If not defined, store in hists/Name
outPath=/asdf/
# title to the plot, optional
Expand Down
135 changes: 135 additions & 0 deletions Alignment/APEEstimation/test/autoSubmitter/helpers.py
@@ -0,0 +1,135 @@
from __future__ import print_function
import re
import os
import errno
shortcuts = {}

# regex matching on key, replacement of groups on value
# implement any other shortcuts that you want to use
#sources
shortcuts["mp([0-9]*)"] = "sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/MP/MPproduction/mp{0}/jobData/jobm/alignments_MP.db"
shortcuts["mp([0-9]*)_jobm([0-9]*)"] = "sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/MP/MPproduction/mp{0}/jobData/jobm{1}/alignments_MP.db"
shortcuts["sm([0-9]*)_iter([0-9]*)"] = "sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN2/HipPy/alignments/sm{0}/alignments_iter{1}.db"
shortcuts["um([0-9]*)"] = "sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/MP/MPproduction/um{0}/jobData/jobm/um{0}.db"
shortcuts["um([0-9]*)_jobm([0-9]*)"] = "sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/MP/MPproduction/um{0}/jobData/jobm{1}/um{0}.db"
shortcuts["hp([0-9]*)_iter([0-9]*)"] = "sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN2/HipPy/alignments/hp{0}/alignments_iter{1}.db"
shortcuts["prod"] = "frontier://FrontierProd/CMS_CONDITIONS"

# Exact numbers don't really matter, but it is important that each one has a unique
# number, so that states are distinguishable
STATE_NONE = -1
STATE_ITERATION_START=0
STATE_BJOBS_WAITING=1
STATE_BJOBS_DONE=2
STATE_BJOBS_FAILED=12
STATE_MERGE_WAITING=3
STATE_MERGE_DONE=4
STATE_MERGE_FAILED=14
STATE_SUMMARY_WAITING=5
STATE_SUMMARY_DONE=6
STATE_SUMMARY_FAILED=16
STATE_LOCAL_WAITING=7
STATE_LOCAL_DONE=8
STATE_LOCAL_FAILED=18
STATE_FINISHED=9

status_map = {}
status_map[STATE_NONE] = "none"
status_map[STATE_ITERATION_START] = "starting iteration"
status_map[STATE_BJOBS_WAITING] = "waiting for jobs"
status_map[STATE_BJOBS_DONE] = "jobs finished"
status_map[STATE_BJOBS_FAILED] = "jobs failed"
status_map[STATE_MERGE_WAITING] = "waiting for merging"
status_map[STATE_MERGE_DONE] = "merging done"
status_map[STATE_MERGE_FAILED] = "merging failed"
status_map[STATE_SUMMARY_WAITING] = "waiting for APE determination"
status_map[STATE_SUMMARY_DONE] = "APE determination done"
status_map[STATE_SUMMARY_FAILED] = "APE determination failed"
status_map[STATE_LOCAL_WAITING] = "waiting for APE saving"
status_map[STATE_LOCAL_DONE] = "APE saving done"
status_map[STATE_LOCAL_FAILED] = "APE saving failed"
status_map[STATE_FINISHED] = "finished"

records = {}
records["Alignments"] = "TrackerAlignmentRcd"
records["TrackerAlignment"] = "TrackerAlignmentRcd"
records["Deformations"] = "TrackerSurfaceDeformationRcd"
records["TrackerSurfaceDeformations"] = "TrackerSurfaceDeformationRcd"
records["SiPixelTemplateDBObject"] = "SiPixelTemplateDBObjectRcd"
records["BeamSpotObjects"] = "BeamSpotObjectsRcd"


def ensurePathExists(path):
try:
os.makedirs(path)
except OSError as exception:
if exception.errno != errno.EEXIST:
raise


def replaceAllRanges(string):
if "[" in string and "]" in string:
strings = []
posS = string.find("[")
posE = string.find("]")
nums = string[posS+1:posE].split(",")
expression = string[posS:posE+1]

nums = string[string.find("[")+1:string.find("]")]
for interval in nums.split(","):
interval = interval.strip()
if "-" in interval:
lowNum = int(interval.split("-")[0])
upNum = int(interval.split("-")[1])
for i in range(lowNum, upNum+1):
newstring = string[0:posS]+str(i)+string[posE+1:]
newstring = replaceAllRanges(newstring)
strings += newstring
else:
newstring = string[0:posS]+interval+string[posE+1:]
newstring = replaceAllRanges(newstring)
strings += newstring
return strings
else:
return [string,]


def replaceShortcuts(toScan):
global shortcuts
for key, value in shortcuts.items():
match = re.search(key, toScan)
if match and match.group(0) == toScan:
return value.format(*match.groups())
# no match
return toScan

def loadConditions(dictionary):
hasAlignmentCondition = False
conditions = []
for key, value in dictionary.items():
if key.startswith("condition"):
if len(value.split(" ")) > 1: # structure is "condition rcd:source tag"
record = key.split(" ")[1]
connect, tag = value.split(" ")
if record == "TrackerAlignmentRcd":
hasAlignmentCondition = True
conditions.append({"record":record, "connect":replaceShortcuts(connect), "tag":tag})
else:
# structure is "condition tag:source", so we have to guess rcd from the tag. might also be "condition tag1+tag2+...+tagN:source"
global records
connect = value.strip()
tags = key.split(" ")[1]
for tag in tags.split("+"):
foundTag = False
for possibleTag, possibleRcd in records.items():
if tag.startswith(possibleTag):
conditions.append({"record":possibleRcd, "connect":replaceShortcuts(connect), "tag":tag})
if possibleRcd == "TrackerAlignmentRcd":
hasAlignmentCondition = True
foundTag = True
break
if not foundTag:
print("Did not find a record corresponding to {} tag".format(tag))
exit()

return conditions, hasAlignmentCondition
4 changes: 3 additions & 1 deletion Alignment/APEEstimation/test/batch/startSkim.py
Expand Up @@ -121,7 +121,7 @@ def main(argv):
help="Name of sample as defined in skimProducer_cfg.py. Multiple inputs possible")
parser.add_argument("-c", "--consecutive", action="store_true", dest="consecutive", default=False,
help="Do consecutive instead of parallel skims")
parser.add_argument("-n", "--ncores", action="store", dest="ncores", default=-1, type="int",
parser.add_argument("-n", "--ncores", action="store", dest="ncores", default=-1, type=int,
help="Set maximum number of parallel skims to run")

args = parser.parse_args()
Expand All @@ -145,6 +145,8 @@ def main(argv):
doSkim(sample)
else:
try:
# In a later PR, this should be migrated to condor to avoid
# overloading lxplus and transfer load to lxbatch
pool = mp.Pool(args.ncores)
pool.map_async(doSkim, args.samples)
pool.close()
Expand Down
89 changes: 6 additions & 83 deletions Alignment/APEEstimation/test/cfgTemplate/apeEstimator_cfg.py
Expand Up @@ -169,93 +169,16 @@
if options.alignRcd=='fromConditions':
pass # Alignment is read from the conditions file in this case
elif options.alignRcd=='design':
CondDBAlignment = CondDB.clone(connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS'))
process.myTrackerAlignment = cms.ESSource("PoolDBESSource",
CondDBAlignment,
timetype = cms.string("runnumber"),
toGet = cms.VPSet(
cms.PSet(
record = cms.string('TrackerAlignmentRcd'),
tag = cms.string('TrackerAlignment_Upgrade2017_design_v3')
)
)
)
process.es_prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource","myTrackerAlignment")


elif options.alignRcd == 'misalTest':
CondDBAlignment = CondDB.clone(connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS'))
process.myTrackerAlignment = cms.ESSource("PoolDBESSource",
CondDBAlignment,
timetype = cms.string("runnumber"),
toGet = cms.VPSet(
cms.PSet(
record = cms.string('TrackerAlignmentRcd'),
tag = cms.string('TrackerAlignment_Phase1Realignment_CRUZET_2M'),
)
)
)
process.es_prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource","myTrackerAlignment")

elif options.alignRcd == 'mp2705':
CondDBAlignment = CondDB.clone(connect = cms.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/MP/MPproduction/mp2705/jobData/jobm/alignments_MP.db'))
process.myTrackerAlignment = cms.ESSource("PoolDBESSource",
CondDBAlignment,
timetype = cms.string("runnumber"),
toGet = cms.VPSet(
cms.PSet(
record = cms.string('TrackerAlignmentRcd'),
tag = cms.string('Alignments'),
)
)
)
process.es_prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource","myTrackerAlignment")

elif options.alignRcd == 'mp2853':
CondDBAlignment = CondDB.clone()
process.myTrackerAlignment = cms.ESSource("PoolDBESSource",
CondDBAlignment,
timetype = cms.string("runnumber"),
toGet = cms.VPSet(
cms.PSet(
connect = cms.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/MP/MPproduction/mp2853/jobData/jobm3/alignments_MP.db'),
record = cms.string('TrackerAlignmentRcd'),
tag = cms.string('Alignments'),
),
#~ cms.PSet(
#~ connect=cms.string('frontier://FrontierProd/CMS_CONDITIONS'),
#~ record=cms.string('SiPixelTemplateDBObjectRcd'),
#~ tag=cms.string('SiPixelTemplateDBObject_38T_TempForAlignmentReReco2018_v3'),
#~ )
)
)
process.es_prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource","myTrackerAlignment")

elif options.alignRcd == 'hp1370':
CondDBAlignment = CondDB.clone(connect = cms.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN2/HIP/xiaomeng/CMSSW_7_4_6_patch5/src/Alignment/HIPAlignmentAlgorithm/hp1370/alignments.db'))
process.myTrackerAlignment = cms.ESSource("PoolDBESSource",
CondDBAlignment,
timetype = cms.string("runnumber"),
toGet = cms.VPSet(
cms.PSet(
record = cms.string('TrackerAlignmentRcd'),
tag = cms.string('Alignments'),
)
)
)
process.es_prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource","myTrackerAlignment")



pass
elif options.alignRcd == 'globalTag':
pass
pass
elif options.alignRcd == 'useStartGlobalTagForAllConditions':
pass
pass
elif options.alignRcd == '':
pass
pass
else:
print('ERROR --- incorrect alignment: ', options.alignRcd)
exit(8888)
print('ERROR --- incorrect alignment: ', options.alignRcd)
exit(8888)

## APE
if options.iterNumber!=0:
Expand Down
8 changes: 4 additions & 4 deletions Alignment/APEEstimation/test/plottingTools/drawIterations.py
@@ -1,17 +1,17 @@
# Implementation to draw all iterations of an APE measurement
# to check convergence

from iterationsPlotter import *
from granularity import *
import os

try:
base = os.environ['CMSSW_BASE']+"/src/Alignment/APEEstimation"
except KeyError:
base = ""

plot = IterationsPlotter()
plot.setOutputPath(base+"/workingArea/")
plot.setInputFile(base+"/workingArea/iter14/allData_iterationApe.root")
plot.setTitle("")
plot.setOutputPath(base+"/hists/iterations/")
plot.setInputFile(base+"/src/Alignment/APEEstimation/hists/workingArea/iter14/allData_iterationApe.root")
plot.setTitle("Title")
plot.setGranularity(standardGranularity)
plot.draw()
15 changes: 6 additions & 9 deletions Alignment/APEEstimation/test/plottingTools/drawResults.py
@@ -1,21 +1,18 @@
# Implementation to draw all iterations of an APE measurement
# to check convergence

import ROOT
from resultPlotter import *
from systematics import *
from systematicErrors import *
from granularity import *

import os
try:
base = os.environ['CMSSW_BASE']+"/src/Alignment/APEEstimation"
except KeyError:
base = ""

plot = ResultPlotter()
plot.setOutputPath(base+"/workingArea/")
# internal name (used for example when adding systematic errors), path to file, label, color (optional)
plot.addInputFile("placeholder1", base+"/workingArea/iter14/allData_iterationApe.root", "measurement A")
plot.addInputFile("placeholder2", base+"/workingArea2/iter14/allData_iterationApe.root", "measurement B", ROOT.kRed)
plot.setTitle("")
plot.setOutputPath(base+"/hists/workingArea/")
# label(also used as name when adding systematic errors), inputFile, color (optional, automatic by default),
# marker (optional, 20 by default, 0 is line), hitNumbers (optional, file number of hits in each sector, allData.root)
plot.addInputFile("label", "base/hists/workingArea/iter14/allData_iterationApe.root", color = ROOT.kGray+2)
plot.setGranularity(standardGranularity)
plot.draw()