ATLAS Offline Software
Loading...
Searching...
No Matches
TLorentzVectorFactory Class Reference

#include <TLorentzVectorFactory.h>

Inheritance diagram for TLorentzVectorFactory:
Collaboration diagram for TLorentzVectorFactory:

Public Member Functions

virtual TLorentzVector make (double eta, double et) const override

Detailed Description

Definition at line 13 of file TLorentzVectorFactory.h.

Member Function Documentation

◆ make()

virtual TLorentzVector TLorentzVectorFactory::make ( double eta,
double et ) const
inlineoverridevirtual

Implements ITLorentzVectorFactory.

Definition at line 15 of file TLorentzVectorFactory.h.

15 {
16 if(et <= 0.) {throw std::out_of_range("Et < 0");}
17
18 double ttOn2 = std::exp(-eta); //tan(theta/2)
19 double tt = 2.*ttOn2/(1.- ttOn2*ttOn2); // tan(theta)
20 double ez = et/tt;
21 TLorentzVector tl;
22 tl.SetXYZM(et, 0., ez, 0.);
23
24 return tl;
25 }
Scalar eta() const
pseudorapidity method
float et(const xAOD::jFexSRJetRoI *j)

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