Exemple #1
0
    #----------------------------------------
    # generate generator level selection modules
    #
    # note that this is common between full and
    # fast simulation
    #----------------------------------------
    egammaSelectors = []

    for hltPathCategory, thisCategoryData in configData.iteritems():
        # all paths in the current category share the same
        # generator level requirement
        #
        # add a sequence for this generator level requirement

        generatorRequirementSequence = EgammaHLTValidationUtils.makeGeneratedParticleAndFiducialVolumeFilter(None,
                                                                                                             thisCategoryData['genPid'],
                                                                                                             thisCategoryData['numGenerated'])

        # dirty hack: get all modules of this sequence and add them
        # to globals() (which is not the same as calling globals() in makeGeneratedParticleAndFiducialVolumeFilter)
        # so that they will be added to the process
        for module in EgammaHLTValidationUtils.getModulesOfSequence(generatorRequirementSequence):
            globals()[module.label_()] = module

        # avoid that this variable is added to the process object when importing this _cff
        # (otherwise the last filter will appear with module name 'module' instead
        # of the name given by us...)
        del module

        egammaSelectors.append(generatorRequirementSequence)
        
    #----------------------------------------
    # generate generator level selection modules
    #
    # note that this is common between full and
    # fast simulation
    #----------------------------------------
    egammaSelectors = []

    for hltPathCategory, thisCategoryData in configData.iteritems():
        # all paths in the current category share the same
        # generator level requirement
        #
        # add a sequence for this generator level requirement

        generatorRequirementSequence = EgammaHLTValidationUtils.makeGeneratedParticleAndFiducialVolumeFilter(None,
                                                                                                             thisCategoryData['genPid'],
                                                                                                             thisCategoryData['numGenerated'])

        # dirty hack: get all modules of this sequence and add them
        # to globals() (which is not the same as calling globals() in makeGeneratedParticleAndFiducialVolumeFilter)
        # so that they will be added to the process
        for module in EgammaHLTValidationUtils.getModulesOfSequence(generatorRequirementSequence):
            globals()[module.label_()] = module

        # avoid that this variable is added to the process object when importing this _cff
        # (otherwise the last filter will appear with module name 'module' instead
        # of the name given by us...)
        del module

        egammaSelectors.append(generatorRequirementSequence)
        
# a 'reference' process to take (and analyze) the HLT menu from
refProcess = cms.Process("REF")

refProcess.load("HLTrigger.Configuration.HLT_GRun_cff")
process.dqmModule = EgammaHLTValidationUtils.EgammaDQMModuleMaker(refProcess, pathToTest,
                                                                   11, # type of generated particle
                                                                   1   # number of generated particles
                                                                   ).getResult()


del refProcess

process.dqmPath = cms.Path(

    # creates the sequence for requiring the number and type of generated particles
    EgammaHLTValidationUtils.makeGeneratedParticleAndFiducialVolumeFilter(process, 11, 1) *
    
    process.dqmModule)

#----------------------------------------
# E/gamma HLT specific DQM configuration
#----------------------------------------

process.post=DQMEDProducer("EmDQMPostProcessor",
                            subDir = cms.untracked.string("HLT/HLTEgammaValidation"),
                            dataSet = cms.untracked.string("unknown"),
    )

#----------------------------------------
# add DQM configuration
#----------------------------------------
Exemple #4
0
refProcess = cms.Process("REF")

refProcess.load("HLTrigger.Configuration.HLT_GRun_cff")
process.dqmModule = EgammaHLTValidationUtils.EgammaDQMModuleMaker(
    refProcess,
    pathToTest,
    11,  # type of generated particle
    1  # number of generated particles
).getResult()

del refProcess

process.dqmPath = cms.Path(

    # creates the sequence for requiring the number and type of generated particles
    EgammaHLTValidationUtils.makeGeneratedParticleAndFiducialVolumeFilter(
        process, 11, 1) * process.dqmModule)

#----------------------------------------
# E/gamma HLT specific DQM configuration
#----------------------------------------

process.post = cms.EDAnalyzer(
    "EmDQMPostProcessor",
    subDir=cms.untracked.string("HLT/HLTEgammaValidation"),
    dataSet=cms.untracked.string("unknown"),
)

#----------------------------------------
# add DQM configuration
#----------------------------------------
process.load("DQMServices.Core.DQM_cfg")