ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/ControlRegions/test/singleElectronAnalyzer_cfg.py
Revision: 1.1
Committed: Tue May 7 09:39:47 2013 UTC (12 years ago) by lantonel
Content type: text/x-python
Branch: MAIN
CVS Tags: V02-03-02, V02-03-01, V02-03-00, V02-02-00, V02-01-01, V02-01-00, V01-01-00, V01-00-01, V01-00-00, V00-01-00, HEAD
Log Message:
first commit of control region definitions

File Contents

# Content
1 from OSUT3Analysis.AnaTools.osuAnalysis_cfi import *
2
3 ###############################################################
4 ##### Set Options for Running your Analyzer Interactively #####
5 ###############################################################
6
7
8
9 #dir = "/mnt/hadoop/mc/DYToEE_M-20_CT10_TuneZ2star_v2_8TeV-powheg-pythia6_Summer12_DR53X-PU_S10_START53_V7A-v1_AODSIM_DISPLACED_LEPTON-v3"
10 #dir = "/mnt/hadoop/mc/WW_TuneZ2star_8TeV_pythia6_tauola_Summer12_DR53X-PU_S10_START53_V7A-v1_AODSIM_DISPLACED_LEPTON-v3"
11 dir = "/mnt/hadoop/mc/ZZ_TuneZ2star_8TeV_pythia6_tauola_Summer12_DR53X-PU_S10_START53_V7A-v1_AODSIM_DISPLACED_LEPTON-v3"
12
13 for file in os.listdir(dir):
14 process.source.fileNames.extend(cms.untracked.vstring('file:' + dir + '/' + file))
15
16 #output file name when running interactively
17 process.TFileService.fileName = 'hist.root'
18
19 #number of events to process when running interactively
20 process.maxEvents.input = -1
21
22 #True -> Fill histograms for all objects, False -> Fill histograms only for objects passing all cuts
23 #False is recommended under normal circumstances
24 process.OSUAnalysis.plotAllObjectsInPassingEvents = False
25
26 process.OSUAnalysis.muons = cms.InputTag ('BNproducer', 'selectedPatMuonsLoosePFlow')
27 process.OSUAnalysis.electrons = cms.InputTag ('BNproducer', 'selectedPatElectronsLoosePFlow')
28
29 ########################################################################
30 ##### Import the information about all the histograms to be filled #####
31 ########################################################################
32
33 #import the desired sets of histograms from the standard python file which defines them
34 from OSUT3Analysis.Configuration.histogramDefinitions import *
35 process.OSUAnalysis.histogramSets.append(ElectronHistograms)
36 process.OSUAnalysis.histogramSets.append(JetHistograms)
37 process.OSUAnalysis.histogramSets.append(EventHistograms)
38 process.OSUAnalysis.histogramSets.append(MetHistograms)
39
40
41 ##########################################################
42 ##### Add the Desired Channels to the List to be Run #####
43 ##########################################################
44
45 from OSUT3Analysis.ControlRegions.SingleElectronSelections import *
46 process.OSUAnalysis.channels.append(WtoE_Selection)
47 process.OSUAnalysis.channels.append(TTbartoEHad_Selection)
48 process.OSUAnalysis.channels.append(QCDtoE_Selection)
49
50
51