ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/lucieg/macros/fillHistoCutsPassed.py
Revision: 1.3
Committed: Tue Jul 19 13:48:56 2011 UTC (13 years, 9 months ago) by lucieg
Content type: text/x-python
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +17 -0 lines
Log Message:
resync

File Contents

# Content
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