ATLAS Offline Software
Trigger
TrigMonitoring
TrigMuonMonitoring
python
TrigMuonTruthMonTransforms.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
# Function to divide histograms for muon efficiency monitoring
3
4
def
efficiency
(inputs):
5
assert
len(inputs) == 1
# one match at a time
6
assert
len(inputs[0][1]) == 2
# pair of truth and matched-to-truth hists
7
for
_
in
inputs:
8
transform = _[1][1].Clone()
# cloning retains binning and titles for each variable
9
transform.Divide(_[1][1],_[1][0],1,1,
"B"
)
# denominator is the first argument, numerator is the second argument
10
return
[transform]
python.TrigMuonTruthMonTransforms.efficiency
def efficiency(inputs)
Definition:
TrigMuonTruthMonTransforms.py:4
Generated on Sun Dec 22 2024 21:21:14 for ATLAS Offline Software by
1.8.18