ATLAS Offline Software
Trigger
TrigHypothesis
TrigHLTJetHypoUnitTests
src
makeHypoJets.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
./makeHypoJets.h
"
6
#include "
./TLorentzVectorFactory.h
"
7
#include "
./TLorentzVectorAsIJet.h
"
8
9
10
11
HypoJetVector
makeHypoJets
(
const
std::vector<double>&
etas
){
12
13
HypoJetVector
jets
;
14
15
TLorentzVectorFactory
factory;
16
17
auto
make_jet
= [&factory](
double
eta
){
18
return
std::shared_ptr<const HypoJet::IJet>(
new
TLorentzVectorAsIJet
(factory.
make
(
eta
, 10.)));
19
};
20
21
std::transform
(
etas
.begin(),
22
etas
.end(),
23
std::back_inserter(
jets
),
24
make_jet
);
25
26
return
jets
;
27
}
28
29
TLorentzVectorFactory
Definition:
TLorentzVectorFactory.h:13
TLorentzVectorFactory.h
makeHypoJets
HypoJetVector makeHypoJets(const std::vector< double > &etas)
Definition:
makeHypoJets.cxx:11
make_jet
HypoJetVector::value_type make_jet(double eta, double pt)
Definition:
RangeFilterTest.cxx:19
eta
Scalar eta() const
pseudorapidity method
Definition:
AmgMatrixBasePlugin.h:83
TLorentzVectorAsIJet.h
makeHypoJets.h
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition:
GeoPrimitivesHelpers.h:156
HypoJetVector
std::vector< pHypoJet > HypoJetVector
Definition:
HypoJetDefs.h:27
TLorentzVectorFactory::make
virtual TLorentzVector make(double eta, double et) const override
Definition:
TLorentzVectorFactory.h:15
TLorentzVectorAsIJet
Definition:
TLorentzVectorAsIJet.h:12
defineDB.jets
list jets
Definition:
JetTagCalibration/share/defineDB.py:24
EgEfficiencyCorr_testFixedInput.etas
list etas
Definition:
EgEfficiencyCorr_testFixedInput.py:9
Generated on Wed Jan 8 2025 21:13:17 for ATLAS Offline Software by
1.8.18