EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <TTree.h>
#include <fstream>
#include <map>
#include <set>
#include <vector>
Go to the source code of this file.
Functions | |
Float_t | approx (std::vector< UShort_t > *order, std::vector< Float_t > *dict, std::vector< size_t > *cnt, Int_t n_entries, TTree *t, Float_t *gen_, size_t maxNumClusters) |
Int_t | newLoc (std::vector< Int_t > *loc_vec, std::vector< std::set< Int_t >> *loc_set_vec) |
void | removeDiff (Float_t distance, Float_t min, std::map< Float_t, std::set< Float_t >> *distance_min_set_map) |
void | addDiff (Float_t distance, Float_t min, std::map< Float_t, std::set< Float_t >> *distance_min_set_map) |
void addDiff | ( | Float_t | distance, |
Float_t | min, | ||
std::map< Float_t, std::set< Float_t >> * | distance_min_set_map | ||
) |
Definition at line 155 of file compressor.h.
View newest version in sPHENIX GitHub at line 155 of file compressor.h
Referenced by approx().
Float_t approx | ( | std::vector< UShort_t > * | order, |
std::vector< Float_t > * | dict, | ||
std::vector< size_t > * | cnt, | ||
Int_t | n_entries, | ||
TTree * | t, | ||
Float_t * | gen_, | ||
size_t | maxNumClusters | ||
) |
Compression algorithm for use in the CMSSW and sPHENIX projects. Using 16-bit short integers to store 32-bit floating-point values. Author: fishy May 22, 2021 u@ii i.org .twapprox() compresses data held in t and returns the standard deviation of the differences between the actual and approximated data.
Definition at line 32 of file compressor.h.
View newest version in sPHENIX GitHub at line 32 of file compressor.h
References addDiff(), Acts::Test::delta, estimate(), max, min, newLoc(), removeDiff(), and Acts::UnitConstants::s.
Referenced by DSTCompressor::compress_gaussian_dist(), and doCompression().
Int_t newLoc | ( | std::vector< Int_t > * | loc_vec, |
std::vector< std::set< Int_t >> * | loc_set_vec | ||
) |
Definition at line 132 of file compressor.h.
View newest version in sPHENIX GitHub at line 132 of file compressor.h
Referenced by approx().
void removeDiff | ( | Float_t | distance, |
Float_t | min, | ||
std::map< Float_t, std::set< Float_t >> * | distance_min_set_map | ||
) |
Definition at line 146 of file compressor.h.
View newest version in sPHENIX GitHub at line 146 of file compressor.h
Referenced by approx().