Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
#!/usr/bin/env python3
"""
_AlCaHcalIsoTrk_Run3_

Scenario supporting proton collisions for AlCa needs for AlCaHcalIsoTrk data stream

"""

from Configuration.DataProcessing.Scenario import *
from Configuration.DataProcessing.Utils import stepALCAPRODUCER,dictIO,gtNameAndConnect
from Configuration.Eras.Era_Run3_cff import Run3
from Configuration.DataProcessing.Impl.AlCa import AlCa
import FWCore.ParameterSet.Config as cms

class AlCaHcalIsoTrk_Run3(AlCa):
    def __init__(self):
        Scenario.__init__(self)
        self.eras=Run3
        self.skims=["HcalCalIsoTrkFromAlCaRaw"]

    """
    _AlCaHcalIsoTrk_Run3_

    Implement configuration building for data processing for proton
    collision data taking AlCaHcalIsoTrk AlCaRaw

    """

    def promptReco(self, globalTag, **args):
        """
        _promptReco_

        Proton collision data taking prompt reco

        """
        options = Options()
        options.__dict__.update(defaultOptions.__dict__)
        options.scenario = "pp"

        if ('nThreads' in args):
            options.nThreads=args['nThreads']

        options.step = stepALCAPRODUCER(args['skims'])

        dictIO(options,args)
        options.conditions = gtNameAndConnect(globalTag, args)
        
        process = cms.Process('RECO', cms.ModifierChain(self.eras))
        cb = ConfigBuilder(options, process = process, with_output = True)

        # Input source
        process.source = cms.Source("PoolSource",
            fileNames = cms.untracked.vstring()
        )
        cb.prepare()

        return process