Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
00bf637
first try
ivanpari Jan 28, 2016
dcce1d5
trying to make it work
ivanpari Jan 28, 2016
85853be
working version of 76X, no fancy things yet
ivanpari Jan 28, 2016
3362bbc
latest working version of the day
ivanpari Jan 28, 2016
5eb20e1
add fill btag histos as argument
ivanpari Jan 29, 2016
582dff5
add btagweights and PUweights
ivanpari Jan 29, 2016
455840e
cleaning
ivanpari Jan 29, 2016
8a08406
added lepton SF , 74X version
ivanpari Jan 29, 2016
3233d0c
added JEC and JER, JER not implemented in 76
ivanpari Jan 29, 2016
610c980
added JEC and JER as argument
ivanpari Jan 29, 2016
a7551c2
added 76v0 samples
ivanpari Feb 3, 2016
1405dd9
to calculate eqlumis from xml
ivanpari Feb 3, 2016
3253500
started with mutrig eff, started with amc corrections, started with c…
ivanpari Feb 4, 2016
1225ea2
clean
ivanpari Feb 4, 2016
b949010
trying to get it to work
ivanpari Feb 4, 2016
5222b5b
works
ivanpari Feb 4, 2016
f7ae0f3
works
ivanpari Feb 5, 2016
183a1c8
solve typo
ivanpari Feb 5, 2016
a4e1304
to merge TTrees
ivanpari Feb 5, 2016
4f3d074
cleaning
ivanpari Feb 5, 2016
39c6f59
cleaning
ivanpari Feb 5, 2016
365c2ba
working
ivanpari Feb 9, 2016
b3f4d66
latest workingversion
ivanpari Feb 12, 2016
4115c42
latest working version
ivanpari Feb 16, 2016
f4564d6
new JEC/JER, btag shape sf , new muon SF
ivanpari Feb 18, 2016
372b9e3
JEC of 76X
ivanpari Feb 22, 2016
83792de
update
ivanpari May 19, 2016
ad8d17e
update
ivanpari May 29, 2016
42e0704
bluh trying to make trigger work on data
ivanpari Jun 1, 2016
129d478
update
ivanpari Jun 2, 2016
a97d153
Merge branch 'CMSSW_76X_TriLepton' of https://github.com/TopBrussels/…
ivanpari Jun 2, 2016
c27b860
fixing txt file memory prob
ivanpari Jun 3, 2016
d1d93de
fixed lepton assignment, problem was Z mass (now) 91.1 instead of 90.…
ivanpari Jun 16, 2016
9d4bb8b
fix that 4 lep events were passing in eee and mumumu
ivanpari Jun 16, 2016
105ce10
starting with MVA
ivanpari Jul 5, 2016
3798a8f
working version
ivanpari Jul 5, 2016
24f233d
status update
ivanpari Jul 15, 2016
b5ae8e0
status update
ivanpari Jul 15, 2016
47bcf0f
fix zboson bug
ivanpari Jul 18, 2016
483e183
update
ivanpari Oct 12, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
__init__.py
*.pyc
Information/**
NtupleMakerOutput/
Ntupler_localgrid
BTagHistosPtEta/
LocalGridSubmission/SubmitScripts/**/**
NtupleAnalyzer
myOutput/**
config/*analyzer*
*.txt
config/*.xml
config/*.root
MVA*/*
Ntupler
Ntupler_an
Ntupler_mwt
Trigger.*
*.root
48 changes: 48 additions & 0 deletions EquiLumiCalculator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/usr/bin/python

from glob import glob
from ROOT import TChain
import xml.etree.cElementTree as ET
import os

# get filenames from the xml!!!
tree = ET.ElementTree(file='config/Run2TriLepton_samples_extra.xml')

root = tree.getroot()
datasets = root.find('datasets')

topTrees = []
xsections = []

# loop over the datasets to be added and fill the "topTrees" vector
for d in datasets:
if d.attrib['add'] == '1':
topTrees.append(d.attrib['filenames'])
xsections.append(float(d.attrib['xsection']))


# loop over the "topTrees" vector
for n_sample in range(0,len(topTrees)):

path = topTrees[n_sample]
print path
files = glob(path)
root_files = []
for f in files:
# root_files.append('dcap://maite.iihe.ac.be' + f)
root_files.append(f)
#print root_files
chain = TChain('eventTree')
for rf in root_files:
chain.Add(rf)
print 'added files'
nEntries = chain.GetEntries();
print "\n"
print topTrees[n_sample], " contains ", nEntries, " events!"
if (xsections[n_sample] != 1):
print " xsections is " , xsections[n_sample]
print "Eqlumi is N/xsect --->" , nEntries , "/" , xsections[n_sample] , " = " , nEntries/xsections[n_sample]
print "***************************"
print "****End of sample *********"
print "***************************"
print "\n"
Loading