1 #ifndef _DataFormats_PatCandidates_CovarianceParameterization_h_ 2 #define _DataFormats_PatCandidates_CovarianceParameterization_h_ 6 #include <unordered_map> 18 uint16_t
pack(
float value,
float ref=0.)
const ;
19 float unpack(uint16_t packed,
float ref=0.)
const;
26 static int index(
int i,
int j) {
if(i>=j)
return j+i*(i+1)/2;
else return i+j*(j+1)/2 ; }
36 bool isValid()
const {
return loadedVersion_!=-1; }
39 float meanValue(
int i,
int j,
int sign,
float pt,
float eta,
int nHits,
int pixelHits,
float cii=1.,
float cjj=1.)
const ;
40 float pack(
float value,
int schema,
int i,
int j,
float pt,
float eta,
int nHits,
int pixelHits,
float cii=1.,
float cjj=1.)
const;
41 float unpack(uint16_t packed,
int schema,
int i,
int j,
float pt,
float eta,
int nHits,
int pixelHits,
float cii=1.,
float cjj=1.)
const;
43 void readFile( TFile &);
44 void addTheHistogram(std::vector<TH3D *> * HistoVector,
std::string StringToAddInTheName,
int i,
int j, TFile & fileToRead);
47 std::unordered_map<uint16_t,CompressionSchema>
schemas;
CompressionElement & operator()(int i, int j)
int loadedVersion() const
CompressionElement(Method m, Target t, int bitsUsed, std::vector< float > p)
std::array< CompressionElement, 15 > elements
std::vector< float > params
static int index(int i, int j)
CovarianceParameterization()
uint16_t pack(float value, float ref=0.) const
std::vector< TH3D * > cov_elements_pixelHit
std::unordered_map< uint16_t, CompressionSchema > schemas
float unpack(uint16_t packed, float ref=0.) const
const CompressionElement & operator()(int i, int j) const
std::vector< TH3D * > cov_elements_noPixelHit