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

Public Member Functions

 test_chains_sequentially (self)
 test_seeded_by_preselection_option (self)

Detailed Description

Definition at line 10 of file EventSelectionConfigChaining_unitTest.py.

Member Function Documentation

◆ test_chains_sequentially()

python.EventSelectionConfigChaining_unitTest.TestPreselectionChaining.test_chains_sequentially ( self)

Definition at line 11 of file EventSelectionConfigChaining_unitTest.py.

11 def test_chains_sequentially(self):
12 algs = selectors(run("EL_N 25000 >= 1\nJET_N 30000 >= 2\nMET > 30000",
13 containers={"electrons": "AnaElectrons", "jets": "AnaJets", "met": "AnaMET"}))
14 el = named(algs, "NEL")[0]
15 jet = named(algs, "NJET")[0]
16 met = named(algs, "MET")[0]
17 self.assertEqual(prop(el, "eventPreselection", ""), "")
18 self.assertIn("NEL_1", prop(jet, "eventPreselection"))
19 self.assertIn("NJET_2", prop(met, "eventPreselection"))
20
int run(int argc, char *argv[])

◆ test_seeded_by_preselection_option()

python.EventSelectionConfigChaining_unitTest.TestPreselectionChaining.test_seeded_by_preselection_option ( self)

Definition at line 21 of file EventSelectionConfigChaining_unitTest.py.

21 def test_seeded_by_preselection_option(self):
22 algs = named(run("JET_N 30000 >= 2", containers={"jets": "AnaJets"},
23 preselection="pass_common_%SYS%"), "NJET")
24 self.assertIn("pass_common", prop(algs[0], "eventPreselection"))
25
26

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