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

Public Member Functions

 test_metmwt (self)
 test_missing_met (self)
 test_missing_leptons (self)

Detailed Description

Definition at line 41 of file EventSelectionConfigMetMwt_unitTest.py.

Member Function Documentation

◆ test_metmwt()

python.EventSelectionConfigMetMwt_unitTest.TestMETMWT.test_metmwt ( self)

Definition at line 42 of file EventSelectionConfigMetMwt_unitTest.py.

42 def test_metmwt(self):
43 algs = named(run("MET+MWT > 60000",
44 containers={"met": "AnaMET", "electrons": "AnaElectrons", "muons": "AnaMuons"}), "METMWT")
45 self.assertEqual(algs[0].getType(), "CP::MissingETPlusTransverseMassSelectorAlg")
46 self.assertEqual(prop(algs[0], "sign"), "GT")
47 self.assertEqual(prop(algs[0], "refMETMWT"), 60000.0)
48
int run(int argc, char *argv[])

◆ test_missing_leptons()

python.EventSelectionConfigMetMwt_unitTest.TestMETMWT.test_missing_leptons ( self)

Definition at line 52 of file EventSelectionConfigMetMwt_unitTest.py.

52 def test_missing_leptons(self):
53 self.assertRaises(ValueError, run, "MET+MWT > 60000", containers={"met": "AnaMET"})
54
55

◆ test_missing_met()

python.EventSelectionConfigMetMwt_unitTest.TestMETMWT.test_missing_met ( self)

Definition at line 49 of file EventSelectionConfigMetMwt_unitTest.py.

49 def test_missing_met(self):
50 self.assertRaises(ValueError, run, "MET+MWT > 60000", containers={"electrons": "AnaElectrons"})
51

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