ATLAS Offline Software
Functions | Variables
TLorentzVectorFactoryTest.cxx File Reference
#include "CxxUtils/checker_macros.h"
#include "../src/TLorentzVectorFactory.h"
#include "gtest/gtest.h"
Include dependency graph for TLorentzVectorFactoryTest.cxx:

Go to the source code of this file.

Functions

 TEST (TLorentzVectoryTest, positiveEta)
 
 TEST (TLorentzVectoryTest, negativeEta)
 
 TEST (TLorentzVectoryTest, vals0)
 
 TEST (TLorentzVectoryTest, thowsOnBadEt)
 

Variables

 ATLAS_NO_CHECK_FILE_THREAD_SAFETY
 

Function Documentation

◆ TEST() [1/4]

TEST ( TLorentzVectoryTest  ,
negativeEta   
)

Definition at line 20 of file TLorentzVectorFactoryTest.cxx.

20  {
21  double eta = -7.0;
22  double et = 1.;
23  double eps = 0.00001;
24  TLorentzVector tl = TLorentzVectorFactory().make(eta, et);
25  EXPECT_NEAR(tl.Eta(), eta, eps);
26  EXPECT_NEAR(tl.Et(), et, eps);
27 }

◆ TEST() [2/4]

TEST ( TLorentzVectoryTest  ,
positiveEta   
)

Definition at line 11 of file TLorentzVectorFactoryTest.cxx.

11  {
12  double eta = 2.1;
13  double et = 101.;
14  double eps = 0.00001;
15  TLorentzVector tl = TLorentzVectorFactory().make(eta, et);
16  EXPECT_NEAR(tl.Eta(), eta, eps);
17  EXPECT_NEAR(tl.Et(), et, eps);
18 }

◆ TEST() [3/4]

TEST ( TLorentzVectoryTest  ,
thowsOnBadEt   
)

Definition at line 39 of file TLorentzVectorFactoryTest.cxx.

39  {
40  double eta = -7.0;
41  double et = 0.;
42  EXPECT_THROW(TLorentzVectorFactory().make(eta, et), std::out_of_range);
43  et = -1.;
44  EXPECT_THROW(TLorentzVectorFactory().make(eta, et), std::out_of_range);
45 }

◆ TEST() [4/4]

TEST ( TLorentzVectoryTest  ,
vals0   
)

Definition at line 30 of file TLorentzVectorFactoryTest.cxx.

30  {
31  double eta = 0.5;
32  double et = 100.;
33  double eps = 0.00001;
34  TLorentzVector tl = TLorentzVectorFactory().make(eta, et);
35  EXPECT_NEAR(tl.Eta(), eta, eps);
36  EXPECT_NEAR(tl.Et(), et, eps);
37 }

Variable Documentation

◆ ATLAS_NO_CHECK_FILE_THREAD_SAFETY

ATLAS_NO_CHECK_FILE_THREAD_SAFETY

Definition at line 6 of file TLorentzVectorFactoryTest.cxx.

TLorentzVectorFactory
Definition: TLorentzVectorFactory.h:13
et
Extra patterns decribing particle interation process.
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
TLorentzVectorFactory::make
virtual TLorentzVector make(double eta, double et) const override
Definition: TLorentzVectorFactory.h:15
dqt_zlumi_alleff_HIST.tl
tl
Definition: dqt_zlumi_alleff_HIST.py:73