Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:06:46

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("SKIM")
0004 
0005 process.configurationMetadata = cms.untracked.PSet(
0006     version = cms.untracked.string('$Revision: 1.6 $'),
0007     name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/CosmicsPDSkim_cfg.py,v $'),
0008     annotation = cms.untracked.string('Combined Cosmics skim')
0009 )
0010 
0011 #
0012 #
0013 # This is for testing purposes.
0014 #
0015 # run 122314 lumi 27
0016 #
0017 
0018 process.source = cms.Source("PoolSource",
0019                             fileNames = cms.untracked.vstring(
0020 '/store/data/BeamCommissioning09/Cosmics/RECO/v2/000/123/596/FC5C3B0F-8AE2-DE11-A905-003048D37456.root'),
0021                             secondaryFileNames = cms.untracked.vstring(
0022 '/store/data/BeamCommissioning09/Cosmics/RAW/v1/000/123/596/8E21B4C8-74E2-DE11-ABAA-000423D999CA.root')
0023 )
0024 
0025 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
0026 
0027 process.maxEvents = cms.untracked.PSet(
0028     input = cms.untracked.int32(1000)
0029 )
0030 
0031 
0032 
0033 #------------------------------------------
0034 # Load standard sequences.
0035 #------------------------------------------
0036 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
0037 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
0038 
0039 
0040 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0041 process.GlobalTag.globaltag = 'GR10_P_V8::All' 
0042 
0043 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
0044 process.load("Configuration/StandardSequences/ReconstructionCosmics_cff")
0045 process.load('Configuration/EventContent/EventContentCosmics_cff')
0046 
0047 
0048 ######################################Super Pointing#################################################
0049 
0050 process.cosmicMuonsBarrelOnlyFilter = cms.EDFilter("HLTMuonPointingFilter",
0051     SALabel = cms.InputTag("cosmicMuonsBarrelOnly"),
0052     PropagatorName = cms.string("SteppingHelixPropagatorAny"),
0053     radius = cms.double(10.0),
0054     maxZ = cms.double(50.0),
0055 )
0056 
0057 process.cosmicMuonsFilter = cms.EDFilter("HLTMuonPointingFilter",
0058     SALabel = cms.InputTag("cosmicMuons"),
0059     PropagatorName = cms.string("SteppingHelixPropagatorAny"),
0060     radius = cms.double(10.0),
0061     maxZ = cms.double(50.0),
0062 )
0063 
0064 process.cosmicMuons1LegFilter = cms.EDFilter("HLTMuonPointingFilter",
0065     SALabel = cms.InputTag("cosmicMuons1Leg"),
0066     PropagatorName = cms.string("SteppingHelixPropagatorAny"),
0067     radius = cms.double(10.0),
0068     maxZ = cms.double(50.0),
0069 )
0070 
0071 process.globalCosmicMuonsBarrelOnlyFilter = cms.EDFilter("HLTMuonPointingFilter",
0072     SALabel = cms.InputTag("globalCosmicMuonsBarrelOnly"),
0073     PropagatorName = cms.string("SteppingHelixPropagatorAny"),
0074     radius = cms.double(10.0),
0075     maxZ = cms.double(50.0),
0076 )
0077 
0078 process.cosmictrackfinderP5Filter = cms.EDFilter("HLTMuonPointingFilter",
0079     SALabel = cms.InputTag("cosmictrackfinderP5"),
0080     PropagatorName = cms.string("SteppingHelixPropagatorAny"),
0081     radius = cms.double(10.0),
0082     maxZ = cms.double(50.0),
0083 )
0084 
0085 process.globalCosmicMuonsFilter = cms.EDFilter("HLTMuonPointingFilter",
0086     SALabel = cms.InputTag("globalCosmicMuons"),
0087     PropagatorName = cms.string("SteppingHelixPropagatorAny"),
0088     radius = cms.double(10.0),
0089     maxZ = cms.double(50.0),
0090 )
0091 
0092 process.rsWithMaterialTracksP5Filter = cms.EDFilter("HLTMuonPointingFilter",
0093     SALabel = cms.InputTag("rsWithMaterialTracksP5"),
0094     PropagatorName = cms.string("SteppingHelixPropagatorAny"),
0095     radius = cms.double(10.0),
0096     maxZ = cms.double(50.0),
0097 )
0098 
0099 process.globalCosmicMuons1LegFilter = cms.EDFilter("HLTMuonPointingFilter",
0100     SALabel = cms.InputTag("globalCosmicMuons1Leg"),
0101     PropagatorName = cms.string("SteppingHelixPropagatorAny"),
0102     radius = cms.double(10.0),
0103     maxZ = cms.double(50.0),
0104 )
0105 
0106 process.ctfWithMaterialTracksP5Filter = cms.EDFilter("HLTMuonPointingFilter",
0107     SALabel = cms.InputTag("ctfWithMaterialTracksP5"),
0108     PropagatorName = cms.string("SteppingHelixPropagatorAny"),
0109     radius = cms.double(10.0),
0110     maxZ = cms.double(50.0),
0111 )
0112 
0113 
0114 process.cosmicMuonsBarrelOnlyPath = cms.Path(process.cosmicMuonsBarrelOnlyFilter)
0115 process.cosmicMuonsPath = cms.Path(process.cosmicMuonsFilter)
0116 process.cosmicMuons1LegPath = cms.Path(process.cosmicMuons1LegFilter)
0117 process.globalCosmicMuonsBarrelOnlyPath = cms.Path(process.globalCosmicMuonsBarrelOnlyFilter)
0118 process.cosmictrackfinderP5Path = cms.Path(process.cosmictrackfinderP5Filter)
0119 process.globalCosmicMuonsPath = cms.Path(process.globalCosmicMuonsFilter)
0120 process.rsWithMaterialTracksP5Path = cms.Path(process.rsWithMaterialTracksP5Filter)
0121 process.globalCosmicMuons1LegPath = cms.Path(process.globalCosmicMuons1LegFilter)
0122 process.ctfWithMaterialTracksP5Path = cms.Path(process.ctfWithMaterialTracksP5Filter)
0123 
0124 
0125 
0126 process.outSP = cms.OutputModule("PoolOutputModule",
0127                                outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
0128                                SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('cosmicMuonsBarrelOnlyPath',
0129                                                                                             'cosmicMuonsPath',
0130                                                                                             'cosmicMuons1LegPath',
0131                                                                                             'globalCosmicMuonsBarrelOnlyPath',
0132                                                                                             'cosmictrackfinderP5Path',
0133                                                                                             'globalCosmicMuonsPath',
0134                                                                                             'rsWithMaterialTracksP5Path',
0135                                                                                             'globalCosmicMuons1LegPath',
0136                                                                                             'ctfWithMaterialTracksP5Path')),                               
0137                                dataset = cms.untracked.PSet(
0138                              dataTier = cms.untracked.string('RAW-RECO'),
0139                                          filterName = cms.untracked.string('SuperPointing')),
0140                                fileName = cms.untracked.string('superPointing.root')
0141                                )
0142 
0143 ###########################################################################################
0144 #------------------------------------------
0145 # parameters for the CSCSkim module
0146 #------------------------------------------
0147 process.load("DPGAnalysis/Skims/CSCSkim_cfi")
0148 
0149 
0150 #set to minimum activity
0151 process.cscSkim.minimumSegments = 1
0152 process.cscSkim.minimumHitChambers = 1
0153 
0154 # this is for filtering on HLT path
0155 process.hltBeamHalo = cms.EDFilter("HLTHighLevel",
0156      TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
0157      HLTPaths = cms.vstring('HLT_CSCBeamHalo','HLT_CSCBeamHaloOverlapRing1','HLT_CSCBeamHaloOverlapRing','HLT_CSCBeamHaloRing2or3'), # provide list of HLT paths (or patterns) you want
0158      eventSetupPathsKey = cms.string(''), # not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
0159      andOr = cms.bool(True),             # how to deal with multiple triggers: True (OR) accept if ANY is true, False (AND) accept if ALL are true
0160      throw = cms.bool(False),    # throw exception on unknown path names
0161      saveTags = cms.bool(False)
0162  )
0163 
0164 #### the path
0165 process.cscHaloSkim = cms.Path(process.hltBeamHalo+process.cscSkim)
0166 
0167 
0168 #### output 
0169 process.outputBeamHaloSkim = cms.OutputModule("PoolOutputModule",
0170     outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
0171     fileName = cms.untracked.string("cscskimEvents.root"),
0172     dataset = cms.untracked.PSet(
0173       dataTier = cms.untracked.string('RAW-RECO'),
0174       filterName = cms.untracked.string('CSCSkim_BeamHalo_Cosmics')
0175     ),
0176     SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('cscHaloSkim'))
0177 )
0178 
0179 
0180 #################################logerrorharvester############################################
0181 process.load("FWCore.Modules.logErrorFilter_cfi")
0182 from Configuration.StandardSequences.RawToDigi_Data_cff import gtEvmDigis
0183 
0184 process.gtEvmDigis = gtEvmDigis.clone()
0185 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
0186                                   L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
0187                                   AllowedBeamMode = cms.vuint32(11),
0188                                   saveTags = cms.bool(False)
0189                                   )
0190 
0191 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
0192 
0193 process.outlogerr = cms.OutputModule("PoolOutputModule",
0194                                outputCommands =  process.FEVTEventContent.outputCommands,
0195                                fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
0196                                dataset = cms.untracked.PSet(
0197                                   dataTier = cms.untracked.string('RAW-RECO'),
0198                                   filterName = cms.untracked.string('Skim_logerror')),
0199                                
0200                                SelectEvents = cms.untracked.PSet(
0201     SelectEvents = cms.vstring("logerrorpath")
0202     ))
0203 
0204 #===========================================================
0205 
0206 process.options = cms.untracked.PSet(
0207  wantSummary = cms.untracked.bool(True)
0208 )
0209 
0210 process.outpath = cms.EndPath(process.outSP+process.outputBeamHaloSkim+process.outlogerr)
0211 
0212 
0213 
0214 
0215