Changes in examples/Example7.py [b03c0d0:f8e61b2] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/Example7.py
rb03c0d0 rf8e61b2 33 33 34 34 # Get pointers to branches used in this analysis 35 branchJet 35 branchJet = treeReader.UseBranch("JetPUPPITight") 36 36 branchElectron = treeReader.UseBranch("ElectronMedium") 37 branchWeight = treeReader.UseBranch("Weight") 38 branchEvent = treeReader.UseBranch("Event") 37 branchWeight = treeReader.UseBranch("Weight") 39 38 40 39 # Book histograms … … 47 46 treeReader.ReadEntry(entry) 48 47 49 ## main MC event weight 50 w = branchEvent[0].Weight 48 w = 1.0 49 ## read MC event weight 50 if branchWeight.GetEntries() > 0: 51 weight = branchWeight.At(0).Weight 51 52 52 ## read lhe event weight53 for weight in branchWeight:54 lhe_weight = weight.Weight55 ## do stuff ...56 ## print lhe_weight57 58 53 # If event contains at least 1 jet 59 54 if branchJet.GetEntries() > 0: … … 81 76 eta = abs(electron.Eta) 82 77 83 ## looseCut = 0.3, mediumCut = 0.2, tightCut = 0.184 78 IsoCut = 0.2 85 79 IsoOk = electron.IsolationVar < IsoCut
Note:
See TracChangeset
for help on using the changeset viewer.