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

Public Member Functions

 test_ossf (self)
 test_veto (self)
 test_truth_routing (self)

Detailed Description

Definition at line 37 of file EventSelectionConfigDilepton_unitTest.py.

Member Function Documentation

◆ test_ossf()

python.EventSelectionConfigDilepton_unitTest.TestMLLOSSF.test_ossf ( self)

Definition at line 38 of file EventSelectionConfigDilepton_unitTest.py.

38 def test_ossf(self):
39 algs = named(run("MLL_OSSF 80000 100000", containers=ELMU), "MLL_OSSF")
40 self.assertEqual(algs[0].getType(), "CP::DileptonOSSFInvariantMassWindowSelectorAlg")
41 self.assertEqual(prop(algs[0], "lowMll"), 80000.0)
42 self.assertEqual(prop(algs[0], "highMll"), 100000.0)
43 self.assertFalse(prop(algs[0], "vetoMode", False))
44
int run(int argc, char *argv[])

◆ test_truth_routing()

python.EventSelectionConfigDilepton_unitTest.TestMLLOSSF.test_truth_routing ( self)

Definition at line 49 of file EventSelectionConfigDilepton_unitTest.py.

49 def test_truth_routing(self):
50 algs = named(run("MLL_OSSF 80000 100000",
51 containers={"electrons": "AnaTruthElectrons", "muons": "AnaTruthMuons"}), "MLL_OSSF")
52 # truth containers must populate the truth* handles, not the reco ones
53 self.assertNotEqual(prop(algs[0], "truthElectrons", ""), "")
54 self.assertNotEqual(prop(algs[0], "truthMuons", ""), "")
55
56

◆ test_veto()

python.EventSelectionConfigDilepton_unitTest.TestMLLOSSF.test_veto ( self)

Definition at line 45 of file EventSelectionConfigDilepton_unitTest.py.

45 def test_veto(self):
46 algs = named(run("MLL_OSSF 80000 100000 veto", containers=ELMU), "MLL_OSSF")
47 self.assertTrue(prop(algs[0], "vetoMode"))
48

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