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

Public Member Functions

 test_minimal (self)
 test_veto (self)
 test_extra_selection (self)
 test_extra_selection_and_veto (self)
 test_wrong_argcount (self)

Detailed Description

Definition at line 26 of file EventSelectionConfigMass_unitTest.py.

Member Function Documentation

◆ test_extra_selection()

python.EventSelectionConfigMass_unitTest.TestLJetMassWindow.test_extra_selection ( self)

Definition at line 40 of file EventSelectionConfigMass_unitTest.py.

40 def test_extra_selection(self):
41 algs = named(run("LJETMASSWINDOW_N topjet 60000 100000 >= 1", containers=LRJ), "NLJETMASSWINDOW")
42 self.assertIn("topjet", prop(algs[0], "ljetSelection"))
43 self.assertEqual(prop(algs[0], "lowMass"), 60000.0)
44
int run(int argc, char *argv[])

◆ test_extra_selection_and_veto()

python.EventSelectionConfigMass_unitTest.TestLJetMassWindow.test_extra_selection_and_veto ( self)

Definition at line 45 of file EventSelectionConfigMass_unitTest.py.

45 def test_extra_selection_and_veto(self):
46 algs = named(run("LJETMASSWINDOW_N topjet 60000 100000 >= 1 veto", containers=LRJ), "NLJETMASSWINDOW")
47 self.assertIn("topjet", prop(algs[0], "ljetSelection"))
48 self.assertTrue(prop(algs[0], "vetoMode"))
49

◆ test_minimal()

python.EventSelectionConfigMass_unitTest.TestLJetMassWindow.test_minimal ( self)

Definition at line 27 of file EventSelectionConfigMass_unitTest.py.

27 def test_minimal(self):
28 algs = named(run("LJETMASSWINDOW_N 60000 100000 >= 1", containers=LRJ), "NLJETMASSWINDOW")
29 self.assertEqual(len(algs), 1)
30 self.assertEqual(algs[0].getType(), "CP::NLargeRJetMassWindowSelectorAlg")
31 self.assertEqual(prop(algs[0], "lowMass"), 60000.0)
32 self.assertEqual(prop(algs[0], "highMass"), 100000.0)
33 self.assertEqual(prop(algs[0], "count"), 1)
34 self.assertFalse(prop(algs[0], "vetoMode", False))
35

◆ test_veto()

python.EventSelectionConfigMass_unitTest.TestLJetMassWindow.test_veto ( self)

Definition at line 36 of file EventSelectionConfigMass_unitTest.py.

36 def test_veto(self):
37 algs = named(run("LJETMASSWINDOW_N 60000 100000 >= 1 veto", containers=LRJ), "NLJETMASSWINDOW")
38 self.assertTrue(prop(algs[0], "vetoMode"))
39

◆ test_wrong_argcount()

python.EventSelectionConfigMass_unitTest.TestLJetMassWindow.test_wrong_argcount ( self)

Definition at line 50 of file EventSelectionConfigMass_unitTest.py.

50 def test_wrong_argcount(self):
51 self.assertRaises(ValueError, run, "LJETMASSWINDOW_N 60000 >= 1", containers=LRJ)
52
53

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