ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
MockJetWithLorentzVector Class Referenceabstract

#include <MockJetWithLorentzVector.h>

Inheritance diagram for MockJetWithLorentzVector:
Collaboration diagram for MockJetWithLorentzVector:

Public Member Functions

 MockJetWithLorentzVector (const TLorentzVector &lv)
 
 MOCK_CONST_METHOD0 (pt, double())
 
 MOCK_CONST_METHOD0 (eta, double())
 
 MOCK_CONST_METHOD0 (phi, double())
 
 MOCK_CONST_METHOD0 (m, double())
 
 MOCK_CONST_METHOD0 (e, double())
 
 MOCK_CONST_METHOD0 (et, double())
 
 MOCK_CONST_METHOD0 (rapidity, double())
 
virtual TLorentzVector p4 () const override
 
virtual std::string toString () const override
 
 MOCK_CONST_METHOD0 (position, unsigned int())
 
 MOCK_CONST_METHOD2 (getAttribute, bool(const std::string &, float &))
 
virtual std::optional< const xAOD::Jet * > xAODJet () const override
 
virtual double pt () const =0
 
virtual double eta () const =0
 
virtual double phi () const =0
 
virtual double m () const =0
 
virtual double e () const =0
 
virtual double et () const =0
 
virtual double rapidity () const =0
 
virtual unsigned int position () const =0
 
virtual bool getAttribute (const std::string &name, float &) const =0
 
virtual bool getAttribute (const std::string &name, bool &) const =0
 

Private Attributes

TLorentzVector m_lv
 

Detailed Description

Definition at line 19 of file MockJetWithLorentzVector.h.

Constructor & Destructor Documentation

◆ MockJetWithLorentzVector()

MockJetWithLorentzVector::MockJetWithLorentzVector ( const TLorentzVector &  lv)
inline

Definition at line 22 of file MockJetWithLorentzVector.h.

22  :m_lv{lv} {
23  ON_CALL(*this, eta())
24  .WillByDefault(Invoke(&m_lv, &TLorentzVector::Eta));
25  ON_CALL(*this, et())
26  .WillByDefault(Invoke(&m_lv,
27  static_cast<double(TLorentzVector::*)() const>
28  (&TLorentzVector::Et)));
29  }

Member Function Documentation

◆ e()

virtual double HypoJet::IJet::e ( ) const
pure virtualinherited

◆ et()

virtual double HypoJet::IJet::et ( ) const
pure virtualinherited

◆ eta()

virtual double HypoJet::IJet::eta ( ) const
pure virtualinherited

◆ getAttribute() [1/2]

virtual bool HypoJet::IJet::getAttribute ( const std::string &  name,
bool &   
) const
pure virtualinherited

◆ getAttribute() [2/2]

virtual bool HypoJet::IJet::getAttribute ( const std::string &  name,
float &   
) const
pure virtualinherited

◆ m()

virtual double HypoJet::IJet::m ( ) const
pure virtualinherited

◆ MOCK_CONST_METHOD0() [1/8]

MockJetWithLorentzVector::MOCK_CONST_METHOD0 ( e  ,
double()   
)

◆ MOCK_CONST_METHOD0() [2/8]

MockJetWithLorentzVector::MOCK_CONST_METHOD0 ( et  ,
double()   
)

◆ MOCK_CONST_METHOD0() [3/8]

MockJetWithLorentzVector::MOCK_CONST_METHOD0 ( eta  ,
double()   
)

◆ MOCK_CONST_METHOD0() [4/8]

MockJetWithLorentzVector::MOCK_CONST_METHOD0 ( m  ,
double()   
)

◆ MOCK_CONST_METHOD0() [5/8]

MockJetWithLorentzVector::MOCK_CONST_METHOD0 ( phi  ,
double()   
)

◆ MOCK_CONST_METHOD0() [6/8]

MockJetWithLorentzVector::MOCK_CONST_METHOD0 ( position  ,
unsigned   int() 
)

◆ MOCK_CONST_METHOD0() [7/8]

MockJetWithLorentzVector::MOCK_CONST_METHOD0 ( pt  ,
double()   
)

◆ MOCK_CONST_METHOD0() [8/8]

MockJetWithLorentzVector::MOCK_CONST_METHOD0 ( rapidity  ,
double()   
)

◆ MOCK_CONST_METHOD2()

MockJetWithLorentzVector::MOCK_CONST_METHOD2 ( getAttribute  ,
bool(const std::string &, float &)   
)

◆ p4()

virtual TLorentzVector MockJetWithLorentzVector::p4 ( ) const
inlineoverridevirtual

Implements HypoJet::IJet.

Definition at line 38 of file MockJetWithLorentzVector.h.

38 {return m_lv;}

◆ phi()

virtual double HypoJet::IJet::phi ( ) const
pure virtualinherited

◆ position()

virtual unsigned int HypoJet::IJet::position ( ) const
pure virtualinherited

◆ pt()

virtual double HypoJet::IJet::pt ( ) const
pure virtualinherited

◆ rapidity()

virtual double HypoJet::IJet::rapidity ( ) const
pure virtualinherited

◆ toString()

virtual std::string MockJetWithLorentzVector::toString ( ) const
inlineoverridevirtual

Implements HypoJet::IJet.

Definition at line 39 of file MockJetWithLorentzVector.h.

39  {
40  double etav = eta();
41  double etv = et();
42  std::string s = "et: " + std::to_string(etv) +
43  " eta: " + std::to_string(etav);
44  return s;
45  }

◆ xAODJet()

virtual std::optional<const xAOD::Jet*> MockJetWithLorentzVector::xAODJet ( ) const
inlineoverridevirtual

Implements HypoJet::IJet.

Definition at line 52 of file MockJetWithLorentzVector.h.

52  {
53  return std::optional<const xAOD::Jet*> ();
54  }

Member Data Documentation

◆ m_lv

TLorentzVector MockJetWithLorentzVector::m_lv
private

Definition at line 56 of file MockJetWithLorentzVector.h.


The documentation for this class was generated from the following file:
MockJetWithLorentzVector::m_lv
TLorentzVector m_lv
Definition: MockJetWithLorentzVector.h:56
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
HypoJet::IJet::et
virtual double et() const =0
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
HypoJet::IJet::eta
virtual double eta() const =0
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
Eta
@ Eta
Definition: RPCdef.h:8