ATLAS Offline Software
TLorentzVectorAsIJet.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGHLTJETHYPOUNITTEST_TLORENTZVECTORASIJET_H
6 #define TRIGHLTJETHYPOUNITTEST_TLORENTZVECTORASIJET_H
7 
9 #include <TLorentzVector.h>
10 #include "xAODJet/Jet.h"
11 
13  public:
14  TLorentzVectorAsIJet(const TLorentzVector& tl)
15  :m_pt(tl.Et()),
16  m_phi(tl.Phi()),
17  m_m(tl.M()),
18  m_e(tl.E()),
19  m_et(tl.Et()),
20  // m_eta(tl.Rapidity()),
21  m_eta(tl.Eta()),
22  m_tl(tl),
23  m_position(0){
24  }
25 
26  virtual double pt() const override {return m_pt;}
27  virtual double eta() const override {return m_eta;}
28  virtual double phi() const override {return m_phi;}
29  virtual double m() const override {return m_m;}
30  virtual double e() const override {return m_e;}
31  virtual double et() const override {return m_et;}
32  virtual double rapidity() const override {return m_eta;}
33  virtual TLorentzVector p4() const override {return m_tl;}
34  virtual unsigned int position() const override {return m_position;}
35  virtual bool getAttribute(const std::string&, float&) const override {return true;}
36  virtual bool getAttribute(const std::string&, bool&) const override {return true;}
37  virtual std::string toString() const override {return "TLorentzVectorAsIJet";}
38  virtual std::optional<const xAOD::Jet*> xAODJet() const override {
39  return std::optional<const xAOD::Jet*>();
40  }
41 
42  private:
43  double m_pt;
44  double m_phi;
45  double m_m;
46  double m_e;
47  double m_et;
48  double m_eta;
49  TLorentzVector m_tl;
50  unsigned int m_position;
51 };
52 #endif
TLorentzVectorAsIJet::xAODJet
virtual std::optional< const xAOD::Jet * > xAODJet() const override
Definition: TLorentzVectorAsIJet.h:38
TLorentzVectorAsIJet::toString
virtual std::string toString() const override
Definition: TLorentzVectorAsIJet.h:37
Jet.h
TLorentzVectorAsIJet::getAttribute
virtual bool getAttribute(const std::string &, float &) const override
Definition: TLorentzVectorAsIJet.h:35
IJet.h
Phi
@ Phi
Definition: RPCdef.h:8
TLorentzVectorAsIJet::m_position
unsigned int m_position
Definition: TLorentzVectorAsIJet.h:50
TLorentzVectorAsIJet::m_eta
double m_eta
Definition: TLorentzVectorAsIJet.h:48
TLorentzVectorAsIJet::m
virtual double m() const override
Definition: TLorentzVectorAsIJet.h:29
TLorentzVectorAsIJet::m_tl
TLorentzVector m_tl
Definition: TLorentzVectorAsIJet.h:49
TLorentzVectorAsIJet::m_phi
double m_phi
Definition: TLorentzVectorAsIJet.h:44
TLorentzVectorAsIJet::m_m
double m_m
Definition: TLorentzVectorAsIJet.h:45
TLorentzVectorAsIJet::TLorentzVectorAsIJet
TLorentzVectorAsIJet(const TLorentzVector &tl)
Definition: TLorentzVectorAsIJet.h:14
TLorentzVectorAsIJet::position
virtual unsigned int position() const override
Definition: TLorentzVectorAsIJet.h:34
HypoJet::IJet
Definition: IJet.h:16
TLorentzVectorAsIJet::getAttribute
virtual bool getAttribute(const std::string &, bool &) const override
Definition: TLorentzVectorAsIJet.h:36
TLorentzVectorAsIJet::pt
virtual double pt() const override
Definition: TLorentzVectorAsIJet.h:26
TLorentzVectorAsIJet::p4
virtual TLorentzVector p4() const override
Definition: TLorentzVectorAsIJet.h:33
TLorentzVectorAsIJet::rapidity
virtual double rapidity() const override
Definition: TLorentzVectorAsIJet.h:32
TLorentzVectorAsIJet::m_et
double m_et
Definition: TLorentzVectorAsIJet.h:47
TLorentzVectorAsIJet::eta
virtual double eta() const override
Definition: TLorentzVectorAsIJet.h:27
VP1PartSpect::E
@ E
Definition: VP1PartSpectFlags.h:21
TLorentzVectorAsIJet
Definition: TLorentzVectorAsIJet.h:12
TLorentzVectorAsIJet::et
virtual double et() const override
Definition: TLorentzVectorAsIJet.h:31
TLorentzVectorAsIJet::e
virtual double e() const override
Definition: TLorentzVectorAsIJet.h:30
dqt_zlumi_alleff_HIST.tl
tl
Definition: dqt_zlumi_alleff_HIST.py:73
TLorentzVectorAsIJet::m_pt
double m_pt
Definition: TLorentzVectorAsIJet.h:43
TLorentzVectorAsIJet::m_e
double m_e
Definition: TLorentzVectorAsIJet.h:46
TLorentzVectorAsIJet::phi
virtual double phi() const override
Definition: TLorentzVectorAsIJet.h:28
Eta
@ Eta
Definition: RPCdef.h:8