5 #include <boost/format.hpp>
7 #include <TParameter.h>
18 toCompress =
value / ref;
21 toCompress =
value - ref;
42 return *reinterpret_cast<uint16_t *>(&
r);
70 return unpacked * ref;
72 return unpacked + ref;
84 if (fileToRead.IsOpen()) {
87 TIter
next(((TDirectoryFile *)fileToRead.Get(
"schemas"))->GetListOfKeys());
89 while ((
key = (TKey *)
next())) {
90 TClass *
cl = gROOT->GetClass(
key->GetClassName());
91 if (!
cl->InheritsFrom(
"TDirectoryFile"))
94 uint16_t schemaN = std::stoi(schemaNumber);
97 for (
int i = 0;
i < 5;
i++) {
98 for (
int j =
i;
j < 5;
j++) {
103 std::vector<float> vParams;
104 TVector *
p = (TVector *)fileToRead.Get((
folder +
"/param").c_str());
105 for (
int k = 0;
k <
p->GetNoElements();
k++) {
106 vParams.push_back((*
p)[
k]);
112 (
int)((TParameter<int> *)fileToRead.Get(bitString.c_str()))->GetVal(),
126 for (
int i = 0;
i < 5;
i++) {
127 for (
int j =
i;
j < 5;
j++) {
138 std::vector<TH3D *> *HistoVector,
std::string StringToAddInTheName,
int i,
int j, TFile &fileToRead) {
139 std::string List_covName[5] = {
"qoverp",
"lambda",
"phi",
"dxy",
"dsz"};
141 std::string histoNameString =
"covariance_" + List_covName[
i] +
"_" + List_covName[
j] + StringToAddInTheName +
143 TH3D *matrixElememtHistogramm = (TH3D *)fileToRead.Get(histoNameString.c_str());
144 HistoVector->push_back(matrixElememtHistogramm);
148 int i,
int j,
int sign,
float pt,
float eta,
int nHits,
int pixelHits,
float cii,
float cjj)
const {
149 int hitNumberToUse = nHits;
150 if (hitNumberToUse < 2)
152 if (hitNumberToUse > 32)
165 int indexOfTheHitogramInTheList = ((9 - min_idx) * min_idx) / 2 + max_idx;
177 float value,
int schema,
int i,
int j,
float pt,
float eta,
int nHits,
int pixelHits,
float cii,
float cjj)
const {
184 if (schema == 0 &&
i ==
j && (
i == 2 ||
i == 0))
185 ref = 1. / (
pt *
pt);
193 uint16_t packed,
int schema,
int i,
int j,
float pt,
float eta,
int nHits,
int pixelHits,
float cii,
float cjj)
201 if (schema == 0 &&
i ==
j && (
i == 2 ||
i == 0))
202 ref = 1. / (
pt *
pt);