Skip to content

Commit fcb435c

Browse files
author
Lovisa
committed
Merge branch 'master' of https://github.com/cms-sw/cmssw into KalmanVertexFit_configurableTrackerBounds
2 parents f76898b + 862b9fd commit fcb435c

File tree

299 files changed

+29583
-26989
lines changed

Some content is hidden

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

299 files changed

+29583
-26989
lines changed

Alignment/CommonAlignmentProducer/python/LSNumberFilter_cfi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
veto_HLT_Menu = [
77
"LumiScan",
88
"PPS",
9-
"ECALTiming"]
9+
"ECALTiming",
10+
"ECAL"]
1011
)

CommonTools/RecoUtils/plugins/LeptonFSRProducer.cc

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,21 @@
1010
*/
1111

1212
#include <memory>
13-
#include "FWCore/Framework/interface/Frameworkfwd.h"
14-
#include "FWCore/Framework/interface/global/EDProducer.h"
1513

14+
#include "DataFormats/Candidate/interface/Candidate.h"
15+
#include "DataFormats/Common/interface/ValueMap.h"
16+
#include "DataFormats/Math/interface/LorentzVector.h"
17+
#include "DataFormats/PatCandidates/interface/Electron.h"
18+
#include "DataFormats/PatCandidates/interface/GenericParticle.h"
19+
#include "DataFormats/PatCandidates/interface/Muon.h"
20+
#include "DataFormats/PatCandidates/interface/PackedCandidate.h"
1621
#include "FWCore/Framework/interface/Event.h"
22+
#include "FWCore/Framework/interface/Frameworkfwd.h"
1723
#include "FWCore/Framework/interface/MakerMacros.h"
18-
24+
#include "FWCore/Framework/interface/global/EDProducer.h"
1925
#include "FWCore/ParameterSet/interface/ParameterSet.h"
2026
#include "FWCore/Utilities/interface/StreamID.h"
2127

22-
#include "DataFormats/Candidate/interface/Candidate.h"
23-
#include "DataFormats/PatCandidates/interface/PackedCandidate.h"
24-
#include "DataFormats/PatCandidates/interface/GenericParticle.h"
25-
#include "DataFormats/Math/interface/LorentzVector.h"
26-
27-
#include "DataFormats/PatCandidates/interface/Muon.h"
28-
#include "DataFormats/PatCandidates/interface/Electron.h"
29-
#include "DataFormats/Common/interface/ValueMap.h"
30-
3128
class LeptonFSRProducer : public edm::global::EDProducer<> {
3229
public:
3330
explicit LeptonFSRProducer(const edm::ParameterSet& iConfig)
@@ -217,7 +214,7 @@ void LeptonFSRProducer::produce(edm::StreamID streamID, edm::Event& iEvent, cons
217214
}
218215
} // end of loop over pfCands
219216

220-
edm::OrphanHandle<std::vector<pat::GenericParticle>> oh = iEvent.put(std::move(fsrPhotons));
217+
iEvent.put(std::move(fsrPhotons));
221218

222219
{
223220
std::unique_ptr<edm::ValueMap<int>> bareIdx(new edm::ValueMap<int>());

CommonTools/UtilAlgos/interface/AssociationVectorSelector.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,10 @@ void AssociationVectorSelector<KeyRefProd, CVal, KeySelector, ValSelector>::prod
6868
KeyRefProd ref = evt.getRefBeforePut<collection_t>();
6969
unique_ptr<association_t> selectedAssociation(new association_t(ref, selected.get()));
7070
size = selected->size();
71-
OrphanHandle<collection_t> oh = evt.put(std::move(selected));
72-
for (size_t i = 0; i != size; ++i)
71+
evt.put(std::move(selected));
72+
for (size_t i = 0; i != size; ++i) {
7373
selectedAssociation->setValue(i, selectedValues[i]);
74+
}
7475
evt.put(std::move(selectedAssociation));
7576
}
7677

CondFormats/HGCalObjects/interface/HGCalCalibParamSoA.h

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,29 @@
1111
//#include "CondFormats/HGCalObjects/interface/HGCalMappingModuleIndexer.h"
1212

