Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-12-10 23:21:36

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