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

Public Member Functions

 test_routing (self)
 test_btag_not_routed_as_plain_jet (self)
 test_sum_tau_not_routed_as_sum (self)
 test_metmwt_not_routed_as_met_or_mwt (self)

Detailed Description

Definition at line 40 of file EventSelectionConfigDispatch_unitTest.py.

Member Function Documentation

◆ test_btag_not_routed_as_plain_jet()

python.EventSelectionConfigDispatch_unitTest.TestRouting.test_btag_not_routed_as_plain_jet ( self)

Definition at line 49 of file EventSelectionConfigDispatch_unitTest.py.

49 def test_btag_not_routed_as_plain_jet(self):
50 algs = run("JET_N_BTAG >= 2", containers=ALL, btagDecoration="btag")
51 self.assertTrue(named(algs, "NBJET"))
52 self.assertFalse([a for a in algs if "NJET_" in a.getName()])
53
int run(int argc, char *argv[])

◆ test_metmwt_not_routed_as_met_or_mwt()

python.EventSelectionConfigDispatch_unitTest.TestRouting.test_metmwt_not_routed_as_met_or_mwt ( self)

Definition at line 57 of file EventSelectionConfigDispatch_unitTest.py.

57 def test_metmwt_not_routed_as_met_or_mwt(self):
58 sel = selectors(run("MET+MWT > 60000", containers=ALL))
59 self.assertEqual(sel[0].getType(), "CP::MissingETPlusTransverseMassSelectorAlg")
60
61

◆ test_routing()

python.EventSelectionConfigDispatch_unitTest.TestRouting.test_routing ( self)

Definition at line 41 of file EventSelectionConfigDispatch_unitTest.py.

41 def test_routing(self):
42 for line, alg_type, name_sub in ROUTING:
43 with self.subTest(line=line):
44 sel = selectors(run(line, containers=ALL, btagDecoration="btag"))
45 self.assertEqual(len(sel), 1, f"{line} -> {len(sel)} selectors")
46 self.assertEqual(sel[0].getType(), alg_type)
47 self.assertIn(name_sub, sel[0].getName())
48

◆ test_sum_tau_not_routed_as_sum()

python.EventSelectionConfigDispatch_unitTest.TestRouting.test_sum_tau_not_routed_as_sum ( self)

Definition at line 54 of file EventSelectionConfigDispatch_unitTest.py.

54 def test_sum_tau_not_routed_as_sum(self):
55 self.assertTrue(named(run("SUM_EL_N_MU_N_TAU_N 25000 >= 2", containers=ALL), "SUMNLEPTONS"))
56

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