Esempio n. 1
0
def makeOnePath(path, isFastSim):
    """ given a path object, returns the python text to be written
    to a _cff.py file"""

    # name of the HLT path
    pathName = path.label_()

    # we currently exclude a few 'problematic' paths (for which we
    # don't have a full recipe how to produce a monitoring path
    # for them).
    #
    # we exclude paths which contain EDFilters which we don't know
    # how to handle in the DQM modules
    moduleCXXtypes = EgammaHLTValidationUtils.getCXXTypesOfPath(
        refProcess, path)
    # print >> sys.stderr,"module types:", moduleCXXtypes

    hasProblematicType = False

    for problematicType in [
            # this list was collected empirically
            'HLTEgammaTriggerFilterObjectWrapper',
            'EgammaHLTPhotonTrackIsolationProducersRegional',
    ]:

        if problematicType in moduleCXXtypes:
            print(msgPrefix + "SKIPPING PATH",
                  pathName,
                  "BECAUSE DON'T KNOW HOW TO HANDLE A MODULE WITH C++ TYPE",
                  problematicType,
                  file=sys.stderr)
            return None

    # print >> sys.stderr,msgPrefix, "adding E/gamma HLT dqm module for path",pathName

    dqmModuleName = pathName
    if isFastSim:
        dqmModuleName = dqmModuleName + "FastSim"

    dqmModuleName = dqmModuleName + "_DQM"

    # global dqmModule

    dqmModule = EgammaHLTValidationUtils.EgammaDQMModuleMaker(
        refProcess,
        pathName,
        thisCategoryData['genPid'],  # type of generated particle
        thisCategoryData['numGenerated']  # number of generated particles
    ).getResult()

    return dqmModuleName + " = " + repr(dqmModule)
Esempio n. 2
0
def makeOnePath(path, isFastSim):
    """ given a path object, returns the python text to be written
    to a _cff.py file"""

    # name of the HLT path
    pathName = path.label_()

    # we currently exclude a few 'problematic' paths (for which we
    # don't have a full recipe how to produce a monitoring path
    # for them).
    #
    # we exclude paths which contain EDFilters which we don't know
    # how to handle in the DQM modules
    moduleCXXtypes = EgammaHLTValidationUtils.getCXXTypesOfPath(refProcess,path)
    # print >> sys.stderr,"module types:", moduleCXXtypes

    hasProblematicType = False

    for problematicType in [
        # this list was collected empirically
        'HLTEgammaTriggerFilterObjectWrapper', 
        'EgammaHLTPhotonTrackIsolationProducersRegional',
        ]:

        if problematicType in moduleCXXtypes:
            print >> sys.stderr,msgPrefix +  "SKIPPING PATH",pathName,"BECAUSE DON'T KNOW HOW TO HANDLE A MODULE WITH C++ TYPE",problematicType
            return None

    # print >> sys.stderr,msgPrefix, "adding E/gamma HLT dqm module for path",pathName

    dqmModuleName = pathName
    if isFastSim:
        dqmModuleName = dqmModuleName + "FastSim"

    dqmModuleName = dqmModuleName + "_DQM"

    # global dqmModule

    dqmModule = EgammaHLTValidationUtils.EgammaDQMModuleMaker(refProcess, pathName,
                                                              thisCategoryData['genPid'],        # type of generated particle
                                                              thisCategoryData['numGenerated']   # number of generated particles
                                                              ).getResult()


    return dqmModuleName + " = " + repr(dqmModule)
Esempio n. 3
0
            # after the loop over the paths 
            path = None
            dqmModule = None

            for path in paths:

                # name of the HLT path
                pathName = path.label_()

                # we currently exclude a few 'problematic' paths (for which we
                # don't have a full recipe how to produce a monitoring path
                # for them).
                #
                # we exclude paths which contain EDFilters which we don't know
                # how to handle in the DQM modules
                moduleCXXtypes = EgammaHLTValidationUtils.getCXXTypesOfPath(refProcess,path)
                # print >> sys.stderr,"module types:", moduleCXXtypes

                hasProblematicType = False

                for problematicType in [
                    # this list was collected empirically
                    'HLTEgammaTriggerFilterObjectWrapper', 
                    'EgammaHLTPhotonTrackIsolationProducersRegional',
                    ]:

                    if problematicType in moduleCXXtypes:
                        ## print >> sys.stderr,msgPrefix, "SKIPPING PATH",pathName,"BECAUSE DON'T KNOW HOW TO HANDLE A MODULE WITH C++ TYPE",problematicType
                        hasProblematicType = True
                        break
Esempio n. 4
0
            # after the loop over the paths 
            path = None
            dqmModule = None

            for path in paths:

                # name of the HLT path
                pathName = path.label_()

                # we currently exclude a few 'problematic' paths (for which we
                # don't have a full recipe how to produce a monitoring path
                # for them).
                #
                # we exclude paths which contain EDFilters which we don't know
                # how to handle in the DQM modules
                moduleCXXtypes = EgammaHLTValidationUtils.getCXXTypesOfPath(refProcess,path)
                # print >> sys.stderr,"module types:", moduleCXXtypes

                hasProblematicType = False

                for problematicType in [
                    # this list was collected empirically
                    'HLTEgammaTriggerFilterObjectWrapper', 
                    'EgammaHLTPhotonTrackIsolationProducersRegional',
                    ]:

                    if problematicType in moduleCXXtypes:
                        ## print >> sys.stderr,msgPrefix, "SKIPPING PATH",pathName,"BECAUSE DON'T KNOW HOW TO HANDLE A MODULE WITH C++ TYPE",problematicType
                        hasProblematicType = True
                        break