Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:25

0001 #########################
0002 #Author: Sam Higginbotham
0003 #Purpose: To investigate the AlCaPCCProducer input and output. 
0004 #########################
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("ALCARECO")
0008 
0009 process.source = cms.Source("PoolSource",
0010     fileNames = cms.untracked.vstring('file:/eos/cms/store/data/Run2015D/AlCaLumiPixels/ALCARECO/LumiPixels-PromptReco-v4/000/260/039/00000/1CF2A210-5B7E-E511-8F4F-02163E014145.root')
0011 )
0012 
0013 #Added process to select the appropriate events 
0014 process.OutALCARECOPromptCalibProdPCC = cms.PSet(
0015     SelectEvents = cms.untracked.PSet(
0016         SelectEvents = cms.vstring('pathALCARECOPromptCalibProdPCC')
0017     ),
0018     outputCommands = cms.untracked.vstring('drop *', 
0019         'keep *_alcaPCCProducer_*_*', 
0020         'keep *_MEtoEDMConvertSiStrip_*_*')
0021 )
0022 #Make sure that variables match in producer.cc and .h
0023 process.alcaPCCProducer = cms.EDProducer("AlcaPCCProducer",
0024     AlcaPCCProducerParameters = cms.PSet(
0025         WriteToDB = cms.bool(False),
0026         pixelClusterLabel = cms.InputTag("siPixelClustersForLumi"), 
0027         #Mod factor to count lumi and the string to specify output 
0028         resetEveryNLumi = cms.untracked.int32(1),
0029         trigstring = cms.untracked.string("alcaPCCZB") 
0030     ),
0031 )
0032 
0033 process.OutALCARECOLumiPixels = cms.PSet(
0034     SelectEvents = cms.untracked.PSet(
0035         SelectEvents = cms.vstring('pathALCARECOLumiPixels')
0036     ),
0037     outputCommands = cms.untracked.vstring('drop *', 
0038         'keep *_siPixelClustersForLumi_*_*', 
0039         'keep *_TriggerResults_*_HLT')
0040 )
0041 
0042 
0043 process.OutALCARECOLumiPixels_noDrop = cms.PSet(
0044     SelectEvents = cms.untracked.PSet(
0045         SelectEvents = cms.vstring('pathALCARECOLumiPixels')
0046     ),
0047     outputCommands = cms.untracked.vstring('keep *_siPixelClustersForLumi_*_*', 
0048         'keep *_TriggerResults_*_HLT')
0049 )
0050 
0051 process.siPixelClustersForLumi = cms.EDProducer("SiPixelClusterProducer",
0052     ChannelThreshold = cms.int32(1000),
0053     ClusterThreshold = cms.double(4000.0),
0054     MissCalibrate = cms.untracked.bool(True),
0055     SeedThreshold = cms.int32(1000),
0056     SplitClusters = cms.bool(False),
0057     VCaltoElectronGain = cms.int32(65),
0058     VCaltoElectronOffset = cms.int32(-414),
0059     maxNumberOfClusters = cms.int32(-1),
0060     payloadType = cms.string('Offline'),
0061     src = cms.InputTag("siPixelDigisForLumi")
0062 )
0063 
0064 
0065 process.siPixelDigisForLumi = cms.EDProducer("SiPixelRawToDigi",
0066     CablingMapLabel = cms.string(''),
0067     ErrorList = cms.vint32(29),
0068     IncludeErrors = cms.bool(True),
0069     InputLabel = cms.InputTag("hltFEDSelectorLumiPixels"),
0070     Regions = cms.PSet(
0071 
0072     ),
0073     UsePhase1 = cms.bool(False),
0074     UsePilotBlade = cms.bool(False),
0075     UseQualityInfo = cms.bool(False),
0076     UserErrorList = cms.vint32(40)
0077 )
0078 
0079 
0080 
0081 
0082 #HLT filter for PCC
0083 process.ALCARECOHltFilterForPCC = cms.EDFilter("HLTHighLevel",
0084     HLTPaths = cms.vstring("*ZeroBias*"),
0085     eventSetupPathsKey = cms.string(""),
0086     TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
0087     andOr = cms.bool(True),
0088     throw = cms.bool(False)
0089 )
0090 #From the end path, this is where we specify format for our output.
0091 process.ALCARECOStreamPromptCalibProdPCC = cms.OutputModule("PoolOutputModule",
0092     SelectEvents = cms.untracked.PSet(
0093         SelectEvents = cms.vstring('pathALCARECOPromptCalibProdPCC')
0094     ),
0095     dataset = cms.untracked.PSet(
0096         dataTier = cms.untracked.string('ALCAPROMPT'),
0097         filterName = cms.untracked.string('PromptCalibProdPCC')
0098     ),
0099     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0100     fileName = cms.untracked.string('ProdPCC_ZeroBias_1.root'),
0101     outputCommands = cms.untracked.vstring('drop *', 
0102         'keep *_alcaPCCProducer_*_*', 
0103         'keep *_MEtoEDMConvertSiStrip_*_*')
0104 )
0105 
0106 
0107 #
0108 process.alcaPCC = cms.Sequence(process.alcaPCCProducer)
0109 
0110 #This is the key sequence that we are adding first...
0111 process.seqALCARECOPromptCalibProdPCC = cms.Sequence(process.ALCARECOHltFilterForPCC+process.alcaPCCProducer)
0112 
0113 process.pathALCARECOPromptCalibProdPCC = cms.Path(process.seqALCARECOPromptCalibProdPCC)
0114 
0115 process.seqALCARECOLumiPixels = cms.Sequence(process.siPixelDigisForLumi+process.siPixelClustersForLumi)
0116 
0117 process.pathALCARECOLumiPixels = cms.Path(process.seqALCARECOLumiPixels)
0118 
0119 process.ALCARECOStreamPromptCalibProdOutPath = cms.EndPath(process.ALCARECOStreamPromptCalibProdPCC)
0120 
0121 process.MessageLogger = cms.Service("MessageLogger",
0122     cerr = cms.untracked.PSet(
0123         FwkJob = cms.untracked.PSet(
0124             limit = cms.untracked.int32(0)
0125         ),
0126         FwkReport = cms.untracked.PSet(
0127             limit = cms.untracked.int32(10000000),
0128             reportEvery = cms.untracked.int32(10000)
0129         ),
0130         FwkSummary = cms.untracked.PSet(
0131             limit = cms.untracked.int32(10000000),
0132             reportEvery = cms.untracked.int32(1)
0133         ),
0134         INFO = cms.untracked.PSet(
0135             limit = cms.untracked.int32(0)
0136         ),
0137         Root_NoDictionary = cms.untracked.PSet(
0138             limit = cms.untracked.int32(0),
0139         ),
0140         default = cms.untracked.PSet(
0141             limit = cms.untracked.int32(10000000)
0142         ),
0143         noTimeStamps = cms.untracked.bool(False),
0144         threshold = cms.untracked.string('INFO'),
0145         enableStatistics = cms.untracked.bool(True),
0146         statisticsThreshold = cms.untracked.string('WARNING')
0147     ),
0148     debugModules = cms.untracked.vstring(),
0149     default = cms.untracked.PSet(
0150 
0151     ),
0152     suppressDebug = cms.untracked.vstring(),
0153     suppressInfo = cms.untracked.vstring(),
0154     suppressWarning = cms.untracked.vstring()
0155 )
0156 #added line for additional output summary `
0157 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0158 
0159 
0160 process.schedule = cms.Schedule(*[ process.pathALCARECOPromptCalibProdPCC, process.ALCARECOStreamPromptCalibProdOutPath ])