ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/CmsHi/JetAnalysis/test/analyzeData.py
Revision: 1.1
Committed: Sat Oct 23 15:51:19 2010 UTC (14 years, 6 months ago) by nart
Content type: text/x-python
Branch: MAIN
Log Message:
Tower Analyzer for Data

File Contents

# User Rev Content
1 nart 1.1
2     import FWCore.ParameterSet.VarParsing as VarParsing
3     ivars = VarParsing.VarParsing('standard')
4    
5     ivars.files = [
6     # ZS Data:
7     # 'rfio:/castor/cern.ch/cms/store/data/Run2010B/HeavyIonTest/RECO/PromptReco-v2/000/146/421/FE6B3366-B3C6-DF11-9905-0030487CD812.root',
8     #NZS Data:
9     'rfio:/castor/cern.ch/cms/store/data/Run2010B/HeavyIonTest/RECO/PromptReco-v2/000/146/421/FE8B65B2-ABC6-DF11-8534-0030487CD7E0.root',
10     ]
11    
12    
13     ivars.output = 'Data.root'
14    
15     ivars.maxEvents = 10
16    
17     ivars.register ('randomNumber',
18     mult=ivars.multiplicity.singleton,
19     info="for testing")
20     ivars.randomNumber=5
21     ivars.parseArguments()
22    
23     import FWCore.ParameterSet.Config as cms
24    
25     process = cms.Process('ANALYSIS')
26    
27     process.maxEvents = cms.untracked.PSet(
28     input = cms.untracked.int32(ivars.maxEvents)
29     )
30    
31     # Input source
32     process.source = cms.Source("PoolSource",
33     fileNames = cms.untracked.vstring(ivars.files)
34     )
35    
36     process.TFileService = cms.Service('TFileService',
37     fileName = cms.string('plots_' + ivars.output)
38     )
39    
40    
41     process.output = cms.OutputModule("PoolOutputModule",
42     outputCommands = cms.untracked.vstring("keep *_*_*_*"),
43     fileName = cms.untracked.string(ivars.output)
44     )
45    
46    
47     process.load('Configuration/StandardSequences/GeometryExtended_cff')
48     process.load('Configuration/StandardSequences/Services_cff')
49    
50     process.ana = cms.EDAnalyzer('MinBiasTowerAnalyzer',
51     nBins = cms.untracked.int32(1),
52     towersSrc = cms.untracked.InputTag("towerMaker","","RECO"),
53     doRandomCone = cms.untracked.bool(False),
54     doEvtPlane = cms.untracked.bool(False),
55     excludeJets = cms.untracked.bool(True),
56     isSignal = cms.untracked.bool(True),
57     doMC = cms.untracked.bool(False),
58     doTowers = cms.untracked.bool(True),
59     doRecHits = cms.untracked.bool(True),
60     ecalEBRecHitSrc = cms.untracked.InputTag("ecalRecHit","EcalRecHitsEB","RECO"),
61     ecalEERecHitSrc = cms.untracked.InputTag("ecalRecHit","EcalRecHitsEE","RECO")
62     )
63    
64     process.pana = cms.Path(
65     process.ana
66     )