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

Public Member Functions

 test_minimal (self)
 test_extra_selection (self)

Detailed Description

Definition at line 12 of file EventSelectionConfigMass_unitTest.py.

Member Function Documentation

◆ test_extra_selection()

python.EventSelectionConfigMass_unitTest.TestLJetMass.test_extra_selection ( self)

Definition at line 21 of file EventSelectionConfigMass_unitTest.py.

21 def test_extra_selection(self):
22 algs = named(run("LJETMASS_N topjet 50000 >= 1", containers=LRJ), "NLJETMASS")
23 self.assertIn("topjet", prop(algs[0], "objectSelection"))
24
25
int run(int argc, char *argv[])

◆ test_minimal()

python.EventSelectionConfigMass_unitTest.TestLJetMass.test_minimal ( self)

Definition at line 13 of file EventSelectionConfigMass_unitTest.py.

13 def test_minimal(self):
14 algs = named(run("LJETMASS_N 50000 >= 1", containers=LRJ), "NLJETMASS")
15 self.assertEqual(len(algs), 1)
16 self.assertEqual(algs[0].getType(), "CP::NObjectMassSelectorAlg")
17 self.assertEqual(prop(algs[0], "minMass"), 50000.0)
18 self.assertEqual(prop(algs[0], "sign"), "GE")
19 self.assertEqual(prop(algs[0], "count"), 1)
20

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