CMS 3D CMS Logo

ioread_packedgen.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_PATCANDIDATES_INTERFACE_IOREAD_PACKEDGEN_H
2 #define DATAFORMATS_PATCANDIDATES_INTERFACE_IOREAD_PACKEDGEN_H
3 
6 int16_t convertPackedEtaToPackedY(int16_t packedPt_, int16_t packedEta_, int16_t packedM_) {
8  int16_t(packedEta_) * 6.0f / std::numeric_limits<int16_t>::max(),
9  0,
11 
12  return int16_t(p4.Rapidity() / 6.0f * std::numeric_limits<int16_t>::max());
13 }
14 
15 #endif // DATAFORMATS_PATCANDIDATES_INTERFACE_IOREAD_PACKEDGEN_H
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
reco::Candidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:38
libminifloat.h
convertPackedEtaToPackedY
int16_t convertPackedEtaToPackedY(int16_t packedPt_, int16_t packedEta_, int16_t packedM_)
Definition: ioread_packedgen.h:6
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
MiniFloatConverter::float16to32
static float float16to32(uint16_t h)
Definition: libminifloat.h:12
p4
double p4[4]
Definition: TauolaWrapper.h:92
Candidate.h