CMS 3D CMS Logo

Functions
ioread_packedgen.h File Reference
#include "DataFormats/PatCandidates/interface/libminifloat.h"
#include "DataFormats/Candidate/interface/Candidate.h"

Go to the source code of this file.

Functions

int16_t convertPackedEtaToPackedY (int16_t packedPt_, int16_t packedEta_, int16_t packedM_)
 

Function Documentation

int16_t convertPackedEtaToPackedY ( int16_t  packedPt_,
int16_t  packedEta_,
int16_t  packedM_ 
)

Definition at line 3 of file ioread_packedgen.h.

References f, MiniFloatConverter::float16to32(), hpstanc_transforms::max, and p4.

4 {
6  int16_t(packedEta_)*6.0f/std::numeric_limits<int16_t>::max(),
7  0,
9 
10  return int16_t(p4.Rapidity()/6.0f*std::numeric_limits<int16_t>::max());
11 }
static float float16to32(uint16_t h)
Definition: libminifloat.h:10
double p4[4]
Definition: TauolaWrapper.h:92
double f[11][100]
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:39