test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
customize4TMVA.py
Go to the documentation of this file.
2 
3 def customise(process):
4 
5  process.simHcalUnsuppressedDigis.doThermalNoise = cms.bool(False)
6  #process.simSiStripDigis.CommonModeNoise = cms.bool(False)
7  #process.simSiStripDigis.SingleStripNoise = cms.bool(False)
8  #process.simSiStripDigis.Noise = cms.bool(False)
9  #process.simSiPixelDigis.AddNoise = cms.bool(False)
10  #process.simMuonRPCDigis.Noise = cms.bool(False)
11  #process.simMuonCSCDigis.strips.doCorrelatedNoise = cms.bool(False)
12  #process.simMuonCSCDigis.wires.doNoise = cms.bool(False)
13  #process.simMuonCSCDigis.strips.doNoise = cms.bool(False)
14  process.simEcalUnsuppressedDigis. doESNoise = cms.bool(False)
15  process.simCastorDigis. doNoise = cms.bool(False)
16  process.simEcalUnsuppressedDigis. doNoise = cms.bool(False)
17  process.simHcalUnsuppressedDigis. doNoise = cms.bool(False)
18 
19  process.TFileService = cms.Service("TFileService",
20  fileName = cms.string("histo.root"),
21  closeFileFast = cms.untracked.bool(True)
22  )
23 
24  from TrackingTools.TrackAssociator.default_cfi import TrackAssociatorParameterBlock
25 
26  myBlock=TrackAssociatorParameterBlock.clone()
27  myBlock.TrackAssociatorParameters.usePreshower = cms.bool(True)
28 
29  process.ana = cms.EDProducer('MuonCaloCleaner',
30  myBlock,
31  selectedMuons = cms.InputTag("muons"),
32  storeDeps = cms.untracked.bool(True)
33  )
34 
35 
36  process.anaPlus = cms.EDAnalyzer("AnaMuonCaloCleaner",
37  colLen = cms.InputTag("ana", "plus"),
38  colDep = cms.InputTag("ana", "plusDeposits"),
39  selectedMuons = cms.InputTag("muons"),
40  charge = cms.int32(1)
41  )
42 
43  process.anaMinus = cms.EDAnalyzer("AnaMuonCaloCleaner",
44  colLen = cms.InputTag("ana", "minus"),
45  colDep = cms.InputTag("ana", "minusDeposits"),
46  selectedMuons = cms.InputTag("muons"),
47  charge = cms.int32(-1)
48  )
49 
50  process.mySeq = cms.Sequence(process.ProductionFilterSequence*process.ana*process.anaPlus*process.anaMinus)
51  process.myPath = cms.Path(process.mySeq)
52 
53  process.schedule.extend([process.myPath])
54 
55  process.MessageLogger.cerr.FwkReport.reportEvery = 100
56 
57  return process