|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGHLTJETHYPOUNITTESTS_MOCKJETWITHLORENTZVECTOR_H
6 #define TRIGHLTJETHYPOUNITTESTS_MOCKJETWITHLORENTZVECTOR_H
9 #include "gtest/gtest.h"
10 #include "gmock/gmock.h"
11 #include <TLorentzVector.h>
13 using ::testing::Invoke;
14 using ::testing::Return;
16 using ::testing::SetArgReferee;
17 using ::testing::AnyNumber;
26 .WillByDefault(Invoke(&
m_lv,
27 static_cast<double(TLorentzVector::*)()
const>
28 (&TLorentzVector::Et)));
38 virtual TLorentzVector
p4()
const override {
return m_lv;}
39 virtual std::string
toString()
const override {
52 virtual std::optional<const xAOD::Jet*>
xAODJet()
const override{
53 return std::optional<const xAOD::Jet*> ();
MOCK_CONST_METHOD0(e, double())
Extra patterns decribing particle interation process.
virtual std::optional< const xAOD::Jet * > xAODJet() const override
MOCK_CONST_METHOD0(rapidity, double())
virtual double et() const =0
MOCK_CONST_METHOD0(pt, double())
virtual double pt() const =0
virtual unsigned int position() const =0
MOCK_CONST_METHOD2(getAttribute, bool(const std::string &, float &))
bool const RAWDATA *ch2 const
MOCK_CONST_METHOD0(phi, double())
virtual double eta() const =0
virtual std::string toString() const override
virtual TLorentzVector p4() const override
MOCK_CONST_METHOD0(m, double())
virtual double m() const =0
MOCK_CONST_METHOD0(et, double())
MockJetWithLorentzVector(const TLorentzVector &lv)
virtual double e() const =0
std::string to_string(const DetectorType &type)
MOCK_CONST_METHOD0(position, unsigned int())
virtual double rapidity() const =0
MOCK_CONST_METHOD0(eta, double())
virtual double phi() const =0
virtual bool getAttribute(const std::string &name, float &) const =0