ATLAS Offline Software
Trigger
TrigHypothesis
TrigHLTJetHypoUnitTests
src
TLorentzVectorFactory.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRIGHLTJETHYPOUNITTESTS_LORENTZVECTORFACTORY_H
6
#define TRIGHLTJETHYPOUNITTESTS_LORENTZVECTORFACTORY_H
7
8
#include "
./ITLorentzVectorFactory.h
"
9
#include <TLorentzVector.h>
10
#include <cmath>
11
#include <stdexcept>
12
13
class
TLorentzVectorFactory
:
public
ITLorentzVectorFactory
{
14
public
:
15
virtual
TLorentzVector
make
(
double
eta
,
double
et
)
const override
{
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
}
26
};
27
#endif
TLorentzVectorFactory
Definition:
TLorentzVectorFactory.h:13
et
Extra patterns decribing particle interation process.
eta
Scalar eta() const
pseudorapidity method
Definition:
AmgMatrixBasePlugin.h:83
ITLorentzVectorFactory
Definition:
ITLorentzVectorFactory.h:10
drawFromPickle.exp
exp
Definition:
drawFromPickle.py:36
ITLorentzVectorFactory.h
TLorentzVectorFactory::make
virtual TLorentzVector make(double eta, double et) const override
Definition:
TLorentzVectorFactory.h:15
dqt_zlumi_alleff_HIST.tl
tl
Definition:
dqt_zlumi_alleff_HIST.py:73
TileDCSDataPlotter.tt
tt
Definition:
TileDCSDataPlotter.py:874
Generated on Thu Nov 7 2024 21:28:37 for ATLAS Offline Software by
1.8.18