1313
namespace hgcalrechit {
14+
using Vector32f = Eigen::Matrix<float, 32, 1>;
15+
using Vector8f = Eigen::Matrix<float, 8, 1>;
16+
using Vector3f = Eigen::Matrix<float, 3, 1>;
17+
constexpr float TOAtops = 24.41f;
1418

1519
// Generate structure of channel-level arrays (SoA) layout with RecHit dataformat
1620
GENERATE_SOA_LAYOUT(HGCalCalibParamSoALayout,
17-
SOA_COLUMN(float, ADC_ped), // ADC pedestals, O(91)
18-
SOA_COLUMN(float, Noise), // noise, O(3)
19-
SOA_COLUMN(float, CM_slope), // common mode slope, O(0.25)
20-
SOA_COLUMN(float, CM_ped), // common mode pedestal (offset), O(92)
21-
SOA_COLUMN(float, BXm1_slope), // leakage correction from previous bunch, O(0.0)
22-
SOA_COLUMN(float, TOTtoADC), // TOT linearization in ADC units, O(15)
23-
SOA_COLUMN(float, TOT_ped), // TOT pedestal (offset), O(9.0)
24-
SOA_COLUMN(float, TOT_lin), // threshold at which TOT is linear, O(200)
25-
SOA_COLUMN(float, TOT_P0), // coefficient pol2 in nonlinear region, O(145)
26-
SOA_COLUMN(float, TOT_P1), // coefficient pol2 in nonlinear region, O(1.0)
27-
SOA_COLUMN(float, TOT_P2), // coefficient pol2 in nonlinear region, O(0.004)
28-
SOA_COLUMN(float, TOAtops), // TOA conversion to time (ps)
29-
SOA_COLUMN(float, MIPS_scale), // MIPS scale
30-
SOA_COLUMN(unsigned char, valid) // only 1 bit used: if false = mask dead channel
21+
SOA_COLUMN(float, ADC_ped), // ADC pedestals, O(91)
22+
SOA_COLUMN(float, Noise), // noise, O(3)
23+
SOA_COLUMN(float, CM_slope), // common mode slope, O(0.25)
24+
SOA_COLUMN(float, CM_ped), // common mode pedestal (offset), O(92)
25+
SOA_COLUMN(float, BXm1_slope), // leakage correction from previous bunch, O(0.0)
26+
SOA_COLUMN(float, TOTtoADC), // TOT linearization in ADC units, O(15)
27+
SOA_COLUMN(float, TOT_ped), // TOT pedestal (offset), O(9.0)
28+
SOA_COLUMN(float, TOT_lin), // threshold at which TOT is linear, O(200)
29+
SOA_COLUMN(float, TOT_P0), // coefficient pol2 in nonlinear region, O(145)
30+
SOA_COLUMN(float, TOT_P1), // coefficient pol2 in nonlinear region, O(1.0)
31+
SOA_COLUMN(float, TOT_P2), // coefficient pol2 in nonlinear region, O(0.004)
32+
SOA_EIGEN_COLUMN(Vector32f, TOA_CTDC), // TOA coarse TDC correction
33+
SOA_EIGEN_COLUMN(Vector8f, TOA_FTDC), // TOA fine TDC correction
34+
SOA_EIGEN_COLUMN(Vector3f, TOA_TW), // TOA timewalk correction
35+
SOA_COLUMN(float, MIPS_scale), // MIPS scale
36+
SOA_COLUMN(unsigned char, valid) // only 1 bit used: if false = mask dead channel
3137
)
3238
using HGCalCalibParamSoA = HGCalCalibParamSoALayout<>;
3339

CondFormats/Serialization/interface/eos/portable_iarchive.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ namespace eos {
409409
// created through BOOST_STRONG_TYPEDEF(X, some unsigned int) like
410410
// library_version_type, collection_size_type, item_version_type,
411411
// class_id_type, object_id_type, version_type and tracking_type
412-
load((typename boost::uint_t<sizeof(T) * CHAR_BIT>::least&)(t));
412+
load(static_cast<T::base_type&>(t));
413413
}
414414
};
415415

Configuration/AlCa/python/autoCond.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
# GlobalTag for MC production (cosmics) with perfectly aligned and calibrated detector for Phase1 2023, Strip tracker in DECO mode
8989
'phase1_2023_cosmics_design' : '140X_mcRun3_2023cosmics_design_deco_v1',
9090
# GlobalTag for MC production with realistic conditions for Phase1 2023 detector for Heavy Ion
91-
'phase1_2023_realistic_hi' : '141X_mcRun3_2023_realistic_HI_v5',
91+
'phase1_2023_realistic_hi' : '141X_mcRun3_2023_realistic_HI_v11',
9292
# GlobalTag for MC production with perfectly aligned and calibrated detector for Phase1 2024
9393
'phase1_2024_design' : '140X_mcRun3_2024_design_v11',
9494
# GlobalTag for MC production with realistic conditions for Phase1 2024
@@ -98,7 +98,7 @@
9898
# GlobalTag for MC production (cosmics) with perfectly aligned and calibrated detector for Phase1 2024, Strip tracker in DECO mode
9999
'phase1_2024_cosmics_design' : '140X_mcRun3_2024cosmics_design_deco_v11',
100100
# GlobalTag for MC production with realistic conditions for Phase1 2024 detector for Heavy Ion
101-
'phase1_2024_realistic_hi' : '141X_mcRun3_2024_realistic_HI_v13',
101+
'phase1_2024_realistic_hi' : '141X_mcRun3_2024_realistic_HI_v14',
102102
# GlobalTag for MC production with realistic conditions for Phase1 2024 detector for ppRef5TeV
103103
'phase1_2024_realistic_ppRef5TeV' : '141X_mcRun3_2024_realistic_ppRef5TeV_v7',
104104
# GlobalTag for MC production with perfectly aligned and calibrated detector for Phase1 2025

