Esempio n. 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)
    "PoolSource",
    fileNames = cms.untracked.vstring(
    "/store/express/Run2017F/ExpressPhysics/FEVT/Express-v1/000/305/366/00000/863EC350-6EB6-E711-8EAD-02163E019B61.root",
    "/store/express/Run2017F/ExpressPhysics/FEVT/Express-v1/000/305/366/00000/B6268B1F-6FB6-E711-A46C-02163E01439D.root",
    ),
    #lumisToProcess = cms.untracked.VLuminosityBlockRange("305366:1-305366:1"),
)


# -- number of events
process.maxEvents = cms.untracked.PSet(
    input = cms.untracked.int32(-1)
)

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

process.siPixelStatusProducer = cms.EDProducer("SiPixelStatusProducer",
    SiPixelStatusProducerParameters = cms.PSet(
        badPixelFEDChannelCollections = cms.VInputTag(cms.InputTag('siPixelDigis')),
        pixelClusterLabel = cms.untracked.InputTag("siPixelClusters::RECO"),
        monitorOnDoubleColumn = cms.untracked.bool(False),
        resetEveryNLumi = cms.untracked.int32( 1 )
    )
)

process.ALCARECOStreamSiPixelCalZeroBias = cms.OutputModule("PoolOutputModule",
    fileName = cms.untracked.string('SiPixelCalZeroBias.root'),
    outputCommands = cms.untracked.vstring('drop *',
        'keep *_siPixelStatusProducer_*_*',
# -- Input files
process.source = cms.Source(
    "PoolSource",
    fileNames=cms.untracked.vstring(
        "/store/express/Run2017F/ExpressPhysics/FEVT/Express-v1/000/305/366/00000/863EC350-6EB6-E711-8EAD-02163E019B61.root",
        "/store/express/Run2017F/ExpressPhysics/FEVT/Express-v1/000/305/366/00000/B6268B1F-6FB6-E711-A46C-02163E01439D.root",
    ),
    #lumisToProcess = cms.untracked.VLuminosityBlockRange("305366:1-305366:1"),
)

# -- number of events
process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(-1))

from EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi import siPixelDigis

process.siPixelDigis = siPixelDigis.clone()
process.siPixelDigis.InputLabel = cms.InputTag("rawDataCollector")

process.siPixelStatusProducer = cms.EDProducer(
    "SiPixelStatusProducer",
    SiPixelStatusProducerParameters=cms.PSet(
        badPixelFEDChannelCollections=cms.VInputTag(
            cms.InputTag('siPixelDigis')),
        pixelClusterLabel=cms.untracked.InputTag("siPixelClusters::RECO"),
        monitorOnDoubleColumn=cms.untracked.bool(False),
        resetEveryNLumi=cms.untracked.int32(1)))

process.ALCARECOStreamSiPixelCalZeroBias = cms.OutputModule(
    "PoolOutputModule",
    fileName=cms.untracked.string('SiPixelCalZeroBias.root'),
    outputCommands=cms.untracked.vstring(
                                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)

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


# process.load("HLTrigger.special.HLTTriggerTypeFilter_cfi")
Esempio n. 6
0
    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
# process.hltTriggerTypeFilter.SelectedTriggerType = TAG_TRIGGERTYPE

# process.triggertype=cms.Path(process.hltTriggerTypeFilter)