ATLAS Offline Software
Loading...
Searching...
No Matches
python.EventSelectionConfigSumLeptons_unitTest.TestSumDressedProperties Class Reference
Inheritance diagram for python.EventSelectionConfigSumLeptons_unitTest.TestSumDressedProperties:
Collaboration diagram for python.EventSelectionConfigSumLeptons_unitTest.TestSumDressedProperties:

Public Member Functions

 test_set_when_muons_are_truth (self)
 test_truth_tau_does_not_set_dressed (self)
 test_set_when_muons_are_truth_with_taus_present (self)
 test_unset_when_all_reco (self)

Detailed Description

useDressedProperties must be enabled when ANY input lepton container is a
truth container (not just the electron one).

Definition at line 64 of file EventSelectionConfigSumLeptons_unitTest.py.

Member Function Documentation

◆ test_set_when_muons_are_truth()

python.EventSelectionConfigSumLeptons_unitTest.TestSumDressedProperties.test_set_when_muons_are_truth ( self)

Definition at line 68 of file EventSelectionConfigSumLeptons_unitTest.py.

68 def test_set_when_muons_are_truth(self):
69 algs = named(run("SUM_EL_N_MU_N 25000 >= 2",
70 containers={"electrons": "AnaElectrons", "muons": "AnaTruthMuons"}), "SUMNELNMU")
71 self.assertTrue(prop(algs[0], "useDressedProperties"))
72
int run(int argc, char *argv[])

◆ test_set_when_muons_are_truth_with_taus_present()

python.EventSelectionConfigSumLeptons_unitTest.TestSumDressedProperties.test_set_when_muons_are_truth_with_taus_present ( self)

Definition at line 81 of file EventSelectionConfigSumLeptons_unitTest.py.

81 def test_set_when_muons_are_truth_with_taus_present(self):
82 algs = named(run("SUM_EL_N_MU_N_TAU_N 25000 >= 3",
83 containers={"electrons": "AnaElectrons", "muons": "AnaTruthMuons",
84 "taus": "AnaTaus"}), "SUMNLEPTONS")
85 self.assertTrue(prop(algs[0], "useDressedProperties"))
86

◆ test_truth_tau_does_not_set_dressed()

python.EventSelectionConfigSumLeptons_unitTest.TestSumDressedProperties.test_truth_tau_does_not_set_dressed ( self)

Definition at line 73 of file EventSelectionConfigSumLeptons_unitTest.py.

73 def test_truth_tau_does_not_set_dressed(self):
74 # dressed kinematics exist only for truth electrons and muons,
75 # so a truth tau must NOT enable them.
76 algs = named(run("SUM_EL_N_MU_N_TAU_N 25000 >= 3",
77 containers={"electrons": "AnaElectrons", "muons": "AnaMuons",
78 "taus": "AnaTruthTaus"}), "SUMNLEPTONS")
79 self.assertFalse(prop(algs[0], "useDressedProperties", False))
80

◆ test_unset_when_all_reco()

python.EventSelectionConfigSumLeptons_unitTest.TestSumDressedProperties.test_unset_when_all_reco ( self)

Definition at line 87 of file EventSelectionConfigSumLeptons_unitTest.py.

87 def test_unset_when_all_reco(self):
88 algs = named(run("SUM_EL_N_MU_N 25000 >= 2", containers=ELMU), "SUMNELNMU")
89 self.assertFalse(prop(algs[0], "useDressedProperties", False))
90
91

The documentation for this class was generated from the following file: