1 |
lantonel |
1.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 = "/store/user/lantonel/BN_DoubleMu_Run2012A-recover-06Aug2012-v1_AOD"
|
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(MuonHistograms)
|
36 |
|
|
process.OSUAnalysis.histogramSets.append(DiMuonHistograms)
|
37 |
|
|
process.OSUAnalysis.histogramSets.append(MetHistograms)
|
38 |
|
|
process.OSUAnalysis.histogramSets.append(EventHistograms)
|
39 |
|
|
|
40 |
|
|
##########################################################
|
41 |
|
|
##### Add the Desired Channels to the List to be Run #####
|
42 |
|
|
##########################################################
|
43 |
|
|
|
44 |
|
|
from OSUT3Analysis.ControlRegions.DoubleMuSelections import *
|
45 |
|
|
process.OSUAnalysis.channels.append(ZtoMuMu_Selection)
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
|