CMS 3D CMS Logo

MinBiasPDSkim_ONLYHSCP_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("SKIM")
4 
5 process.configurationMetadata = cms.untracked.PSet(
6  version = cms.untracked.string('$Revision: 1.2 $'),
7  name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/MinBiasPDSkim_ONLYHSCP_cfg.py,v $'),
8  annotation = cms.untracked.string('Combined MinBias skim')
9 )
10 # selection eff. on 1000 events
11 #file:/tmp/azzi/Background.root
12 #/tmp/azzi/Background.root ( 0 events, 664191 bytes )
13 #file:/tmp/azzi/MinBiascscskimEvents.root
14 #/tmp/azzi/MinBiascscskimEvents.root ( 0 events, 664212 bytes )
15 #file:/tmp/azzi/MuonDPGSkim.root
16 #/tmp/azzi/MuonDPGSkim.root ( 95 events, 40887080 bytes )
17 #file:/tmp/azzi/StoppedHSCP_filter.root
18 #/tmp/azzi/StoppedHSCP_filter.root ( 124 events, 28507733 bytes )
19 #file:/tmp/azzi/ValSkim.root
20 #/tmp/azzi/ValSkim.root ( 22 events, 9588726 bytes )
21 #file:/tmp/azzi/ecalrechitfilter.root
22 #/tmp/azzi/ecalrechitfilter.root ( 23 events, 14583758 bytes )
23 #file:/tmp/azzi/logerror_filter.root
24 #/tmp/azzi/logerror_filter.root ( 14 events, 9389296 bytes )
25 #file:/tmp/azzi/TPGSkim.root
26 #/tmp/azzi/TPGSkim.root ( 46 events, 20271643 bytes )
27 
28 #
29 #
30 # This is for testing purposes.
31 #
32 #
33 process.source = cms.Source("PoolSource",
34  fileNames = cms.untracked.vstring(
35 # run 136066 lumi~500
36 '/store/data/Run2010A/MinimumBias/RECO/v1/000/136/066/18F6DB82-5566-DF11-B289-0030487CAF0E.root'),
37  secondaryFileNames = cms.untracked.vstring(
38 '/store/data/Run2010A/MinimumBias/RAW/v1/000/136/066/38D48BED-3C66-DF11-88A5-001D09F27003.root')
39 )
40 
41 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
42 
43 process.maxEvents = cms.untracked.PSet(
44  input = cms.untracked.int32(-1)
45 )
46 
47 
48 #------------------------------------------
49 # Load standard sequences.
50 #------------------------------------------
51 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
52 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
53 
54 
55 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
56 process.GlobalTag.globaltag = 'GR_R_36X_V12B::All'
57 
58 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
59 process.load("Configuration/StandardSequences/Reconstruction_cff")
60 process.load('Configuration/EventContent/EventContent_cff')
61 
62 #drop collections created on the fly
63 process.FEVTEventContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
64 process.FEVTEventContent.outputCommands.append("drop *_*_*_SKIM")
65 
66 #
67 # Load common sequences
68 #
69 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
70 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
71 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
72 
73 
74 
75 
76 # this is for filtering on HLT path
77 process.hltstoppedhscp = cms.EDFilter("HLTHighLevel",
78  TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
79  HLTPaths = cms.vstring("HLT_StoppedHSCP*"), # provide list of HLT paths (or patterns) you want
80  eventSetupPathsKey = cms.string(''), # not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
81  andOr = cms.bool(True), # how to deal with multiple triggers: True (OR) accept if ANY is true, False (AND) accept if ALL are true
82  throw = cms.bool(False), # throw exception on unknown path names
83  saveTags = cms.bool(False)
84 )
85 
86 process.HSCP=cms.Path(process.hltstoppedhscp)
87 
88 process.outHSCP = cms.OutputModule("PoolOutputModule",
89  outputCommands = process.FEVTEventContent.outputCommands,
90  fileName = cms.untracked.string('/tmp/malgeri/StoppedHSCP_filter.root'),
91  dataset = cms.untracked.PSet(
92  dataTier = cms.untracked.string('RAW-RECO'),
93  filterName = cms.untracked.string('Skim_StoppedHSCP')),
94 
95  SelectEvents = cms.untracked.PSet(
96  SelectEvents = cms.vstring("HSCP")
97  ))
98 
99 
100 
101 process.options = cms.untracked.PSet(
102  wantSummary = cms.untracked.bool(True)
103 )
104 
105 process.outpath = cms.EndPath(process.outHSCP)
106 
107 
108 
109