def addPileupcounts(process):
   for i in range(11):
      filterPU = 'filter%dPU'%i
      countsPU = 'counts%dPU'%i
      setattr(process,filterPU, pileUpInfoFilter.clone(numberOfPileUpEvents = i))
      setattr(process,countsPU, countsAnalyzer.clone())
      setattr(process,countsPU + '_step',cms.Path(getattr(process,filterPU) + getattr(process,countsPU)))

   return process
示例#2
0
def addPileupcounts(process):
    for i in range(11):
        filterPU = 'filter%dPU' % i
        countsPU = 'counts%dPU' % i
        setattr(process, filterPU,
                pileUpInfoFilter.clone(numberOfPileUpEvents=i))
        setattr(process, countsPU, countsAnalyzer.clone())
        setattr(
            process, countsPU + '_step',
            cms.Path(getattr(process, filterPU) + getattr(process, countsPU)))

    return process
    processIdFilters = addProcessIdFilters(process,config.generator)

##########################################################################
if config.runOnMC:
  process.gen_step = cms.Path(process.genChargedParticles+
                              process.genProtonDissociative*process.edmNtupleMxGen+
                              process.genStableParticles*
                              process.etaMaxGen+process.etaMinGen*
                              process.edmNtupleEtaMaxGen+process.edmNtupleEtaMinGen)

process.analysis_reco_step = cms.Path(process.analysisSequences)
#process.castor_step = cms.Path(process.castorSequence)

# Path for event counting
from Utilities.AnalysisTools.countsAnalyzer_cfi import countsAnalyzer
process.countsAll = countsAnalyzer.clone()
process.countshltMinBias = countsAnalyzer.clone()
process.countsBPTX = countsAnalyzer.clone()
process.countsVertexFilter = countsAnalyzer.clone()
process.countsFilterScraping = countsAnalyzer.clone()
process.countsHcalNoiseFilter = countsAnalyzer.clone()
process.countsMultipleVertexVeto = countsAnalyzer.clone()
process.countsEtaMinFilter = countsAnalyzer.clone()
process.countEvents_step = cms.Path(process.countsAll +
                                    process.hltMinBias +
                                    process.countshltMinBias +
                                    process.bptx +
                                    process.countsBPTX + 
                                    process.primaryVertexFilter +
                                    process.countsVertexFilter +
                                    process.filterScraping +