Skip to content

Commit 87e81f7

Browse files
committed
Modifying
1 parent 5e37657 commit 87e81f7

File tree

6 files changed

+843
-4
lines changed

6 files changed

+843
-4
lines changed

demoanalyzer_cfg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
# ****************************************************************
3535

3636
# *** Commissioning data set ***
37-
files2010data = FileUtils.loadListFromFile ('/home/cms-opendata/CMSSW_4_2_8/src/Validation/Commissioning-dimuon-2010/datasets/CMS_Run2010B_Commissioning_AOD_Apr21ReReco-v1_0000_file_index.txt')
37+
files2010data = FileUtils.loadListFromFile ('/home/cms-opendata/CMSSW_4_2_8/src/Validation/Commissioning_dimuon_2010/datasets/CMS_Run2010B_Commissioning_AOD_Apr21ReReco-v1_0000_file_index.txt')
3838
process.source = cms.Source("PoolSource",fileNames = cms.untracked.vstring(*files2010data))
3939

4040
# *************************************************
4141
# number of events to be skipped (0 by default) *
4242
# *************************************************
4343
process.source.skipEvents = cms.untracked.uint32(0)
44-
process.demo = cms.EDAnalyzer('Commissioning-dimuon-2010')
44+
process.demo = cms.EDAnalyzer('Commissioning_dimuon_2010')
4545
# ***********************************************************
4646
# output file name *
4747
# change this according to input file, or according to wish *

demoanalyzer_cfg.py~

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import FWCore.ParameterSet.Config as cms
2+
from RecoMuon.TrackingTools.MuonServiceProxy_cff import *
3+
import PhysicsTools.PythonAnalysis.LumiList as LumiList
4+
import FWCore.ParameterSet.Types as CfgTypes
5+
#import FWCore.PythonUtilities.LumiList as LumiList
6+
process = cms.Process("Validation")
7+
8+
# intialize MessageLogger and output report
9+
process.load("FWCore.MessageLogger.MessageLogger_cfi")
10+
process.MessageLogger.cerr.threshold = 'INFO'
11+
process.MessageLogger.categories.append('Validation')
12+
process.MessageLogger.cerr.INFO = cms.untracked.PSet(limit = cms.untracked.int32(-1))
13+
process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
14+
# **********************************************************************
15+
# set the maximum number of events to be processed *
16+
# this number (argument of int32) is to be modified by the user *
17+
# according to need and wish *
18+
# default is preset to 10000 events *
19+
# **********************************************************************
20+
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(20000000) )
21+
22+
# ****************************************************************************
23+
# define the input data set here by inserting the appropriate .txt file list *
24+
# ****************************************************************************
25+
import FWCore.Utilities.FileUtils as FileUtils
26+
#
27+
# ****************************************************************
28+
# exactly one of the following 'files2010data =' statements *
29+
# should be uncommented. *
30+
# For MUO-10-004, the default is the Mu data set. *
31+
# To run over all sets, replace '0000' by '0001' etc. *
32+
# consecutively (make sure you save the output before rerunning) *
33+
# and add up the histograms using root tools. *
34+
# ****************************************************************
35+
36+
# *** Commissioning data set ***
37+
files2010data = FileUtils.loadListFromFile ('/home/cms-opendata/CMSSW_4_2_8/src/Validation/Commissioning-dimuon-2010/datasets/CMS_Run2010B_Commissioning_AOD_Apr21ReReco-v1_0000_file_index.txt')
38+
process.source = cms.Source("PoolSource",fileNames = cms.untracked.vstring(*files2010data))
39+
40+
# *************************************************
41+
# number of events to be skipped (0 by default) *
42+
# *************************************************
43+
process.source.skipEvents = cms.untracked.uint32(0)
44+
process.demo = cms.EDAnalyzer('Commissioning-dimuon-2010')
45+
# ***********************************************************
46+
# output file name *
47+
# change this according to input file, or according to wish *
48+
# ***********************************************************
49+
process.TFileService = cms.Service("TFileService",fileName = cms.string('Commissioning00val.root'))
50+
process.p = cms.Path(process.demo)

python/demoanalyzer_cfi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import FWCore.ParameterSet.Config as cms
22

3-
demo = cms.EDAnalyzer('DemoAnalyzer'
3+
demo = cms.EDAnalyzer('Commissioning_dimuon_2010'
44
)

python/demoanalyzer_cfi.pyc

32 Bytes
Binary file not shown.

src/DemoAnalyzer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ TH1D *h203;
117117
// constructors and destructor
118118
//
119119

120-
Commissioning::Commissioning_dimuon_2010(const edm::ParameterSet& iConfig) {
120+
Commissioning_dimuon_2010::Commissioning_dimuon_2010(const edm::ParameterSet& iConfig) {
121121

122122
// *****************************************************************
123123
// This is the main analysis routine

0 commit comments

Comments
 (0)