Main Page
Namespaces
Classes
Package Documentation
DataFormats
PatCandidates
interface
ioread_packedgen.h
Go to the documentation of this file.
1
#include "
DataFormats/Math/interface/libminifloat.h
"
2
#include "
DataFormats/Candidate/interface/Candidate.h
"
3
int16_t
convertPackedEtaToPackedY
(int16_t packedPt_, int16_t packedEta_,int16_t packedM_)
4
{
5
reco::Candidate::PolarLorentzVector
p4
(
MiniFloatConverter::float16to32
(packedPt_),
6
int16_t(packedEta_)*6.0
f
/
std::numeric_limits<int16_t>::max
(),
7
0,
8
MiniFloatConverter::float16to32
(packedM_));
9
10
return
int16_t(p4.Rapidity()/6.0f*
std::numeric_limits<int16_t>::max
());
11
}
12
convertPackedEtaToPackedY
int16_t convertPackedEtaToPackedY(int16_t packedPt_, int16_t packedEta_, int16_t packedM_)
Definition:
ioread_packedgen.h:3
libminifloat.h
MiniFloatConverter::float16to32
static float float16to32(uint16_t h)
Definition:
libminifloat.h:12
Candidate.h
p4
double p4[4]
Definition:
TauolaWrapper.h:92
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
SiStripPI::max
Definition:
SiStripPayloadInspectorHelper.h:178
reco::Candidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition:
Candidate.h:39
Generated for CMSSW Reference Manual by
1.8.11