Skip to content

Commit 2050b4f

Browse files
authored
Merge branch 'master' into ECON_SLink_Diff
2 parents c54dcf4 + 0dd653a commit 2050b4f

File tree

1,624 files changed

+214247
-86680
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,624 files changed

+214247
-86680
lines changed

Alignment/CommonAlignment/python/tools/trackselectionRefitting.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def getSequence(process, collection,
147147
if collection in ("ALCARECOTkAlMinBias", "generalTracks",
148148
"ALCARECOTkAlMinBiasHI", "hiGeneralTracks",
149149
"ALCARECOTkAlJetHT", "ALCARECOTkAlDiMuonVertexTracks",
150-
"hltMergedTracks"):
150+
"hltMergedTracks", "ALCARECOTkAlHLTTracks"):
151151
options["TrackSelector"]["Alignment"].update({
152152
"ptMin": 1.0,
153153
"pMin": 8.,
@@ -200,7 +200,8 @@ def getSequence(process, collection,
200200
elif collection in ("ALCARECOTkAlZMuMu",
201201
"ALCARECOTkAlZMuMuHI",
202202
"ALCARECOTkAlZMuMuPA",
203-
"ALCARECOTkAlDiMuon"):
203+
"ALCARECOTkAlDiMuon",
204+
"ALCARECOTkAlHLTTracksZMuMu"):
204205
options["TrackSelector"]["Alignment"].update({
205206
"ptMin": 15.0,
206207
"etaMin": -3.0,

Alignment/CommonAlignmentProducer/python/ALCARECOTkAlHLTTracksZMuMu_Output_cff.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,26 @@
1313
'keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlHLTTracksZMuMu_*_*',
1414
'keep L1AcceptBunchCrossings_*_*_*',
1515
'keep *_TriggerResults_*_*',
16+
'keep *_hltPixelVertices_*_*',
17+
'keep recoTracks_ALCARECOTkAlHLTPixelZMuMuVertexTracks_*_*',
18+
'keep recoTrackExtras_ALCARECOTkAlHLTPixelZMuMuVertexTracks_*_*',
19+
'keep TrackingRecHitsOwned_ALCARECOTkAlHLTPixelZMuMuVertexTracks_*_*',
20+
'keep SiPixelClusteredmNewDetSetVector_ALCARECOTkAlHLTPixelZMuMuVertexTracks_*_*',
1621
'keep *_hltVerticesPFFilter_*_*',
17-
'keep *_hltOnlineBeamSpot_*_*'
22+
'keep *_hltOnlineBeamSpot_*_*',
23+
'keep DCSRecord_onlineMetaDataDigis_*_*'
1824
)
1925
)
2026

27+
# in Phase2, remove the SiStrip clusters and keep the OT ones instead
28+
_phase2_common_removedCommands = OutALCARECOTkAlHLTTracksZMuMu_noDrop.outputCommands.copy()
29+
_phase2_common_removedCommands.remove('keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlHLTTracksZMuMu_*_*')
30+
31+
_phase2_common_extraCommands = ['keep Phase2TrackerCluster1DedmNewDetSetVector_ALCARECOTkAlHLTTracksZMuMu_*_*']
32+
33+
from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
34+
phase2_common.toModify(OutALCARECOTkAlHLTTracksZMuMu_noDrop, outputCommands = _phase2_common_removedCommands + _phase2_common_extraCommands )
35+
2136
OutALCARECOTkAlHLTTracksZMuMu = OutALCARECOTkAlHLTTracksZMuMu_noDrop.clone()
2237
OutALCARECOTkAlHLTTracksZMuMu.outputCommands.insert(0, "drop *")
2338

Alignment/CommonAlignmentProducer/python/ALCARECOTkAlHLTTracksZMuMu_cff.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,22 @@
5555
ALCARECOTkAlHLTTracksZMuMu.TwoBodyDecaySelector.applyAcoplanarityFilter = False
5656
ALCARECOTkAlHLTTracksZMuMu.TwoBodyDecaySelector.numberOfCandidates = 1
5757

58-
seqALCARECOTkAlHLTTracksZMuMu = cms.Sequence(ALCARECOTkAlHLTTracksZMuMuHLT+ALCARECOTkAlHLTTracksZMuMuDCSFilter+ALCARECOTkAlHLTTracksZMuMuGoodMuons+ALCARECOTkAlHLTTracksZMuMuRelCombIsoMuons+ALCARECOTkAlHLTTracksZMuMu)
58+
##################################################################
59+
# Tracks from the selected vertex
60+
#################################################################
61+
import Alignment.CommonAlignmentProducer.AlignmentTracksFromVertexSelector_cfi as _TracksFromPixelVertex
62+
ALCARECOTkAlHLTPixelZMuMuVertexTracks = _TracksFromPixelVertex.AlignmentTracksFromVertexSelector.clone(
63+
src = 'hltPixelTracks',
64+
vertices = 'hltPixelVertices',
65+
leptonTracks = 'ALCARECOTkAlHLTTracksZMuMu',
66+
useClosestVertexToDilepton = True,
67+
)
68+
69+
seqALCARECOTkAlHLTTracksZMuMu = cms.Sequence(ALCARECOTkAlHLTTracksZMuMuHLT+
70+
ALCARECOTkAlHLTTracksZMuMuDCSFilter+
71+
ALCARECOTkAlHLTTracksZMuMuGoodMuons+
72+
ALCARECOTkAlHLTTracksZMuMuRelCombIsoMuons+
73+
ALCARECOTkAlHLTTracksZMuMu+
74+
ALCARECOTkAlHLTPixelZMuMuVertexTracks)
5975

6076

Alignment/CommonAlignmentProducer/python/ALCARECOTkAlHLTTracks_Output_cff.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,21 @@
1313
'keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlHLTTracks_*_*',
1414
'keep L1AcceptBunchCrossings_*_*_*',
1515
'keep *_TriggerResults_*_*',
16+
'keep *_hltPixelVertices_*_*',
1617
'keep *_hltVerticesPFFilter_*_*',
17-
'keep *_hltOnlineBeamSpot_*_*')
18+
'keep *_hltOnlineBeamSpot_*_*',
19+
'keep DCSRecord_onlineMetaDataDigis_*_*'
20+
)
1821
)
1922