Configuration/Applications/python/ConfigBuilder.py

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def filesFromList(fileName,s=None):
139139
print("found parent files:",sec)
140140
return (prim,sec)
141141

142-
def filesFromDASQuery(query,option="",s=None):
142+
def filesFromDASQuery(query,option="",s=None,max_files=None):
143143
import os,time
144144
import FWCore.ParameterSet.Config as cms
145145
prim=[]
@@ -172,6 +172,10 @@ def filesFromDASQuery(query,option="",s=None):
172172
# remove any duplicates
173173
prim = sorted(list(set(prim)))
174174
sec = sorted(list(set(sec)))
175+
if max_files:
176+
max_files=int(max_files)
177+
prim = prim[:max_files]
178+
sec = sec[:max_files]
175179
if s:
176180
if not hasattr(s,"fileNames"):
177181
s.fileNames=cms.untracked.vstring(prim)
@@ -412,12 +416,19 @@ def addSource(self):
412416
self.addedObjects.append(("Input source","source"))
413417

414418
def filesFromOption(self):
419+
def _datasetname_and_maxfiles(entry):
420+
if ":" in entry:
421+
return entry.split(":")
422+
else:
423+
return entry,None
424+
415425
for entry in self._options.filein.split(','):
416426
print("entry",entry)
417427
if entry.startswith("filelist:"):
418-
filesFromList(entry[9:],self.process.source)
428+
filesFromList(entry.split(":",1)[1],self.process.source)
419429
elif entry.startswith("dbs:") or entry.startswith("das:"):
420-
filesFromDASQuery('file dataset = %s'%(entry[4:]),self._options.dasoption,self.process.source)
430+
dataset_name,max_files = _datasetname_and_maxfiles(entry.split(":",1)[1])
431+
filesFromDASQuery('file dataset = %s'%(dataset_name),self._options.dasoption,self.process.source,max_files)
421432
else:
422433
self.process.source.fileNames.append(self._options.dirin+entry)
423434
if self._options.secondfilein:
@@ -426,9 +437,10 @@ def filesFromOption(self):
426437
for entry in self._options.secondfilein.split(','):
427438
print("entry",entry)
428439
if entry.startswith("filelist:"):
429-
self.process.source.secondaryFileNames.extend((filesFromList(entry[9:]))[0])
440+
self.process.source.secondaryFileNames.extend((filesFromList(entry.split(":",1)[1]))[0])
430441
elif entry.startswith("dbs:") or entry.startswith("das:"):
431-
self.process.source.secondaryFileNames.extend((filesFromDASQuery('file dataset = %s'%(entry[4:]),self._options.dasoption))[0])
442+
dataset_name,max_files = _datasetname_and_maxfiles(entry.split(":",1)[1])
443+
self.process.source.secondaryFileNames.extend((filesFromDASQuery('file dataset = %s'%(dataset_name),self._options.dasoption))[0])
432444
else:
433445
self.process.source.secondaryFileNames.append(self._options.dirin+entry)
434446

