ATLAS Offline Software
python
TrigMuonTruthMonTransforms
Functions
python.TrigMuonTruthMonTransforms Namespace Reference
Functions
def
efficiency
(inputs)
Function Documentation
◆
efficiency()
def python.TrigMuonTruthMonTransforms.efficiency
(
inputs
)
Definition at line
4
of file
TrigMuonTruthMonTransforms.py
.
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]
efficiency
void efficiency(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")
Definition:
dependence.cxx:128
Generated on Mon Dec 23 2024 22:07:32 for ATLAS Offline Software by
1.8.18