23+
# in Phase2, remove the SiStrip clusters and keep the OT ones instead
24+
_phase2_common_removedCommands = OutALCARECOTkAlHLTTracks_noDrop.outputCommands.copy()
25+
_phase2_common_removedCommands.remove('keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlHLTTracks_*_*')
26+
27+
_phase2_common_extraCommands = ['keep Phase2TrackerCluster1DedmNewDetSetVector_ALCARECOTkAlHLTTracks_*_*']
28+
29+
from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
30+
phase2_common.toModify(OutALCARECOTkAlHLTTracks_noDrop, outputCommands = _phase2_common_removedCommands + _phase2_common_extraCommands )
31+
2032
OutALCARECOTkAlHLTTracks = OutALCARECOTkAlHLTTracks_noDrop.clone()
2133
OutALCARECOTkAlHLTTracks.outputCommands.insert(0, "drop *")

Alignment/CommonAlignmentProducer/python/ALCARECOTkAlMinBias_cff.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
## customizations for the pp_on_AA eras
5050
from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
5151
from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
52+
from Configuration.Eras.Modifier_run3_oxygen_cff import run3_oxygen
5253
(pp_on_XeXe_2017 | pp_on_AA).toModify(ALCARECOTkAlMinBias,
5354
trackQualities = cms.vstring("highPurity")
5455
)
@@ -66,7 +67,7 @@
6667
)
6768

6869
seqALCARECOTkAlMinBiasHI = cms.Sequence(ALCARECOTkAlMinBiasTriggerResultsHI*~ALCARECOTkAlMinBiasNOTHLT+ALCARECOTkAlMinBiasDCSFilter+ALCARECOTkAlMinBias)
69-
pp_on_AA.toReplaceWith(seqALCARECOTkAlMinBias,seqALCARECOTkAlMinBiasHI)
70+
(pp_on_AA | run3_oxygen).toReplaceWith(seqALCARECOTkAlMinBias,seqALCARECOTkAlMinBiasHI)
7071

7172
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
7273
phase2_tracker.toModify(ALCARECOTkAlMinBias, etaMin = -4, etaMax = 4)

Alignment/CommonAlignmentProducer/src/AlignmentTracksFromVertexSelector.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,14 @@ AlignmentTrackFromVertexSelector::Tracks AlignmentTrackFromVertexSelector::selec
7878
// get collection of reconstructed vertices from event
7979
edm::Handle<reco::VertexCollection> vertexHandle = evt.getHandle(vertexToken_);
8080

