1 |
|
2 |
def fillHistoPredefCutsPassed(histos, nrPassed, cuts, collection, index, bin) :
|
3 |
|
4 |
cut = 1
|
5 |
while (cut < len( histos ) ):
|
6 |
if (collection[index].getSelection(cuts[cut])):
|
7 |
histos[cut].Fill(bin)
|
8 |
nrPassed[cut] += 1
|
9 |
cut +=1
|
10 |
|
11 |
def fillHistoPredefAndLTCutsPassed(histos, nrPassed, cuts, cutsLT, collection, index, bin, var) :
|
12 |
|
13 |
c = 0
|
14 |
for cut in cuts :
|
15 |
if (cut == ""):
|
16 |
continue
|
17 |
c+=1
|
18 |
if (collection[index].getSelection(cut)):
|
19 |
histos[c].Fill(bin)
|
20 |
cutLT = 0
|
21 |
while (cutLT < len (cutsLT)):
|
22 |
if (var < cutsLT[cutLT]) :
|
23 |
(nrPassed[cut])[cutLT] += 1
|
24 |
cutLT +=1
|
25 |
|
26 |
|
27 |
|
28 |
def fillHistoLowerThanCutsPassed(histos, nrPassed, cuts, var, bin) :
|
29 |
|
30 |
cut = 0
|
31 |
while (cut < len( cuts ) ):
|
32 |
if ( var < cuts[cut] ):
|
33 |
histos[cut].Fill(bin)
|
34 |
nrPassed[cut] += 1
|
35 |
cut += 1
|
36 |
|