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

Public Member Functions

 test_shared_threshold_4arg (self)
 test_separate_thresholds_5arg (self)
 test_extra_selections_7arg (self)
 test_missing_input (self)
 test_bad_argcount (self)

Detailed Description

Definition at line 12 of file EventSelectionConfigSumLeptons_unitTest.py.

Member Function Documentation

◆ test_bad_argcount()

python.EventSelectionConfigSumLeptons_unitTest.TestSumElMu.test_bad_argcount ( self)

Definition at line 35 of file EventSelectionConfigSumLeptons_unitTest.py.

35 def test_bad_argcount(self):
36 self.assertRaises(ValueError, run, "SUM_EL_N_MU_N 25000 27000 28000 >= 2", containers=ELMU)
37
38

◆ test_extra_selections_7arg()

python.EventSelectionConfigSumLeptons_unitTest.TestSumElMu.test_extra_selections_7arg ( self)

Definition at line 26 of file EventSelectionConfigSumLeptons_unitTest.py.

26 def test_extra_selections_7arg(self):
27 algs = named(run("SUM_EL_N_MU_N elsel musel 25000 27000 >= 2", containers=ELMU), "SUMNELNMU")
28 self.assertIn("elsel", prop(algs[0], "electronSelection"))
29 self.assertIn("musel", prop(algs[0], "muonSelection"))
30 self.assertEqual(prop(algs[0], "count"), 2)
31
int run(int argc, char *argv[])

◆ test_missing_input()

python.EventSelectionConfigSumLeptons_unitTest.TestSumElMu.test_missing_input ( self)

Definition at line 32 of file EventSelectionConfigSumLeptons_unitTest.py.

32 def test_missing_input(self):
33 self.assertRaises(ValueError, run, "SUM_EL_N_MU_N 25000 >= 2")
34

◆ test_separate_thresholds_5arg()

python.EventSelectionConfigSumLeptons_unitTest.TestSumElMu.test_separate_thresholds_5arg ( self)

Definition at line 21 of file EventSelectionConfigSumLeptons_unitTest.py.

21 def test_separate_thresholds_5arg(self):
22 algs = named(run("SUM_EL_N_MU_N 25000 27000 >= 2", containers=ELMU), "SUMNELNMU")
23 self.assertEqual(prop(algs[0], "minPtEl"), 25000.0)
24 self.assertEqual(prop(algs[0], "minPtMu"), 27000.0)
25

◆ test_shared_threshold_4arg()

python.EventSelectionConfigSumLeptons_unitTest.TestSumElMu.test_shared_threshold_4arg ( self)

Definition at line 13 of file EventSelectionConfigSumLeptons_unitTest.py.

13 def test_shared_threshold_4arg(self):
14 algs = named(run("SUM_EL_N_MU_N 25000 >= 2", containers=ELMU), "SUMNELNMU")
15 self.assertEqual(len(algs), 1)
16 self.assertEqual(algs[0].getType(), "CP::SumNLeptonPtSelectorAlg")
17 self.assertEqual(prop(algs[0], "minPtEl"), 25000.0)
18 self.assertEqual(prop(algs[0], "minPtMu"), 25000.0)
19 self.assertEqual(prop(algs[0], "count"), 2)
20

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