CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DPGAnalysis/Skims/python/reco_skim_cfg_mod.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process('RERECO')
00004 
00005 # this is to avoid the postpathendrun probem with same process name (only with https reader)
00006 process.options = cms.untracked.PSet(
00007     IgnoreCompletely = cms.untracked.vstring('Configuration')
00008 #    SkipEvent = cms.untracked.vstring('Configuration')
00009 )
00010 
00011 
00012 # for ispy
00013 process.add_(
00014     cms.Service("ISpyService",
00015     outputFileName = cms.untracked.string('Ispy.ig'),
00016     outputMaxEvents = cms.untracked.int32 (1000),
00017     online = cms.untracked.bool(True),
00018     debug = cms.untracked.bool(True)
00019     )
00020 )
00021 
00022 
00023 # import of standard configurations
00024 process.load('Configuration/StandardSequences/Services_cff')
00025 process.load('FWCore/MessageService/MessageLogger_cfi')
00026 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
00027 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
00028 process.load('Configuration/StandardSequences/RawToDigi_Data_cff')
00029 process.load('Configuration/StandardSequences/Reconstruction_cff')
00030 process.load('DQMOffline/Configuration/DQMOffline_cff')
00031 process.load('Configuration/StandardSequences/EndOfProcess_cff')
00032 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
00033 process.load('Configuration/EventContent/EventContent_cff')
00034 process.load('ISpy/Analyzers/ISpy_Producer_cff')
00035 
00036 
00037 
00038 ######### FILTERING Section #############################
00039 
00040 # this is for filtering on HLT path
00041 process.HLTHighLevel = cms.EDFilter("HLTHighLevel",
00042      TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
00043 #     HLTPaths = cms.vstring('HLT_Activity_L1A'),           # provide list of HLT paths (or patterns) you want
00044      HLTPaths = cms.vstring('HLT_MinBiasBSC'),           # provide list of HLT paths (or patterns) you want
00045      eventSetupPathsKey = cms.string(''), # not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
00046      andOr = cms.bool(True),             # how to deal with multiple triggers: True (OR) accept if ANY is true, False (AND) accept if ALL are true
00047      throw = cms.bool(True)    # throw exception on unknown path names
00048  )
00049 
00050 # this is for filtering based on reco variables
00051 process.skimming = cms.EDFilter("BeamSplash",
00052     energycuttot = cms.untracked.double(1000.0),
00053     energycutecal = cms.untracked.double(700.0),
00054     energycuthcal = cms.untracked.double(700.0),
00055     ebrechitcollection =   cms.InputTag("ecalRecHit","EcalRecHitsEB"),
00056     eerechitcollection =   cms.InputTag("ecalRecHit","EcalRecHitsEE"),
00057     hbherechitcollection =   cms.InputTag("hbhereco"),
00058     applyfilter = cms.untracked.bool(False)                            
00059 )
00060 
00061 # this is for filtering on trigger type
00062 
00063 process.load("HLTrigger.special.HLTTriggerTypeFilter_cfi")
00064 # 0=random, 1=physics, 2=calibration, 3=technical
00065 process.hltTriggerTypeFilter.SelectedTriggerType = 1
00066 
00067 # this is for filtering on L1 technical trigger bit
00068 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
00069 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
00070 process.hltLevel1GTSeed.L1TechTriggerSeeding = cms.bool(True)
00071 process.hltLevel1GTSeed.L1SeedsLogicalExpression = cms.string('32 OR 33 OR 40 OR 41')
00072 
00073 #this is for filtering/tagging PhysDecl bit
00074 process.PhysDecl = cms.EDFilter("PhysDecl",
00075      applyfilter = cms.untracked.bool(False),
00076      debugOn = cms.untracked.bool(True)
00077     )
00078 
00079 
00080 process.configurationMetadata = cms.untracked.PSet(
00081     version = cms.untracked.string('$Revision: 1.4 $'),
00082     annotation = cms.untracked.string('promptReco nevts:1'),
00083     name = cms.untracked.string('PyReleaseValidation')
00084 )
00085 process.maxEvents = cms.untracked.PSet(
00086     input = cms.untracked.int32(NUMEVENTS)
00087 )
00088 process.options = cms.untracked.PSet(
00089     Rethrow = cms.untracked.vstring('ProductNotFound'),
00090     wantSummary = cms.untracked.bool(True)
00091 )
00092 
00093 process.source = cms.Source("EventStreamHttpReader",
00094 
00095 # streaming##################################################
00096 # in p5 
00097 #   sourceURL = cms.string('https://srv-c2d05-14.cms:22100/urn:xdaq-application:lid=30'),
00098 #   consumerName = cms.untracked.string('DQM Source'),
00099 
00100 # tunnel to proxy
00101 # THIS SHOULD BE THE CORRECT FOR OFFLINE ACCESSING THE REVERSE PROXY
00102 #   sourceURL = cms.string('https://cmsdaq0.cern.ch/event-server/urn:xdaq-application:lid=30'),
00103 
00104 # special tunnel Configuration, need to setup an external tunnel
00105 #   sourceURL = cms.string('https://localhost:22100/urn:xdaq-application:lid=30'),
00106    sourceURL = SOURCE,
00107    consumerName = cms.untracked.string('Event Display'),
00108 
00109 # direct storage manager
00110 #   sourceURL = cms.string('https://localhost:22100/urn:xdaq-application:service=storagemanager'),
00111 #   consumerName = cms.untracked.string('Event Display'),
00112 
00113 # playback###################################################
00114 # in pt5
00115 #    sourceURL = cms.string('https://srv-c2d05-05:50082/urn:xdaq-application:lid=29'),
00116 
00117 # tunnel
00118 #   sourceURL = cms.string('https://localhost:50082/urn:xdaq-application:lid=29'),
00119 #   consumerName = cms.untracked.string('Playback Source'),
00120 #################################################################
00121                             
00122    consumerPriority = cms.untracked.string('normal'),
00123    max_event_size = cms.int32(7000000),
00124    SelectHLTOutput = SELECTHLT,
00125 #   SelectHLTOutput = cms.untracked.string('hltOutputDQM'),
00126 #   SelectHLTOutput = cms.untracked.string('hltOutputExpress'),
00127    max_queue_depth = cms.int32(5),
00128    maxEventRequestRate = cms.untracked.double(2.0),
00129    SelectEvents = cms.untracked.PSet(
00130 #       SelectEvents = cms.vstring('*DQM')
00131        SelectEvents = cms.vstring('*')
00132 #       SelectEvents = cms.vstring('PhysicsPath')
00133    ),
00134    headerRetryInterval = cms.untracked.int32(3)
00135 )
00136 
00137 
00138 
00139 #process.source = cms.Source("PoolSource",
00140 #    debugVerbosity = cms.untracked.uint32(0),
00141 #    debugFlag = cms.untracked.bool(False),
00142 #    fileNames = cms.untracked.vstring(
00143 ##'/store/data/Commissioning08/BeamHalo/RECO/StuffAlmostToP5_v1/000/061/642/10A0FE34-A67D-DD11-AD05-000423D94E1C.root'
00144 ##
00145 ##'/store/express/CRAFT09/ExpressMuon/FEVT/v1/000/110/835/FED0EFCD-AB87-DE11-9B72-000423D99658.root'
00146 ##'/store/express/CRAFT09/ExpressMuon/FEVT/v1/000/110/835/FC629BD2-CF87-DE11-9077-001D09F25438.root',
00147 ##'/store/express/CRAFT09/ExpressMuon/FEVT/v1/000/110/835/FC38EE75-BD87-DE11-822A-001D09F253C0.root',
00148 ##'/store/express/CRAFT09/ExpressMuon/FEVT/v1/000/110/835/FC1CB101-A487-DE11-9F10-000423D99660.root'
00149 #))
00150 
00151 
00152 process.FEVT = cms.OutputModule("PoolOutputModule",
00153     maxSize = cms.untracked.int32(1000),
00154     fileName = cms.untracked.string('EVDISPSM_SUFFIX.root'),
00155     outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
00156     dataset = cms.untracked.PSet(
00157               dataTier = cms.untracked.string('RAW-RECO'),
00158 #             filterName = cms.untracked.string(''))
00159               filterName = cms.untracked.string('EVDISP')),
00160                                 SelectEvents = cms.untracked.PSet(
00161         SelectEvents = cms.vstring('fullpath')
00162     )
00163 )
00164 
00165 # Other statements
00166 #process.GlobalTag.connect = 'sqlite_file:/afs/cern.ch/user/m/malgeri/public/gtfirstcoll.db'
00167 process.GlobalTag.globaltag = 'GR09_P_V6::All'
00168 
00169 process.fifthCkfTrajectoryFilter.filterPset.minimumNumberOfHits = 2
00170 process.fifthCkfTrajectoryFilter.filterPset.maxLostHits = 4
00171 process.fifthCkfTrajectoryFilter.filterPset.maxConsecLostHits = 2
00172 process.fifthCkfInOutTrajectoryFilter.filterPset.minimumNumberOfHits = 2
00173 process.fifthCkfInOutTrajectoryFilter.filterPset.maxLostHits = 4
00174 process.fifthCkfInOutTrajectoryFilter.filterPset.maxConsecLostHits = 2
00175 process.fifthCkfTrajectoryBuilder.minNrOfHitsForRebuild = 2
00176 process.fifthRKTrajectorySmoother.minHits = 2
00177 process.fifthRKTrajectoryFitter.minHits = 2
00178 process.fifthFittingSmootherWithOutlierRejection.MinNumberOfHits = 2
00179 process.tobtecStepLoose.minNumberLayers = 2
00180 process.tobtecStepLoose.maxNumberLostLayers = 2
00181 process.tobtecStepLoose.dz_par1 = cms.vdouble(10.5, 4.0)
00182 process.tobtecStepLoose.dz_par2 = cms.vdouble(10.5, 4.0)
00183 process.tobtecStepLoose.d0_par1 = cms.vdouble(10.5, 4.0)
00184 process.tobtecStepLoose.d0_par2 = cms.vdouble(10.5, 4.0)
00185 process.tobtecStepLoose.chi2n_par = cms.double(100.0)
00186 process.fifthSeeds.RegionFactoryPSet.RegionPSet.originHalfLength = 100
00187 process.fifthSeeds.RegionFactoryPSet.RegionPSet.originRadius     = 10
00188 process.Chi2MeasurementEstimator.MaxChi2 = 100
00189 
00190 
00191 # to filter on MinBias...
00192 #process.fullpath = cms.Path(process.hltTriggerTypeFilter+process.HLTHighLevel+process.RawToDigi+process.reconstruction)
00193 
00194 # to filter on trigger type only
00195 #process.fullpath = cms.Path(process.hltTriggerTypeFilter+process.HLTHighLevel+process.RawToDigi+process.reconstruction)
00196 
00197 #process.fullpath = cms.Path(process.RawToDigi+process.reconstruction+process.skimming+process.iSpy_sequence)
00198 #process.fullpath = cms.Path(process.hltTriggerTypeFilter+process.RawToDigi+process.reconstruction+process.skimming+process.iSpy_sequence)
00199 # added PhysDecl in tagging mode to catch physdeclared bit in log files
00200 # process.fullpath = cms.Path(process.hltTriggerTypeFilter+process.RawToDigi+process.PhysDecl+process.reconstruction+process.skimming+process.iSpy_sequence)
00201 process.fullpath = cms.Path(process.RawToDigi+process.PhysDecl+process.reconstruction+process.skimming+process.iSpy_sequence)
00202 
00203 process.out_step = cms.EndPath(process.FEVT)
00204 
00205 # Schedule definition
00206 
00207 process.schedule = cms.Schedule(process.fullpath,process.out_step)
00208 
00209 
00210 #process.e = cms.EndPath(process.out)
00211