#include <TLorentzVectorFactoryEtaE.h>
|
| virtual TLorentzVector | make (double eta, double e) const override |
Definition at line 13 of file TLorentzVectorFactoryEtaE.h.
◆ make()
| virtual TLorentzVector TLorentzVectorFactoryEtaE::make |
( |
double | eta, |
|
|
double | e ) const |
|
inlineoverridevirtual |
Implements ITLorentzVectorFactory.
Definition at line 15 of file TLorentzVectorFactoryEtaE.h.
15 {
16 if(e <= 0.) {throw std::out_of_range("E < 0");}
17
18 double ttOn2 = std::exp(-
eta);
19 double tt = 2.*ttOn2/(1.- ttOn2*ttOn2);
20 double cost = sqrt(1./(1+tt*tt));
23 tl.SetXYZM(0., e*sint, e*
cost, 0.);
24
26 }
Scalar eta() const
pseudorapidity method
int cost(std::vector< std::string > &files, node &n, const std::string &directory="", bool deleteref=false, bool relocate=false)
The documentation for this class was generated from the following file: