Example #1
0
import FWCore.ParameterSet.Config as cms

from EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi import siPixelDigis

siPixelDigisForLumi = siPixelDigis.clone()
siPixelDigisForLumi.InputLabel = cms.InputTag("hltFEDSelectorLumiPixels")

from RecoLocalTracker.SiPixelClusterizer.SiPixelClusterizer_cfi import siPixelClusters

siPixelClustersForLumi = siPixelClusters.clone()
siPixelClustersForLumi.src = cms.InputTag("siPixelDigisForLumi")

# Sequence #
seqALCARECOLumiPixels = cms.Sequence(siPixelDigisForLumi +
                                     siPixelClustersForLumi)
import FWCore.ParameterSet.Config as cms

from EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi import siPixelDigis
siPixelDigisForLumi = siPixelDigis.clone()
siPixelDigisForLumi.InputLabel = cms.InputTag("hltFEDSelectorLumiPixels")

from RecoLocalTracker.SiPixelClusterizer.SiPixelClusterizer_cfi import siPixelClusters
siPixelClustersForLumi = siPixelClusters.clone()
siPixelClustersForLumi.src = cms.InputTag("siPixelDigisForLumi")

# Sequence #
seqALCARECOLumiPixels = cms.Sequence(siPixelDigisForLumi + siPixelClustersForLumi)
Example #3
0
import FWCore.ParameterSet.Config as cms
from HeterogeneousCore.CUDACore.SwitchProducerCUDA import SwitchProducerCUDA

# SiPixelGainCalibrationServiceParameters
from CondTools.SiPixel.SiPixelGainCalibrationService_cfi import *

# legacy pixel cluster producer
from RecoLocalTracker.SiPixelClusterizer.SiPixelClusterizer_cfi import siPixelClusters as _siPixelClusters
siPixelClustersPreSplitting = SwitchProducerCUDA(cpu=_siPixelClusters.clone())

from Configuration.ProcessModifiers.gpu_cff import gpu
# SwitchProducer wrapping the legacy pixel cluster producer or an alias for the pixel clusters information converted from SoA
gpu.toModify(
    siPixelClustersPreSplitting,
    # ensure the same results when running on GPU (which supports only the 'HLT' payload) and CPU
    cpu=dict(payloadType='HLT'),
    cuda=cms.EDAlias(siPixelDigisClustersPreSplitting=cms.VPSet(
        cms.PSet(type=cms.string("SiPixelClusteredmNewDetSetVector")))))

from Configuration.ProcessModifiers.siPixelDigiMorphing_cff import siPixelDigiMorphing
siPixelDigiMorphing.toModify(siPixelClustersPreSplitting,
                             cpu=dict(src='siPixelDigisMorphed'))
import FWCore.ParameterSet.Config as cms

#
from CondTools.SiPixel.SiPixelGainCalibrationService_cfi import *
from RecoLocalTracker.SiPixelClusterizer.SiPixelClusterizer_cfi import siPixelClusters as _siPixelClusters
siPixelClustersPreSplitting = _siPixelClusters.clone()
hltHighLevel = cms.EDFilter("HLTHighLevel",
                            TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
                            HLTPaths = cms.vstring(           # provide list of HLT paths (or patterns) you want
                                TAG_HLTSEL
                                ),
                            eventSetupPathsKey = cms.string(''), # not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
                            andOr = cms.bool(True),             # how to deal with multiple triggers: True (OR) accept if ANY is true, False (AND) accept if ALL are true
                            throw = cms.bool(False)    # throw exception on unknown path names
                            )


hltfilter = cms.Sequence(hltHighLevel)

from RecoLocalTracker.SiPixelClusterizer.SiPixelClusterizer_cfi import siPixelClusters
filtersiPixelClusters = siPixelClusters.clone()
filtersiPixelClusters.src = cms.InputTag("filtersiPixelDigis")

from EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi import siPixelDigis
filtersiPixelDigis = siPixelDigis.clone()
filtersiPixelDigis.InputLabel = cms.InputTag("rawDataCollector")

import  HLTrigger.special.hltPixelActivityFilter_cfi
multFilter = HLTrigger.special.hltPixelActivityFilter_cfi.hltPixelActivityFilter.clone(
    inputTag  = cms.InputTag('filtersiPixelClusters'),
    minClusters = cms.uint32(10000),
    maxClusters = cms.uint32(50000)
)

pixelClusterFilter = cms.Sequence(filtersiPixelDigis * filtersiPixelClusters * multFilter)
Example #6
0
    TriggerResultsTag=cms.InputTag("TriggerResults", "", "HLT"),
    HLTPaths=cms.vstring(  # provide list of HLT paths (or patterns) you want
        TAG_HLTSEL),
    eventSetupPathsKey=cms.string(
        ''
    ),  # not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
    andOr=cms.bool(
        True
    ),  # how to deal with multiple triggers: True (OR) accept if ANY is true, False (AND) accept if ALL are true
    throw=cms.bool(False)  # throw exception on unknown path names
)

hltfilter = cms.Sequence(hltHighLevel)

from RecoLocalTracker.SiPixelClusterizer.SiPixelClusterizer_cfi import siPixelClusters
filtersiPixelClusters = siPixelClusters.clone(src="filtersiPixelDigis")

from EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi import siPixelDigis
filtersiPixelDigis = siPixelDigis.clone(InputLabel="rawDataCollector")

import HLTrigger.special.hltPixelActivityFilter_cfi
multFilter = HLTrigger.special.hltPixelActivityFilter_cfi.hltPixelActivityFilter.clone(
    inputTag='filtersiPixelClusters', minClusters=10000, maxClusters=50000)

pixelClusterFilter = cms.Sequence(filtersiPixelDigis * filtersiPixelClusters *
                                  multFilter)

# process.hltfilter=cms.Path(process.hltHighLevel)

# process.load("HLTrigger.special.HLTTriggerTypeFilter_cfi")
# # 0=random, 1=physics, 2=calibration, 3=technical