ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/lucieg/macros/fillHistoCutsPassed.py
Revision: 1.2
Committed: Thu Jul 14 09:01:39 2011 UTC (13 years, 9 months ago) by lucieg
Content type: text/x-python
Branch: MAIN
Changes since 1.1: +12 -4 lines
Log Message:
resync

File Contents

# User Rev Content
1 lucieg 1.1
2 lucieg 1.2 def fillHistoPredefCutsPassed(histos, nrPassed, cuts, collection, index, bin) :
3 lucieg 1.1
4     cut = 1
5     while (cut < len( histos ) ):
6     if (collection[index].getSelection(cuts[cut])):
7 lucieg 1.2 histos[cut].Fill(bin)
8     nrPassed[cut] += 1
9     cut +=1
10    
11     def fillHistoLowerThanCutsPassed(histos, nrPassed, cuts, var, bin) :
12    
13     cut = 0
14     while (cut < len( cuts ) ):
15     if ( var < cuts[cut] ):
16 lucieg 1.1 histos[cut].Fill(bin)
17     nrPassed[cut] += 1
18 lucieg 1.2 cut += 1
19