@@ -680,12 +692,15 @@ def doNotInlineEventContent(instance,label = "cms.untracked.vstring(process."+th
680692
if streamType=='': continue
681693
if streamType == 'ALCARECO' and not 'ALCAPRODUCER' in self._options.step: continue
682694
if streamType=='DQMIO': streamType='DQM'
695+
streamQualifier=''
696+
if streamType[-1].isdigit():
697+
## a special case where --eventcontent MINIAODSIM1 is set to have more than one output in a chain of configuration
698+
streamQualifier = str(streamType[-1])
699+
streamType = streamType[:-1]
683700
eventContent=streamType
684701
## override streamType to eventContent in case NANOEDM
685-
if streamType == "NANOEDMAOD" :
686-
eventContent = "NANOAOD"
687-
elif streamType == "NANOEDMAODSIM" :
688-
eventContent = "NANOAODSIM"
702+
if streamType.startswith("NANOEDMAOD"):
703+
eventContent = eventContent.replace("NANOEDM","NANO")
689704
theEventContent = getattr(self.process, eventContent+"EventContent")
690705
if i==0:
691706
theFileName=self._options.outfile_name
@@ -714,10 +729,11 @@ def doNotInlineEventContent(instance,label = "cms.untracked.vstring(process."+th
714729
output.dataset.filterName = cms.untracked.string('StreamALCACombined')
715730

716731
if "MINIAOD" in streamType:
732+
## we should definitely get rid of this customization by now
717733
from PhysicsTools.PatAlgos.slimming.miniAOD_tools import miniAOD_customizeOutput
718734
miniAOD_customizeOutput(output)
719735

720-
outputModuleName=streamType+'output'
736+
outputModuleName=streamType+streamQualifier+'output'
721737
setattr(self.process,outputModuleName,output)
722738
outputModule=getattr(self.process,outputModuleName)
723739
setattr(self.process,outputModuleName+'_step',cms.EndPath(outputModule))

Configuration/EventContent/python/EventContent_cff.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,10 @@ def SwapKeepAndDrop(l):
690690
'keep *_hltGeneralTracks_*_*',
691691
'keep *_hltInitialStepTrackSelectionHighPurity_*_*',
692692
'keep *_hltHighPtTripletStepTrackSelectionHighPurity_*_*',
693+
'keep *_hltInitialStepTrackSelectionHighPuritypTTCLST_*_*',
694+
'keep *_hltInitialStepTrackSelectionHighPuritypLSTCLST_*_*',
695+
'keep *_hltInitialStepTracksT5TCLST_*_*',
696+
'keep *_hltHighPtTripletStepTrackSelectionHighPuritypLSTCLST_*_*',
693697
'keep *_hltOfflinePrimaryVertices_*_*',
694698
'keep *_hltHGCalRecHit_*_*'
695699
])

Configuration/HLT/python/autoCondHLT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
'run3_mc_FULL' : ('phase1_2024_realistic' ,l1Menus['FULL']),
3939
'run3_mc_GRun' : ('phase1_2024_realistic' ,l1Menus['GRun']),
4040
'run3_mc_2024v14' : ('phase1_2024_realistic' ,l1Menus['2024v14']),
41-
'run3_mc_HIon' : ('phase1_2023_realistic_hi',l1Menus['HIon']),
41+
'run3_mc_HIon' : ('phase1_2024_realistic_hi',l1Menus['HIon']),
4242
'run3_mc_PIon' : ('phase1_2024_realistic' ,l1Menus['PIon']),
4343
'run3_mc_PRef' : ('phase1_2024_realistic' ,l1Menus['PRef']),
4444
'run3_mc_Special' : ('phase1_2024_realistic' ,l1Menus['Special']),

Configuration/PyReleaseValidation/python/relval_steps.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4759,6 +4759,14 @@ def gen2024HiMix(fragment,howMuch):
47594759
'--geometry' : geom
47604760
}
47614761

4762+
upgradeStepDict['RecoGlobalFakeHLT'][k] = {'-s':'RAW2DIGI,RECO,RECOSIM,PAT,VALIDATION:@phase2ValidationFakeHLT+@miniAODValidation,DQM:@phase2FakeHLT+@miniAODDQM',
4763+
'--conditions':gt,
4764+
'--datatier':'GEN-SIM-RECO,MINIAODSIM,DQMIO',
4765+
'-n':'10',
4766+
'--eventcontent':'FEVTDEBUGHLT,MINIAODSIM,DQM',
4767+
'--geometry' : geom
4768+
}
4769+
47624770
upgradeStepDict['RecoLocal'][k] = {'-s':'RAW2DIGI,L1Reco,RECO:localreco',
47634771
'--conditions':gt,
47644772
'--datatier':'GEN-SIM-RECO',
@@ -4809,6 +4817,8 @@ def gen2024HiMix(fragment,howMuch):
48094817

48104818
upgradeStepDict['HARVESTGlobal'][k] = merge([{'-s': 'HARVESTING:@phase2Validation+@phase2+@miniAODValidation+@miniAODDQM'}, upgradeStepDict['HARVEST'][k]])
48114819

4820+
upgradeStepDict['HARVESTGlobalFakeHLT'][k] = merge([{'-s': 'HARVESTING:@phase2ValidationFakeHLT+@phase2FakeHLT+@miniAODValidation+@miniAODDQM'}, upgradeStepDict['HARVEST'][k]])
4821+
48124822
upgradeStepDict['ALCA'][k] = {'-s':'ALCA:SiPixelCalSingleMuonLoose+SiPixelCalSingleMuonTight+TkAlMuonIsolated+TkAlMinBias+MuAlOverlaps+EcalESAlign+TkAlZMuMu+TkAlDiMuonAndVertex+HcalCalHBHEMuonProducerFilter+TkAlUpsilonMuMu+TkAlJpsiMuMu+SiStripCalMinBias',
48134823
'--conditions':gt,
48144824
'--datatier':'ALCARECO',

0 commit comments

Comments
 (0)