81-
// get collection of the di-lepton traxks
82-
const auto& leptonTracks = evt.get(diLeptonToken_);
83-
8481
// fill the vector of keys
8582
if (vertexHandle.isValid()) {
8683
const reco::VertexCollection* vertices = vertexHandle.product();
8784
const reco::Vertex* theVtx = nullptr;
8885

8986
if (useClosestVertex_) {
87+
// get collection of the di-lepton traxks
88+
const auto& leptonTracks = evt.get(diLeptonToken_);
9089
theVtx = findClosestVertex(leptonTracks, vertices, setup);
9190
} else {
9291
if ((*vertices).at(vertexIndex_).isValid()) {

Alignment/MuonAlignmentAlgorithms/interface/MuonResidualsFromTrack.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,18 @@ class MuonResidualsFromTrack {
9595
TMatrixD choleskyCorrMatrix(DetId chamberId);
9696

9797
private:
98+
//Due to large constructor code, UBSAN with GCC14 hangs and never returns
99+
//Moving large constructor code to a private function fixes this issue
100+
void init(edm::ESHandle<TransientTrackingRecHitBuilder> builder,
101+
edm::ESHandle<MagneticField> magneticField,
102+
edm::ESHandle<GlobalTrackingGeometry> globalGeometry,
103+
edm::ESHandle<DetIdAssociator> muonDetIdAssociator_,
104+
edm::ESHandle<Propagator> prop,
105+
const Trajectory *traj,
106+
const reco::Track *recoTrack,
107+
AlignableNavigator *navigator,
108+
double maxResidual);
109+
98110
TrajectoryStateCombiner m_tsoscomb;
99111

100112
int m_tracker_numHits;

Alignment/MuonAlignmentAlgorithms/src/MuonResidualsFromTrack.cc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,26 @@ MuonResidualsFromTrack::MuonResidualsFromTrack(edm::ESHandle<TransientTrackingRe
3131
AlignableNavigator* navigator,
3232
double maxResidual)
3333
: m_recoTrack(recoTrack) {
34+
init(trackerRecHitBuilder,
35+
magneticField,
36+
globalGeometry,
37+
muonDetIdAssociator_,
38+
prop,
39+
traj,
40+
recoTrack,
41+
navigator,
42+
maxResidual);
43+
}
44+
45+
void MuonResidualsFromTrack::init(edm::ESHandle<TransientTrackingRecHitBuilder> trackerRecHitBuilder,
46+
edm::ESHandle<MagneticField> magneticField,
47+
edm::ESHandle<GlobalTrackingGeometry> globalGeometry,
48+
edm::ESHandle<DetIdAssociator> muonDetIdAssociator_,
49+
edm::ESHandle<Propagator> prop,
50+
const Trajectory* traj,
51+
const reco::Track* recoTrack,
52+
AlignableNavigator* navigator,
53+
double maxResidual) {
3454
bool m_debug = false;
3555

3656
if (m_debug) {

Alignment/OfflineValidation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ For details read [`README_JetHT.md`](https://github.com/cms-sw/cmssw/blob/master
118118
For details read [`README_MTS.md`](https://github.com/cms-sw/cmssw/blob/master/Alignment/OfflineValidation/README_MTS.md)
119119

120120
## Pixel BaryCenter
121-
For details read [`README_MTS.md`](https://github.com/cms-sw/cmssw/blob/master/Alignment/OfflineValidation/README_PixBary.md)
121+
For details read [`README_PixBary.md`](https://github.com/cms-sw/cmssw/blob/master/Alignment/OfflineValidation/README_PixBary.md)
122122

123123
## Generic validation (dataset validation)
124124
For details read [`README_Generic.md`](https://github.com/cms-sw/cmssw/blob/master/Alignment/OfflineValidation/README_Generic.md)

Alignment/OfflineValidation/README_PixBary.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ The following parameters are expected/accepted in the json/yaml configuration fi
77
```
88
validations:
99
PixBary:
10-
single:
10+
<step_type>:
1111
<job_name>:
1212
<options>
1313
```
1414

15+
The following steps are supported:
16+
- single (run the analyzer to compute the barycentre)
17+
- extract (retrieve the barycentre from the `single` output)
18+
19+
### Single PixBary jobs
20+
Runs PixelBaryCentreAnalyzer_cfg.py.
1521
The following options are understood:
1622

1723
Variable | Default value | Explanation/Options
@@ -20,3 +26,11 @@ firstRun | 290550 | The first run to process (inclusive)
2026
lastRun | 325175 | The last run to process (inclusive)
2127
lumisPerRun | 1 | The number of LumiSections tested for a change in the TrackerAlignmentRcd in each run
2228
alignments | None | List of alignments for which this validation is run
29+
30+
### Extract PixBary jobs
31+
Runs extractBarycentre.py.
32+
The following options are understood:
33+
34+
Variable | Default value | Explanation/Options
35+
-------- | ------------- | --------------------
36+
styles | [csv, twiki] | List of styles to be used; see `extractBarycentre.py -h`

0 commit comments

Comments
 (0)