Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #########################
0002 #Author: Attila Radl
0003 #Purpose: To investigate the AlCaPCCEventProducer + AlCaPCCIntegrator 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','file:/eos/cms/store/data/Run2015D/AlCaLumiPixels/ALCARECO/LumiPixels-PromptReco-v4/000/260/039/00000/1E2B0829-707E-E511-B51B-02163E0145FE.root','file:/eos/cms/store/data/Run2015D/AlCaLumiPixels/ALCARECO/LumiPixels-PromptReco-v4/000/260/039/00000/2666E76A-707E-E511-92E4-02163E014689.root','file:/eos/cms/store/data/Run2015D/AlCaLumiPixels/ALCARECO/LumiPixels-PromptReco-v4/000/260/039/00000/2A1E3304-707E-E511-946C-02163E014241.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.alcaPCCEventProducer = cms.EDProducer("AlcaPCCEventProducer",
0024     pixelClusterLabel = cms.InputTag("siPixelClustersForLumi"),
0025     #Mod factor to count lumi and the string to specify output 
0026     trigstring = cms.untracked.string("alcaPCCRandomEvent") 
0027 )
0028 
0029 process.alcaPCCIntegrator = cms.EDProducer("AlcaPCCIntegrator",
0030     AlcaPCCIntegratorParameters = cms.PSet(
0031         inputPccLabel = cms.InputTag("alcaPCCEventProducer","alcaPCCRandomEvent"),
0032         ProdInst = cms.string("alcaPCCRandom")
0033     ),
0034 )
0035 
0036 process.OutALCARECOLumiPixels = cms.PSet(
0037     SelectEvents = cms.untracked.PSet(
0038         SelectEvents = cms.vstring('pathALCARECOLumiPixels')
0039     ),
0040     outputCommands = cms.untracked.vstring('drop *', 
0041         'keep *_siPixelClustersForLumi_*_*', 
0042         'keep *_TriggerResults_*_HLT')
0043 )
0044 
0045 
0046 process.OutALCARECOLumiPixels_noDrop = cms.PSet(
0047     SelectEvents = cms.untracked.PSet(
0048         SelectEvents = cms.vstring('pathALCARECOLumiPixels')
0049     ),
0050     outputCommands = cms.untracked.vstring('keep *_siPixelClustersForLumi_*_*', 
0051         'keep *_TriggerResults_*_HLT')
0052 )
0053 
0054 process.siPixelClustersForLumi = cms.EDProducer("SiPixelClusterProducer",
0055     ChannelThreshold = cms.int32(1000),
0056     ClusterThreshold = cms.double(4000.0),
0057     MissCalibrate = cms.untracked.bool(True),
0058     SeedThreshold = cms.int32(1000),
0059     SplitClusters = cms.bool(False),
0060     VCaltoElectronGain = cms.int32(65),
0061     VCaltoElectronOffset = cms.int32(-414),
0062     maxNumberOfClusters = cms.int32(-1),
0063     payloadType = cms.string('Offline'),
0064     src = cms.InputTag("siPixelDigisForLumi")
0065 )
0066 
0067 
0068 process.siPixelDigisForLumi = cms.EDProducer("SiPixelRawToDigi",
0069     CablingMapLabel = cms.string(''),
0070     ErrorList = cms.vint32(29),
0071     IncludeErrors = cms.bool(True),
0072     InputLabel = cms.InputTag("hltFEDSelectorLumiPixels"),
0073     Regions = cms.PSet(
0074 
0075     ),
0076     UsePhase1 = cms.bool(False),
0077     UsePilotBlade = cms.bool(False),
0078     UseQualityInfo = cms.bool(False),
0079     UserErrorList = cms.vint32(40)
0080 )
0081 
0082 
0083 
0084 
0085 #HLT filter for PCC
0086 process.ALCARECOHltFilterForPCC = cms.EDFilter("HLTHighLevel",
0087     HLTPaths = cms.vstring("*Random*"),
0088     eventSetupPathsKey = cms.string(""),
0089     TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
0090     andOr = cms.bool(True),
0091     throw = cms.bool(False)
0092 )
0093 #From the end path, this is where we specify format for our output.
0094 process.ALCARECOStreamPromptCalibProdPCC = cms.OutputModule("PoolOutputModule",
0095     SelectEvents = cms.untracked.PSet(
0096         SelectEvents = cms.vstring('pathALCARECOPromptCalibProdPCC')
0097     ),
0098     dataset = cms.untracked.PSet(
0099         dataTier = cms.untracked.string('ALCAPROMPT'),
0100         filterName = cms.untracked.string('PromptCalibProdPCC')
0101     ),
0102     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0103     fileName = cms.untracked.string('ProdPCC_Random_Event_Integrator_100.root'),
0104     outputCommands = cms.untracked.vstring('drop *', 
0105         'keep *_alcaPCCEventProducer_*_*',
0106     'keep *_alcaPCCIntegrator_*_*', 
0107         'keep *_MEtoEDMConvertSiStrip_*_*')
0108 )
0109 
0110 #This is the key sequence that we are adding first...
0111 process.seqALCARECOPromptCalibProdPCC = cms.Sequence(process.ALCARECOHltFilterForPCC+process.alcaPCCEventProducer+process.alcaPCCIntegrator)
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(100000)
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 ])