Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-05-09 22:37:26

0001 AlCaRecoMatrix = {
0002                   "AlCaLumiPixelsCountsExpress" : "AlCaPCCRandom",
0003                   "AlCaLumiPixelsCountsPrompt"  : "AlCaPCCZeroBias+RawPCCProducer",
0004                   # These two (AlCaPhiSym, AlCaP0) cannot run on RAW, they are just meant to run on the dedicated AlcaRAW so they do not enter the allForPrompt list
0005                   "AlCaPhiSym"                  : "",
0006                   "AlCaP0"                      : "",
0007                   "AlCaHcalIsoTrk"              : "HcalCalIsoTrkFromAlCaRaw",
0008                   "AlCaPPSExpress"              : "PPSCalMaxTracks", # Express producer
0009                   "AlCaPPSPrompt"               : "PPSCalMaxTracks", # Prompt  producer
0010                   "Commissioning"               : "HcalCalIsoTrk+TkAlMinBias+SiStripCalMinBias+HcalCalIsolatedBunchSelector",
0011                   "Cosmics"                     : "SiPixelCalCosmics+SiStripCalCosmics+TkAlCosmics0T+MuAlGlobalCosmics",
0012                   "DoubleMuon"                  : "TkAlZMuMu+TkAlDiMuonAndVertex+MuAlCalIsolatedMu",
0013                   "DoubleMuonLowMass"           : "TkAlJpsiMuMu+TkAlUpsilonMuMu",
0014                   "EGamma"                      : "EcalESAlign+EcalUncalWElectron+EcalUncalZElectron+HcalCalIsoTrkProducerFilter+HcalCalIterativePhiSym",
0015                   "Express"                     : "SiStripCalZeroBias+TkAlMinBias+TkAlZMuMu+SiStripPCLHistos+SiStripCalMinBias+SiStripCalMinBiasAAG+Hotline+SiPixelCalZeroBias",
0016                   "ExpressAlignment"            : "TkAlMinBias",
0017                   "ExpressCosmics"              : "SiStripPCLHistos+SiStripCalZeroBias+TkAlCosmics0T+SiPixelCalZeroBias+SiPixelCalCosmics+SiStripCalCosmics",
0018                   "HcalNZS"                     : "HcalCalMinBias",
0019                   "HLTPhysics"                  : "TkAlMinBias+TkAlV0s",
0020                   "HLTMonitor"                  : "TkAlHLTTracks+TkAlHLTTracksZMuMu",
0021                   "JetHT"                       : "HcalCalIsoTrkProducerFilter+TkAlJetHT",
0022                   "JetMET"                      : "HcalCalIsoTrkProducerFilter+TkAlJetHT+HcalCalNoise",
0023                   "MinimumBias"                 : "SiStripCalZeroBias+SiStripCalMinBias+TkAlMinBias",
0024                   "MET"                         : "HcalCalNoise",
0025                   "Muon"                        : "TkAlZMuMu+TkAlDiMuonAndVertex+MuAlCalIsolatedMu+SiPixelCalSingleMuonLoose+SiPixelCalSingleMuonTight+TkAlMuonIsolated+HcalCalHO+HcalCalIterativePhiSym+HcalCalHBHEMuonProducerFilter",
0026                   "NoBPTX"                      : "TkAlCosmicsInCollisions",
0027                   "ParkingDoubleMuonLowMass"    : "TkAlJpsiMuMu+TkAlUpsilonMuMu",
0028                   "SingleMuon"                  : "SiPixelCalSingleMuonLoose+SiPixelCalSingleMuonTight+TkAlMuonIsolated+MuAlCalIsolatedMu+HcalCalHO+HcalCalIterativePhiSym+HcalCalHBHEMuonProducerFilter",
0029                   "SpecialHLTPhysics"           : "LumiPixelsMinBias",
0030                   "StreamExpress"               : "SiStripCalZeroBias+TkAlMinBias+TkAlZMuMu+SiStripPCLHistos+SiStripCalMinBias+SiStripCalMinBiasAAG+Hotline+SiPixelCalZeroBias+SiPixelCalSingleMuon",
0031                   "StreamExpressHI"             : "SiStripCalZeroBias+TkAlMinBiasHI+SiStripPCLHistos+SiStripCalMinBias+SiStripCalMinBiasAAG+SiPixelCalZeroBias",
0032                   # These (TestEnablesTracker, TestEnablesEcalHcal) are in the AlCaRecoMatrix, but no RelVals are produced
0033                   # 'TestEnablesTracker'        : 'TkAlLAS'
0034                   # 'TestEnablesEcalHcal'       : 'HcalCalPedestal'
0035                   "ZeroBias"                    : "HcalCalIsolatedBunchSelector+SiStripCalZeroBias+TkAlMinBias+SiStripCalMinBias",
0036                   }
0037 
0038 
0039 def buildList(pdList, matrix):
0040     """Takes a list of primary datasets (PDs) and the AlCaRecoMatrix (a dictinary) and returns a string with all the AlCaRecos for the selected PDs separated by the '+' character without duplicates."""
0041     alCaRecoList = []
0042     for pd in pdList:
0043         alCaRecoList.extend(matrix[pd].split("+"))
0044     # remove duplicates converting to a set
0045     alCaRecoList = set(alCaRecoList)
0046     stringList = ''
0047     for alCaReco in alCaRecoList:
0048         if stringList == '':
0049             stringList += alCaReco
0050         else:
0051             stringList += '+'+alCaReco
0052     return stringList
0053 
0054 # Update the lists anytime a new PD is added to the matrix
0055 autoAlca = { 'allForPrompt'         : buildList(['Commissioning', 'EGamma', 'HLTPhysics', 'HcalNZS', 'JetMET', 'Muon', 'NoBPTX', 'ParkingDoubleMuonLowMass', 'ZeroBias'], AlCaRecoMatrix),
0056              'allForExpress'        : buildList(['StreamExpress'], AlCaRecoMatrix),
0057              'allForExpressHI'      : buildList(['StreamExpressHI'], AlCaRecoMatrix),
0058              'allForPromptCosmics'  : buildList(['Cosmics'], AlCaRecoMatrix),
0059              'allForExpressCosmics' : buildList(['ExpressCosmics'], AlCaRecoMatrix) }
0060 autoAlca.update(AlCaRecoMatrix)
0061 
0062 # list of AlCa sequences that have modules that do not support concurrent LuminosityBlocks
0063 AlCaNoConcurrentLumis = [
0064     'PromptCalibProd',                 # AlcaBeamSpotProducer
0065     'PromptCalibProdSiPixelAli',       # AlignmentProducerAsAnalyzer, MillePedeFileConverter
0066     'PromptCalibProdSiPixelAliHG',     # AlignmentProducerAsAnalyzer, MillePedeFileConverter
0067     'PromptCalibProdSiPixelAliHGComb', # AlignmentProducerAsAnalyzer, MillePedeFileConverter
0068     'PromptCalibProdSiPixelAliHLTHGC', # AlignmentProducerAsAnalyzer, MillePedeFileConverter
0069     'PromptCalibProdBeamSpotHP',       # AlcaBeamSpotProducer
0070     'PromptCalibProdBeamSpotHPLowPU',  # AlcaBeamSpotProducer
0071 ]