Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #!/usr/bin/env python3
0002 """
0003 _AlCaHcalIsoTrk_Run3_
0004 
0005 Scenario supporting proton collisions for AlCa needs for AlCaHcalIsoTrk data stream
0006 
0007 """
0008 
0009 from Configuration.DataProcessing.Scenario import *
0010 from Configuration.DataProcessing.Utils import stepALCAPRODUCER,dictIO,gtNameAndConnect
0011 from Configuration.Eras.Era_Run3_cff import Run3
0012 from Configuration.DataProcessing.Impl.pp import pp
0013 import FWCore.ParameterSet.Config as cms
0014 
0015 class AlCaHcalIsoTrk_Run3(pp):
0016     def __init__(self):
0017         Scenario.__init__(self)
0018         self.eras=Run3
0019         self.skims=["HcalCalIsoTrkFromAlCaRaw"]
0020 
0021     """
0022     _AlCaHcalIsoTrk_Run3_
0023 
0024     Implement configuration building for data processing for proton
0025     collision data taking AlCaHcalIsoTrk AlCaRaw
0026 
0027     """
0028 
0029     def promptReco(self, globalTag, **args):
0030         """
0031         _promptReco_
0032 
0033         Proton collision data taking prompt reco
0034 
0035         """
0036         options = Options()
0037         options.__dict__.update(defaultOptions.__dict__)
0038         options.scenario = "pp"
0039 
0040         if ('nThreads' in args):
0041             options.nThreads=args['nThreads']
0042 
0043         options.step = stepALCAPRODUCER(args['skims'])
0044 
0045         dictIO(options,args)
0046         options.conditions = gtNameAndConnect(globalTag, args)
0047         
0048         process = cms.Process('RECO', cms.ModifierChain(self.eras))
0049         cb = ConfigBuilder(options, process = process, with_output = True)
0050 
0051         # Input source
0052         process.source = cms.Source("PoolSource",
0053             fileNames = cms.untracked.vstring()
0054         )
0055         cb.prepare()
0056 
0057         return process